...I can't repeat any blocks. Throughout this project, no block is repeated. Each block is used exactly once or not at all. If I accidentally repeated any blocks, just say, but I'm pretty sure I haven't. Controls: Click to flap Don't hit pipes or top or bottom Try and get big score Here is a full list of each block used and what it's use is: Duck: Green flag clicked - Run code in duck broadcast message - Start other code switch backdrop - used as a variable for ending game Set y to - resets bird position point towards - resets bird direction - direction is used as a variable for it's speed forever - loops the code if - used to detect collisions and - for collisions or - for collisions touching colour - collision with pipe touching edge - collision with top/bottom greater than (>) - check if backdrop is still 1 (game hasn't ended) backdrop# of stage - as Ive said, backdrop is used to see if the game's ended yet next backdrop - sets it to backdrop 2 to end the game turn 0.8 - speed goes down repeat - works as an if mouse down - detects if player is trying to fly point in direction 8 - sets speed to 8 upwards next costume - makes bird flap change y by - makes bird fly/fall direction - how much it flies/falls by Pipes: Recieve message - run code in pipes Set score - resets score for each game Set volume - variable for game end Set x to - resets pipes position repeat until - loops code until game ends contains - detects if game has ended if else - works as an if Less than (<) - detects if pipes are off screen x position - detects if pipes are off screen change score by - increases the score when you go through pipe go to x, y - reset pipes position random - random pipe height change x - move pipes left minus (-) - pipes move faster divide (/) - slows down how much speed scales by score - speed of pipes scales the higher your score Game end code (in pipes): When backdrop switches to - runs code for ending game stop all sounds - so you can hear sound fx change volume - stops the pipes moving play drum - sound fx wait seconds - gives a moment for bird to fall before ending stop all - ends game Background: Video motion > 0 - run code for background, also loops wait until - waits until the game starts equal to (=) - sees if game has started backdrop number - variable for whether the game has started or ended start sound - plays background music go to back layer - makes sure it's in the back go to - resets background movement glide to - moves background When this sprite clicked - detects if trying to fly play sound until done - sound fx for flying Timer > 0 - Run code for thumbnail show - makes sure its showing set effect to - makes it invisible, but will show when the game stops go forward layers - makes sure it's in front
Thanks to whoever made the original flappy bird Thanks to the fat rat for the music All the actual coding is by me The idea of the challenge was also by me This project was made in only 2 days, and has a pretty big restriction, so sorry if it isn't very good.