Drop-in content: cars/<id>/stats.tres (+optional car.glb), levels/<id>/level.glb or .tscn with a Spawn marker. Raycast arcade car (boost, drift, drift-earns-boost), chase cam, HUD, menu built from registry scan. Placeholder Woolies carpark with shuntable parked cars. Headless smoke test + windowed screenshot harness. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
11 lines
431 B
GDScript
11 lines
431 B
GDScript
class_name CarStats
|
|
extends Resource
|
|
## One car = one folder under res://cars/ with a stats.tres (this resource).
|
|
## Optional car.glb next to it, referenced via model_path. No model = placeholder box.
|
|
|
|
@export var display_name := "Unnamed Shitbox"
|
|
@export var model_path := ""
|
|
@export var engine_power := 14.0 # forward accel, m/s^2-ish
|
|
@export var mass := 1100.0
|
|
@export var grip := 6.0 # lateral grip; lower = slidier
|