mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 04:16:12 +01:00
Merge branch 'main' of github.com:PfandBoss/SemesterGameJam2022
This commit is contained in:
@@ -2,10 +2,13 @@ extends Module
|
||||
|
||||
class_name Storage
|
||||
|
||||
enum TYPE {AMMO, GUNPOWDER, FUEL}
|
||||
enum TYPE {CANNONBALL, GUNPOWDER, COAL}
|
||||
|
||||
|
||||
@export var currentType: TYPE
|
||||
|
||||
|
||||
|
||||
#------------Methods-------------#
|
||||
func _ready():
|
||||
var root = get_tree().root.get_child(0)
|
||||
|
||||
@@ -84,4 +84,9 @@ func fill_inventory(type):
|
||||
0:
|
||||
walking = "walking_ball"
|
||||
idle = "idle_ball"
|
||||
|
||||
1:
|
||||
walking = "walking_powder"
|
||||
idle = "idle_powder"
|
||||
2:
|
||||
walking = "walking_coal"
|
||||
idle = "idle_coal"
|
||||
|
||||
Reference in New Issue
Block a user