Thursday, April 23, 2020

Coding Day 8 - Flappy Square Stage 4

The project is really starting to turn into a game with this stage of the tutorial. With that of course the code is getting pretty difficult and a lot longer. I know I'll probably have to rely on the answer for the rest of the time coding
1. For a game to actually work it needs collision detection, as so the game can interact with itself. The collision detection we need is to when the cube hits an obstacle, the game ends.
2. To make the game a bit more challenging and not as boring, we make the obstacles randomly spaced out.
3. to take it just a little further, we ended up adding random amounts of space between the obstacles at different heights

No comments:

Post a Comment