Gameplay And Testing
Available in the Gaming Circle and Industries Circle
How to test gameplay and cars
To test gameplay scenes and cars:
- Open the
City
scene; - Select the
Races
gameobject; - In the
MapSelector
component select the gameplay you want to test; and, - Tweak the players' setup in
QuantuRunnerLocalDebug
component:- Check Players property to change what car will be player controlled or let the AI drive the car (PlayerType = AI) with a selected AI config;
- Set the
PlayerCount
property (total number of players in the gameplay) andAIPlayerCount
(how many from the total player numbers will be AI players); and, - It is possible to change what cars will be AI driven and what AI configs will be used in the
AIPlayers
array property.
How to add a new car
To create a new car and add it to the game:
- Create a prefab variant from the
CarBase
prefab; - Add car graphics;
- Move the prepared
WheelHub
GameObjects to appropriate positions; - Move the wheel objects under appropriate wheel hubs;
- Assign the wheels in the
WheelRotation
component; - Assign the car body in the
CarTilt
component; and, - Tweak component values if needed (physics colliders, car axles, forces,...).
How to add new race track
To create a new race track and add it to the game;
- Duplicate an existing gameplay under
Gameplays
root object; - Duplicate the
MapData
asset and assign it in theMapData
component of the gameplay object; - Change barricades and pickups according to the new track;
- Change the start position and checkpoints accordingly to new track and assign them in the
Gameplay
component (onGameplay
gameobject); - Add driving paths (see Driving Path Editor section) under the
Gameplay
gameobject; - Select this new track in
MapSelector
(on theRaces
gameobject) and save the scene (triggering the bake process); and, - Playtest.