mirror of
https://gitee.com/freeyz/godot-mota.git
synced 2024-12-23 02:59:20 +08:00
20 lines
628 B
Plaintext
20 lines
628 B
Plaintext
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://scripts/KeySprite.gd" type="Script" id=1]
|
|
[ext_resource path="res://images/mota.png" type="Texture" id=2]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
|
|
[node name="KeySprite" type="Sprite"]
|
|
position = Vector2( 432, 208 )
|
|
texture = ExtResource( 2 )
|
|
region_enabled = true
|
|
region_rect = Rect2( 96, 448, 32, 32 )
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
shape = SubResource( 1 )
|
|
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]
|