USFB with CV
A simple 2D game integrated with openCV webcam input
Ref
Origin game fork from my another repo.
In this repo, I modify the game goal to have better fit with CV input.
Build
- Required:
- openCV
- openGL
- glut
- for Mac:
- use CMake (min ver3.0) -> choose
xcode
- move
images/
to build directory
- add
openGL.framework
,glut.framework
and core lib ofopencv
(usually will at/usr/local/lib
)
- use CMake (min ver3.0) -> choose
- for Windows:
- use Cmake -> choose
VisualStudio
- move
images/
to build directory - set
USFB
as startup project
- use Cmake -> choose
Game Intro:
You will controll a yellow flappy-bird
The goal of this game is to keep dodging the enemies birds, try to live as long as possible.
The gameScore will +1 when you dodge an enemy bird.
Control:
- With Keyboard:
- START:
SPACE
- UP:
W
,w
- DOWN:
S
,s
- START:
- With webcam(CV):
- UP:
Move your hand to top area
- DOWN:
Move your hand to bottom area
- UP:
ScreenShot
Tag: openGL, glut, 2D game, flappy bird, openCV, background-subtraction