started work on keys

This commit is contained in:
derek
2024-10-16 16:58:16 -05:00
parent c2b96e3ea6
commit fd0e69c4f1
10 changed files with 183 additions and 9 deletions

19
scripts/key_pickup.gd Normal file
View File

@@ -0,0 +1,19 @@
extends RigidBody3D
@export_enum("Silver", "Gold", "Special") var key_type: int
@export var special_key_name : String
@export var collision_shape : Node
var pickupable = true
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
add_to_group("pickup")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func picked_up():
pass

13
scripts/key_resource.gd Normal file
View File

@@ -0,0 +1,13 @@
extends Resource
@export var key_name : String
@export_enum("silver", "boss", "special") var key_type: int
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass