A downloadable game

The challenge was to convey the animation of the bird, the effect of the gravity and the simple commands to play with it in ten lines of code. When the game was complete I had one more line of code available. So I added the clouds and the high score!

Code Description

Line 1: just set up of costants 

Line 2: draw the clouds random sampling string cl$ 

Line 3: set the array d$ with the possible pipes configuration (3 at the moment) 

Line 4: draw the pipes by randomly printing elements of the array d$ 

Line 5: move the bird horizontally and applies the gravity. Also checks if we have a new high score Code description 

Line 6: checks if the bird has finished the level: if so add a bonus and starts a new level 

Line 7: checks if the bird hit something: plays a sound and restart a new game 

Line 8: checks if a key has been pressed: if so changes the sprite shape (pointing up) and applies vertical accelleration 

Line 9: if the accelleration changes the sprite shape (flying horizontal) 

Line 10: changes the sprite shape (pointing down) and prints the score 


Download

Download
10flappy.pdf 248 kB
Download
field.flappy.d64 170 kB
Download
readme.txt 52 bytes

Comments

Log in with itch.io to leave a comment.

A brilliant and worthwhile implementation of a tired, boring gameplay concept - but on the other hand, this opens so many doors for a wider game and like so many 10-LINE BASIC entries, inspires imagination for what could be done with the rest of the RAM, without the 10-line rules, around this core engine.  

(+1)

Nice job getting the gravity and feel of Flappy in 10 lines of C64 basic!

That was the real challenge. The game itself is pretty simple!


Thanks

very good