mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 23:10:08 +01:00
Update loading demos for 4.0 (#776)
This commit is contained in:
@@ -1,29 +1,25 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
[gd_scene load_steps=4 format=3]
|
||||
|
||||
[ext_resource path="res://enemy.gd" type="Script" id=1]
|
||||
[ext_resource path="res://icon.png" type="Texture2D" id=2]
|
||||
[ext_resource type="Script" path="res://enemy.gd" id="1"]
|
||||
[ext_resource type="Texture2D" path="res://enemy_crab.png" id="2_7p8lv"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2(32, 32)
|
||||
[sub_resource type="RectangleShape2D" id="2"]
|
||||
size = Vector2(76, 76)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=2]
|
||||
extents = Vector2(38, 38)
|
||||
|
||||
[node name="Enemy" type="CharacterBody2D" groups=["enemy"]]
|
||||
[node name="Enemy" type="Node2D" groups=["enemy"]]
|
||||
position = Vector2(64, 160)
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource( 1 )
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
modulate = Color(2, 0.6, 0.5, 1)
|
||||
texture = ExtResource( 2 )
|
||||
texture_filter = 1
|
||||
texture_repeat = 1
|
||||
scale = Vector2(4, 4)
|
||||
texture = ExtResource("2_7p8lv")
|
||||
|
||||
[node name="AttackArea" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="AttackArea"]
|
||||
shape = SubResource( 2 )
|
||||
shape = SubResource("2")
|
||||
|
||||
[connection signal="body_entered" from="AttackArea" to="." method="_on_AttackArea_body_entered"]
|
||||
[connection signal="body_exited" from="AttackArea" to="." method="_on_AttackArea_body_exited"]
|
||||
[connection signal="body_entered" from="AttackArea" to="." method="_on_attack_area_body_entered"]
|
||||
[connection signal="body_exited" from="AttackArea" to="." method="_on_attack_area_body_exited"]
|
||||
|
||||
Reference in New Issue
Block a user