mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-12 02:43:43 +00:00
Merge pull request #13 from jcreek/multiplayer-phase1-transport
Add multiplayer functionality
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
class_name TrainingMode
|
||||
extends GameMode
|
||||
const SimConstants = preload("res://scripts/sim_constants.gd")
|
||||
|
||||
# Headless self-play training mode: two RL-driven ships, no HUD, no camera.
|
||||
# The scene also contains the godot_rl_agents Sync node, which speaks TCP to
|
||||
@@ -120,8 +121,9 @@ const MAX_RANDOM_SHIP_SPEED := 8.0
|
||||
# marker spacing, which uses the same margin for the same reason.
|
||||
const MIN_SHIP_SEPARATION := 4.5
|
||||
|
||||
# Sim runs at 60 physics ticks per sim-second regardless of speedup.
|
||||
const TICKS_PER_SIM_SECOND := 60.0
|
||||
# Sim runs at SimConstants.TICK_HZ physics ticks per sim-second regardless
|
||||
# of speedup.
|
||||
const TICKS_PER_SIM_SECOND := float(SimConstants.TICK_HZ)
|
||||
|
||||
var _agents: Array[ShipAIController] = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user