started work on keys
This commit is contained in:
19
scripts/key_pickup.gd
Normal file
19
scripts/key_pickup.gd
Normal 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
13
scripts/key_resource.gd
Normal 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
|
||||
Reference in New Issue
Block a user