Flappy Ball
Sprite | Images |
---|---|
sprFlappyBall |
Object | Sprite | Properties |
---|---|---|
objFlappyBall | sprFlappyBall | Visible |
room layout:
objFlappyBall | Create event |
---|---|
objFlappyBall | Key Press → Space event |
---|---|
extension activities:
- complete the add a pipe activity below first
- can you add pipes at the top of the screen?
add a pipe
Sprite | Images |
---|---|
sprPipe |
Object | Sprite | Properties |
---|---|---|
objPipe | sprPipe | Visible, Solid |
objPipe | Create event |
---|---|
make pipe move left to give illusion of flying right: |
objPipe | Step event |
---|---|
if pipe disappears off-screen, then make it reappear on other side: Same height pipes: Alternating height pipes: |
objFlappyBall | Collision → objPipe event |
---|---|
if flappy-ball hits pipe, then exit the game: |