Done refactoring
This commit is contained in:
parent
3a136ff215
commit
2176e9d798
88 changed files with 821 additions and 880 deletions
21
scripts/objects/Hull.gd
Normal file
21
scripts/objects/Hull.gd
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
extends Node2D
|
||||
|
||||
class_name Hull
|
||||
|
||||
@export var max_hp : int = 30
|
||||
@export var max_fuel : int = 1000
|
||||
|
||||
@onready var hp = max_hp
|
||||
@onready var fuel : float = max_fuel
|
||||
|
||||
var ammunition = {
|
||||
"n/a" : 0,
|
||||
"Laser Energy" : 100,
|
||||
"Rockets" : 10
|
||||
}
|
||||
|
||||
var max_ammunition = {
|
||||
"n/a" : 0,
|
||||
"Laser Energy" : 100,
|
||||
"Rockets" : 20
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue