Skip to content

connieyzhu/Q4Project-CookingFever

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COOKING FEVER

We hope you have fun playing our new version of Cooking Fever!

Screen_Recording_2022-05-30_at_5_46_05_PM_AdobeCreativeCloudExpress

Description

In this game, the goal is to collect as many coins as possible from all the customers. Make sure to complete as many orders as you can without sending away more than three customers, otherwise the game is over. There is a 5 second timer on the coffee machine, and a 5 second timer on the oven for the cakes. Drag the coffee, toppings, and cakes to complete the orders and don't forget to have fun!!

How to Play

  • Press "tutorial" to review instructions
  • Press "start" to begin
  • Use mouse to drag the items
  • Start the coffee machine timer by clicking on the machine
  • Start the oven timer by dragging an unbaked cake to an open oven slot
  • Exit out to restart

CLASSES

Background Class

The Background class constructor contains a parameter to input the image URL, which helps paint the background images that remain consistent, such as the cafe setting and cafe counter.
Screen Shot 2022-05-30 at 4 55 45 PM Screen Shot 2022-05-30 at 4 59 01 PM

Customer Class

The Customer class contains the constructor for the customer object, with the parameter, custName, that allows the picture of the customer to be changed. There are four different custromer images, Linda, Kyle, Daphne, and Francis, and each object operates on a timer schedule. This timer determines when the customer enters, waits, and leaves and when the customer changes to another person's image. Additionally, there are getters and setters that are accessed in the OrderTimer class.

L1 K1 D1 F1

Object Class

The Object class has a constructor that is made up of three parameters. The first two are ints to get the position of an object, and the last parameter is a string that represents the type of object, such as "Strawberry" or "VanillaBatter". The various methods included in this class are utilized in Runner to determine functions such as when fruit is added to cake batter or when cake is done baking in the oven.

CoffeeFull VanBlueBake ChocStrawBake

Position Class

The Position class used to randomize the assignment of locations and orders, such as the waiting position of the person, the ordering position of a person, and the random order of a person. Additional boolean arrays prevent the duplication of location assignments to customers to prevent two customers in any one position.

Screen Shot 2022-05-30 at 5 06 33 PM

Screen Shot 2022-05-30 at 5 14 50 PM

OrderTimer Class

The OrderTimer class is in charge of the timer that is used when the customer waits for their order to be completed. This class paints aspects like the order and timer while the customer is still waiting there, and it sets certain variables of its customer to true when the timer is over, which signals the customer to leave and to stop painting these elements. The timer is then reset, ready to start again when the customer is back to their ordering position, and their order is also newly generated.

Screen Shot 2022-05-30 at 5 23 30 PM

Screen Shot 2022-05-30 at 5 23 45 PM

METHODS

Paint Method

The paint method is an important part of the game, as it allows all the objects to show up on the screen with the specified positions and any other parameters that the constructors entail.

paintMethod

Change Picture Method

The change picture method is located in every class, and it allows the images of the objects to change when a certain action has been completed, usually when a timer runs out, such as on the coffee machine or oven.

changePictureMethod

Help

Reopen or relaunch eclipse or the game if you run into any issues.

Authors

Version History

  1. 0.1
    • Initial Release

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages