I just need code made to run that game in processing It’s for an assessment due tomorrow I need to make a little game in the coding app processing I need some to write me a code for such game
Game Specifications :
- At the start of the game - Emoji is having a sad face , as it runs out of the toilet paper rolls, so it has to start his chase for the toilet paper roll.
- Lane/section design - There is a maze with three (3) horizontal sections/lanes( top, middle, and bottom) on the screen filled with three different colours. In this assignment, we will only work on top and bottom lanes. We will do the middle lane/ section game logic in Assignment3.
- Visual colour effect- The colours of the horizontal sections/ lanes are changing at the constant speed/rate.
- Emoji (sad face ) enters the top horizontal lane from the left side of the screen. He enters and then runs at a certain speed/ rate on a horizontal path and should bounce back from the boundary of the lane.
- Toilet paper roll – only one roll of the toilet paper is available and is placed at a random location within the top horizontal section of the maze. The toilet paper roll also runs at a certain speed/rate in any direction ( you prefer) and when it touches the boundary of the lane, it should bounce and get placed at random (x, y) location in the lane and start moving again. The speed/ rate of the toilet paper roll remains the same in the program, you can’t increase or decrease the speed/rate of the toilet paper roll.
- Emoji Movements – At the start of the game the mousePressed event is disabled and you are allowed to use only the keyPressed events to move the emoji ( sad face ) up, down, left, right( feel free to use any key for the event) but after 15 keyPressed events, the mousePressed event gets activated and remains activated for the rest of the game. MousePressed event puts the emoji at the mouse pressed location.
- Count the keyPressed event- Each key pressed event is counted and the count is displayed in the left corner of the third/bottom horizontal section/lane. Also, you are required to display a message to inform the player, when the mousePressed event gets activated like- “Mouse event is activated now” which is after 15 counts of keyPressed event( Step 6).
- Catch the roll –Emoji catches the roll when he collides with the roll.
- Game end– When Emoji catches the roll, he becomes one little smiling face😊 ( change the sad face of the Emoji to one smiling face). Emoji and toilet paper roll stop