mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2024-11-15 05:25:57 +00:00
Comment on which parts of Game are only there for testing purposes.
This commit is contained in:
parent
1a031ac9d2
commit
2f5a2cd47f
@ -6,7 +6,9 @@ class ShipData:
|
||||
var Orientation: bool #vertical is true, (Trueship = vertical) (Falseship = horizontal)
|
||||
|
||||
# Preloaded assets, to be used later
|
||||
# TODO: Move Setup into the Player. It's just here, for now, so that it can be tested and the game doesn't appear broken
|
||||
onready var Setup = preload("res://scenes/Game/Setup.tscn")
|
||||
# TODO: Move Fire into the Player. See above.
|
||||
onready var Fire = preload("res://scenes/Game/Fire.tscn")
|
||||
|
||||
# Path to Player class, for instantiating new Players in code
|
||||
@ -25,12 +27,15 @@ var is_multiplayer = false
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
# TODO: Move Setup into the Player.
|
||||
var setup = Setup.instance()
|
||||
setup.connect("game_ready", self, "game_setup")
|
||||
add_child(setup)
|
||||
|
||||
# TODO: Move Setup into the Player.
|
||||
func game_setup(_ships):
|
||||
print_debug("Congrats! Setup complete.")
|
||||
# TODO: Move Fire into the Player.
|
||||
add_child(Fire.instance())
|
||||
|
||||
# Member functions:
|
||||
|
Loading…
Reference in New Issue
Block a user