AH Shoot! 03/20/2020

The transition to home development has been a bit rough for the team, but we have been able to work around the definite difficulties through communication. This week, a recent development in our game was our ability to now shoot from the player cart! After some discussion, we decided that players can receive 1 of 4 items from a mystery item box:

  • Apple with a weight of 2
  • Chicken with a weight of 4
  • Milk jug with a weight of 5
  • Water melon with a weight of 6

The logic here is that each driver will have a max weight of 10, with each unit of the weight that they store reducing their top speed by 5. Therefore, the most speed a driver can loose is 50 mph.

To ensure that the object doesn’t fly indefinitely there are two conditions in which the food game object that is shot is destroyed. The first condition is when it collides with another game object. When it collides with another game object, it will return the object it collided with, which will help us figure out and understand how to add the weight to the respective driver it collided with. The second condition is if the food object happens to float for more than 3 seconds. After 3 seconds the object will destroy itself. These two conditions ensure that we aren’t using up unnecessary memory while shooting grocery items to each other!

Leave a comment

Design a site like this with WordPress.com
Get started