Need help to make very simple game

please format code with </> button * homework policy * asking questions

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 :

  1. At the start of the game - Emoji is having a sad face :frowning:, as it runs out of the toilet paper rolls, so it has to start his chase for the toilet paper roll.
  2. 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.
  3. Visual colour effect- The colours of the horizontal sections/ lanes are changing at the constant speed/rate.
  4. 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.
  5. 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.
  6. 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.
  7. 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).
  8. Catch the roll –Emoji catches the roll when he collides with the roll.
  9. 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
    moving.

And what code have you written for it so far?

I don’t know how to start

Hello @malik2712

Just to clarify, you don’t know how to set up the base structure of:

the setup and draw functions, and, declare and initialize the variables?

One of the best tools in a programmers tool chest is knowing the resources available to you and learning to navigate and use them.

This is a very short list:

Resources < Click here to expand !

I encourage you to review the resources available here:

:)

asking for help whilst providing no code!! is like saying.

tenor

2 Likes