Pages

Monday 13 May 2019

Maze Game and Flappy Bird Codes: ICT Class 2019

 Maze Game Presentation
Flappy Bird Presentation

in both presentations, shows the different levels i had to pass through. In each photo shows the level and the objective i have to do/things i have to do to pass the level.

There is several codes in each presentation, to limit them down there is:
Maze Game:

  1. when run
  2. Move forward
  3. Turn left/right
  4. Repeat until (acorn) do 
  5. if path ahead do/else
Flappy Game:

  1. Flap a (normal..etc) amount 
  2. end game
  3.  score a point 
  4. play (wing ..etc) sound 
  5. set speed (normal..etc) 
  6. set scene (city day..etc) 
  7. set player (yellow bird..etc) 
  8. set score (0..etc) 
  9. when run 
  10. when hit the ground
  11. when hit an obstacle
  12. when pass obstacle
  13. when click
all these codes help you move towards your goal of completing the level.
for example:
When run:  repeat until (acorn) do (if path ahead (do) turn left (else) move foward.
to help you understand what i commanded the player to do is when it runs it should always go forward, if there is an obstacle ahead it should turn left. 

What i learnt in this exercise was how to command and how to run through obstacles with the power of code/coding. it was really enjoyable and a real brain teaser.