Summative Game
Requirements
These are a few requirements for my game:
- The characters in my game are going to be Mario (controled by the player) and the Bullet/Fireball (who is the opponent).
- The score will be displayed on the right side of the screen and will be tracked by the number of opponents Mario can dodge before dying.
- To earn bonus points to add on to the score, the player can control Mario to eat the donuts. Each donut will be worth an extra 2 points.
- The starting screen of the game is also the title of the game and there will be a start button underneath. Mario will also appear on the screen to help the player visualize how to control Mario.
- When the player is ready to start the game, they can tap anywhere on screen with the mouse.
- The point of this game is to dodge all the Bullets by controling Mario with the set of arrows and the keypad.
- When the player gets to a certain score (10 points), there will be an additional opponent that would appear, the Fireball.
- If the Bullet or the Fireball hits Mario, the Game Over screen will be displayed.
- There is no way in winning this game, however it's better to accumulate more points than less.
- To restart the game, the user can press the restart button (pink-ish) on the botton right corner.
- To represent everything (characters, bonus points, and backgrounds), I found images off the internet.
- For the whole time of the game, a background music will be playing.
Planning
Some new p5 codes I would need to learn in order to create my games are the following:
- Setting an image as the background
- Using images in general, to represent characters.
- Adding sound to my video game.
To create this game, some functions I would require would include:
- function mouseClicked: used to start the game
- function keyPressed: used to control Mario from dodging away from the opponents
- function preload: used to load the music used in the game before it starts
- function setup: setup the images and canvas
- function draw: everything that occurs in the game