add boss enemy and refactor
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://xacwq0rohthg"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://xacwq0rohthg"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b04teamu7o6jb" path="res://assets/sprites/platforms.png" id="1_ba0x2"]
|
||||
[ext_resource type="Script" uid="uid://ymdnbe621mfv" path="res://scripts/platform.gd" id="1_nlgqw"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_nlgqw"]
|
||||
size = Vector2(32, 8)
|
||||
|
||||
[node name="Platform" type="AnimatableBody2D"]
|
||||
script = ExtResource("1_nlgqw")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
position = Vector2(0, -0.25)
|
||||
scale = Vector2(1, 0.9444444)
|
||||
texture = ExtResource("1_ba0x2")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(16, 0, 32, 9)
|
||||
@@ -15,3 +19,5 @@ region_rect = Rect2(16, 0, 32, 9)
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_nlgqw")
|
||||
one_way_collision = true
|
||||
|
||||
[connection signal="ready" from="." to="." method="_on_ready"]
|
||||
|
||||
Reference in New Issue
Block a user