integrate obelisk into alai
This commit is contained in:
5
godot/collectables/coin/Coin.gd
Normal file
5
godot/collectables/coin/Coin.gd
Normal file
@@ -0,0 +1,5 @@
|
||||
extends Area2D
|
||||
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
Event.emit_signal("report_object", self.get_name(), "not collected", global_position, Vector2())
|
@@ -1,10 +1,11 @@
|
||||
[gd_scene load_steps=11 format=2]
|
||||
[gd_scene load_steps=12 format=2]
|
||||
|
||||
[ext_resource path="res://assets/coin.png" type="Texture" id=1]
|
||||
[ext_resource path="res://state_machine/StateMachine.gdns" type="Script" id=2]
|
||||
[ext_resource path="res://collectables/coin/states/CoinNotCollected.gdns" type="Script" id=3]
|
||||
[ext_resource path="res://collectables/coin/states/CoinCollected.gdns" type="Script" id=4]
|
||||
[ext_resource path="res://assets/sounds/coin.wav" type="AudioStream" id=5]
|
||||
[ext_resource path="res://collectables/coin/Coin.gd" type="Script" id=6]
|
||||
|
||||
[sub_resource type="CircleShape2D" id=1]
|
||||
radius = 6.0
|
||||
@@ -43,6 +44,7 @@ tracks/0/keys = {
|
||||
|
||||
[node name="Coin" type="Area2D"]
|
||||
collision_layer = 4
|
||||
script = ExtResource( 6 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2( 9, 9 )
|
||||
@@ -51,7 +53,6 @@ shape = SubResource( 1 )
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
frames = SubResource( 4 )
|
||||
animation = "spin"
|
||||
frame = 1
|
||||
playing = true
|
||||
centered = false
|
||||
|
||||
|
Reference in New Issue
Block a user