Massive work on level, UI, sound, and player functionality, small progress on netcode. Renamed project to Net Gunner.
This commit is contained in:
17
scripts/player_data.gd
Normal file
17
scripts/player_data.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
class_name PlayerData extends Node
|
||||
|
||||
class TrapData:
|
||||
var type : Game.TrapType
|
||||
var quantity : int
|
||||
var max : int
|
||||
|
||||
func _init(type : Game.TrapType, quantity : int, max : int) -> void:
|
||||
self.type = type
|
||||
self.quantity = quantity
|
||||
self.max = max
|
||||
|
||||
var traps : Array[TrapData] = []
|
||||
var active_trap : int = 0
|
||||
|
||||
var life : int = 100
|
||||
var max_life : int = 100
|
||||
Reference in New Issue
Block a user