Final Project
- cwebb339
- Dec 22, 2020
- 1 min read
For my final project I decided to make the Google Chrome dinosaur game but more so Mario themed. At first it wasn't too difficult especially since some of the code and concept is similar to Flappy Bird, but then when it came time to add the collision that's where I struggled a ton and spent hours trying to make it work, but eventually I did. I ultimately chose not to use the Mario running gif I originally had because the hit detection of the square was far more accurate than that. The invisible pixels of Mario would hit the corner of the Goomba and it would be game over so I chose to just make the "Mario" a red square for a much more accurate and fair player experience. The only problem I have personally had is that sometimes it will spawn Goombas a bit too close to each other and it might be impossible to jump over them both, but it doesn't happen often. Here's the link to the code: https://editor.p5js.org/cwebb3/present/VrkbbmKH7
Comentários