NamePendingCo / business-racer

2 stars 0 forks source link

Write up design documentation on classes and objects for players, rival NPCs, and obstacle NPCs #11

Closed soulerlunar closed 3 years ago

soulerlunar commented 3 years ago

Before we begin programming the various objects in game, we create a layout for the class hierarchy and attributes of the core objects in the game.

To start off, there are three objects that will come into play in a given level of the game that will require similar code:

  1. The player vehicle
  2. The "rival" vehicles that the player will race against
  3. The NPC vehicles that will be navigating the city around the player

All of these should have code for movement, collision physics, and AI navigation. We will write up documentation describing the attributes of these objects, the functions they will need, and any parent classes we will need.

This will all be written up in the game's wiki.

soulerlunar commented 3 years ago

We have written up an initial design documentation for the vehicle classes here. These will be used moving forward to create the code.

We have come to the determination that streets and intersections (and possibly destinations) will require being defined as objects to be used for AI navigation. Thus I have created #13 to be able to define these functions. It should be worked on next sprint.