Skip to content

Game Project 6

Choose a tag to compare

@jakeesmith01 jakeesmith01 released this 23 Nov 02:17
· 2 commits to main since this release

In this release, I completely overhauled the map and the AI for the opponent car, as well as added speed boosts and obstacles to avoid. Furthermore, instead of having the entire game world drawn, I added a camera that follows the players car and also provides a bit of a zoom giving the overall game a more localized feeling.

The opponent car AI now has pathing, derived from several points dropped along the map. The AI will avoid the collisions (it really does that I made the points before the road blocks (: ). It will follow along the race track, trying to get speed boosts and race the player to the finish line.

The map was completely remade using Tiled, which also helped a bit with the pathing for the opponent car. The map was tripled in size and also includes road blocks and speed boosts with collision implemented in to each.

Instead of the speed of the cars being randomized every Update, they are now a constant speed. To gain speed and an advantage against the opponent, the player needs to hit the speed boosts scattered throughout the map.

For the future:

  • Smooth out the collision knockback and implement acceleration instead of just constant speed being added to the cars.
  • Add a HUD and possibly a health property for the player car that will be decreased whenever they collide with a road block, eventually leading to their car blowing up if they keep hitting them.
  • Create another map for the game, with menu options for selecting what map the player wants to race on.
  • Possibly add more opponent cars with their own individual pathing for the race, along with a menu option for how many opponents to have in the race.
  • Add collision between the player car and opponent(s) car. I need to work out how this will impact the gameplay, and if its worth it or if it makes the game less enjoyable.