1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2024-11-15 13:25:58 +00:00
Boat-Battle/godot_ship/script/game/Gameplay/Game.gd

32 lines
805 B
GDScript3
Raw Normal View History

2021-11-08 13:40:11 +00:00
extends Node
# Path to Player class, for instantiating new Players in code
var Player = "res://script/game/Gameplay/Player.gd"
# Array of instances of the Player class; stores the Players
2021-11-08 13:40:11 +00:00
var players # = player1, player2, ...
# turn counter
var turn = 0
# Variable transporting hit state between players
var hit = false
# Variable tracking whether a game is multiplayer (so that the correct Player type can be spawned)
# TODO: Multiplayer
var is_multiplayer = false
2021-11-08 13:40:11 +00:00
# Called when the node enters the scene tree for the first time.
func _ready():
game_start()
2021-11-08 13:40:11 +00:00
# Member functions:
# game_start: starts the game
func game_start():
2021-11-08 13:40:11 +00:00
pass
# victory_screen: display the victory screen
func victory_screen():
2021-11-08 13:40:11 +00:00
pass
# display_turn(): display which turn it is on the screen
func display_turn():
2021-11-08 13:40:11 +00:00
pass