This commit is contained in:
2026-10-07 17:58:02 +08:00
commit 456aa52ede
409 changed files with 11297 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
extends Area2D
const SPEED = 200
@onready var animated = $AnimatedSprite2D
var target : Node2D = null
var trans : bool
var direction
@onready var timer = $Timer
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
animated.play("ROLL")
timer.start()
direction = -1
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
global_position.x += direction * SPEED * delta
if target:
if target.has_method("take_damage"):
target.take_damage(1)
func _on_body_entered(body: Node2D) -> void:
if body.is_in_group("Player"):
target = body
func _on_body_exited(body: Node2D) -> void:
if body.is_in_group("Player"):
target = null
func _on_timer_timeout() -> void:
direction *= -1
timer.start()
@@ -0,0 +1 @@
uid://c54dhiq1jwhie
+19
View File
@@ -0,0 +1,19 @@
[gd_scene format=3 uid="uid://cvo6y3nl6a2ob"]
[ext_resource type="Texture2D" uid="uid://diukgdlfsfhpp" path="res://Free/Terrain/Terrain (16x16).png" id="1_je0lw"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_b1ow3"]
size = Vector2(340, 2)
[node name="Bridge" type="RigidBody2D" unique_id=854610358]
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1183016826]
position = Vector2(-1, 0)
shape = SubResource("RectangleShape2D_b1ow3")
[node name="Terrain(16x16)" type="Sprite2D" parent="CollisionShape2D" unique_id=1953785682]
position = Vector2(0.4999889, 0)
scale = Vector2(7.062501, 1.031)
texture = ExtResource("1_je0lw")
region_enabled = true
region_rect = Rect2(271.6664, 15.1436615, 48.73706, 6.576353)
+148
View File
@@ -0,0 +1,148 @@
[gd_scene format=3 uid="uid://nakihamef7l1"]
[ext_resource type="Script" uid="uid://dybg0afpbxpkg" path="res://scene/code/Heal.gd" id="1_82j4g"]
[ext_resource type="Texture2D" uid="uid://te0uvoqbi7jj" path="res://Free/Items/Fruits/Strawberry.png" id="2_yixqo"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_b1ow3"]
size = Vector2(13, 14)
[sub_resource type="AtlasTexture" id="AtlasTexture_kc8m2"]
atlas = ExtResource("2_yixqo")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_emyej"]
atlas = ExtResource("2_yixqo")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_gjn4n"]
atlas = ExtResource("2_yixqo")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_56keq"]
atlas = ExtResource("2_yixqo")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_3d8vp"]
atlas = ExtResource("2_yixqo")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_r2jvb"]
atlas = ExtResource("2_yixqo")
region = Rect2(160, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_v2skh"]
atlas = ExtResource("2_yixqo")
region = Rect2(192, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_oqdxu"]
atlas = ExtResource("2_yixqo")
region = Rect2(224, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ndg4a"]
atlas = ExtResource("2_yixqo")
region = Rect2(256, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_y4bmt"]
atlas = ExtResource("2_yixqo")
region = Rect2(288, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_nl7n0"]
atlas = ExtResource("2_yixqo")
region = Rect2(320, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_yca08"]
atlas = ExtResource("2_yixqo")
region = Rect2(352, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_yxlk6"]
atlas = ExtResource("2_yixqo")
region = Rect2(384, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_udqs2"]
atlas = ExtResource("2_yixqo")
region = Rect2(416, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ufnc5"]
atlas = ExtResource("2_yixqo")
region = Rect2(448, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_1bmdg"]
atlas = ExtResource("2_yixqo")
region = Rect2(480, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_5o3x7"]
atlas = ExtResource("2_yixqo")
region = Rect2(512, 0, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_b1ow3"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_kc8m2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_emyej")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gjn4n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_56keq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3d8vp")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_r2jvb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_v2skh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_oqdxu")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ndg4a")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y4bmt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nl7n0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yca08")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yxlk6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_udqs2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ufnc5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1bmdg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5o3x7")
}],
"loop": 2,
"name": &"IDLE",
"speed": 20.0
}]
[node name="Heal" type="Area2D" unique_id=1381617533]
collision_mask = 15
script = ExtResource("1_82j4g")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1747320424]
shape = SubResource("RectangleShape2D_b1ow3")
[node name="STRAW" type="AnimatedSprite2D" parent="." unique_id=1358826902]
sprite_frames = SubResource("SpriteFrames_b1ow3")
animation = &"IDLE"
frame_progress = 0.7177162
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
@@ -0,0 +1,92 @@
[gd_scene format=3 uid="uid://b546yqkqk0mth"]
[ext_resource type="Script" uid="uid://bva2mrcnvk1by" path="res://left_whirling_blade_move.gd" id="1_kbdtm"]
[ext_resource type="Texture2D" uid="uid://bp04cf1lxaf8a" path="res://Free/Traps/Saw/On (38x38).png" id="2_0kki0"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_b1ow3"]
[sub_resource type="AtlasTexture" id="AtlasTexture_2apdy"]
atlas = ExtResource("2_0kki0")
region = Rect2(0, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_4r1l6"]
atlas = ExtResource("2_0kki0")
region = Rect2(38, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_5bx00"]
atlas = ExtResource("2_0kki0")
region = Rect2(76, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_ht4jq"]
atlas = ExtResource("2_0kki0")
region = Rect2(114, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_w8fro"]
atlas = ExtResource("2_0kki0")
region = Rect2(152, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_xlno7"]
atlas = ExtResource("2_0kki0")
region = Rect2(190, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_qyx34"]
atlas = ExtResource("2_0kki0")
region = Rect2(228, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_udqe3"]
atlas = ExtResource("2_0kki0")
region = Rect2(266, 0, 38, 38)
[sub_resource type="SpriteFrames" id="SpriteFrames_ymnsx"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_2apdy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4r1l6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5bx00")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ht4jq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_w8fro")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xlno7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qyx34")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_udqe3")
}],
"loop": 1,
"name": &"ROLL",
"speed": 45.0
}]
[node name="Left_Whirling_blade_move" type="Area2D" unique_id=986788894]
collision_mask = 3
script = ExtResource("1_kbdtm")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1859159804]
scale = Vector2(1.5, 1.5)
shape = SubResource("RectangleShape2D_b1ow3")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1547792498]
light_mask = 3
visibility_layer = 3
sprite_frames = SubResource("SpriteFrames_ymnsx")
animation = &"ROLL"
frame_progress = 0.68251806
[node name="Timer" type="Timer" parent="." unique_id=550037519]
one_shot = true
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
File diff suppressed because one or more lines are too long
@@ -0,0 +1,92 @@
[gd_scene format=3 uid="uid://oew6cs3c56dx"]
[ext_resource type="Script" uid="uid://b5ux5luvsai6h" path="res://scene/code/whirling_blade_move.gd" id="1_nemwd"]
[ext_resource type="Texture2D" uid="uid://bp04cf1lxaf8a" path="res://Free/Traps/Saw/On (38x38).png" id="2_f4ltq"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_b1ow3"]
[sub_resource type="AtlasTexture" id="AtlasTexture_2apdy"]
atlas = ExtResource("2_f4ltq")
region = Rect2(0, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_4r1l6"]
atlas = ExtResource("2_f4ltq")
region = Rect2(38, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_5bx00"]
atlas = ExtResource("2_f4ltq")
region = Rect2(76, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_ht4jq"]
atlas = ExtResource("2_f4ltq")
region = Rect2(114, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_w8fro"]
atlas = ExtResource("2_f4ltq")
region = Rect2(152, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_xlno7"]
atlas = ExtResource("2_f4ltq")
region = Rect2(190, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_qyx34"]
atlas = ExtResource("2_f4ltq")
region = Rect2(228, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_udqe3"]
atlas = ExtResource("2_f4ltq")
region = Rect2(266, 0, 38, 38)
[sub_resource type="SpriteFrames" id="SpriteFrames_ymnsx"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_2apdy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4r1l6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5bx00")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ht4jq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_w8fro")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xlno7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qyx34")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_udqe3")
}],
"loop": 1,
"name": &"ROLL",
"speed": 45.0
}]
[node name="Right_Whirling_blade_move" type="Area2D" unique_id=986788894]
collision_mask = 3
script = ExtResource("1_nemwd")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1859159804]
scale = Vector2(1.5, 1.5)
shape = SubResource("RectangleShape2D_b1ow3")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1547792498]
light_mask = 3
visibility_layer = 3
sprite_frames = SubResource("SpriteFrames_ymnsx")
animation = &"ROLL"
frame_progress = 0.68251806
[node name="Timer" type="Timer" parent="." unique_id=550037519]
one_shot = true
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
+75
View File
@@ -0,0 +1,75 @@
[gd_scene format=3 uid="uid://ds0kl1ix502ii"]
[ext_resource type="Script" uid="uid://ccs2hy30dvdww" path="res://scene/code/static_body_2d.gd" id="1_ebdij"]
[ext_resource type="Texture2D" uid="uid://o20tg3dkba7b" path="res://Free/Traps/Blocks/HitSide (22x22).png" id="1_m8gvs"]
[ext_resource type="Texture2D" uid="uid://blxtvc6n265bh" path="res://Free/Traps/Blocks/Idle.png" id="2_gi3hl"]
[ext_resource type="Script" uid="uid://bcrwr7xxuh6rb" path="res://scene/code/block_hit.gd" id="3_gi3hl"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_b1ow3"]
size = Vector2(17.499998, 22.499998)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rby76"]
size = Vector2(14, 18)
[sub_resource type="AtlasTexture" id="AtlasTexture_ebdij"]
atlas = ExtResource("1_m8gvs")
region = Rect2(0, 0, 22, 22)
[sub_resource type="AtlasTexture" id="AtlasTexture_101is"]
atlas = ExtResource("1_m8gvs")
region = Rect2(22, 0, 22, 22)
[sub_resource type="AtlasTexture" id="AtlasTexture_qys84"]
atlas = ExtResource("1_m8gvs")
region = Rect2(44, 0, 22, 22)
[sub_resource type="AtlasTexture" id="AtlasTexture_5lrwl"]
atlas = ExtResource("2_gi3hl")
region = Rect2(0, 0, 22, 22)
[sub_resource type="SpriteFrames" id="SpriteFrames_b1ow3"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ebdij")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_101is")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qys84")
}],
"loop": 1,
"name": &"Hitside.block",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_5lrwl")
}],
"loop": 1,
"name": &"Idle.block",
"speed": 5.0
}]
[node name="StaticBody2D" type="StaticBody2D" unique_id=929564110]
script = ExtResource("1_ebdij")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1467068826]
position = Vector2(3.5762787e-07, -3.5762787e-07)
scale = Vector2(0.8, 0.8)
shape = SubResource("RectangleShape2D_b1ow3")
[node name="Area2D" type="Area2D" parent="." unique_id=632572989]
script = ExtResource("3_gi3hl")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=222877067]
shape = SubResource("RectangleShape2D_rby76")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Area2D" unique_id=1688973896]
sprite_frames = SubResource("SpriteFrames_b1ow3")
animation = &"Hitside.block"
frame = 2
frame_progress = 0.43349382
[connection signal="area_entered" from="Area2D" to="Area2D" method="_on_area_entered"]
+196
View File
@@ -0,0 +1,196 @@
[gd_scene format=3 uid="uid://dcnueh1qtnvgh"]
[ext_resource type="Script" uid="uid://rtq2bo02xen7" path="res://scene/code/block_damage.gd" id="1_1oqap"]
[ext_resource type="Texture2D" uid="uid://05qf4yx10qc" path="res://Free/Traps/Rock Head/Blink (42x42).png" id="1_eh2y1"]
[ext_resource type="Texture2D" uid="uid://cchy4b1qbnamx" path="res://Free/Traps/Rock Head/Bottom Hit (42x42).png" id="2_xbdxa"]
[ext_resource type="Texture2D" uid="uid://02eok5r7h1xi" path="res://Free/Traps/Rock Head/Idle.png" id="3_1oqap"]
[sub_resource type="AtlasTexture" id="AtlasTexture_qnsxg"]
atlas = ExtResource("1_eh2y1")
region = Rect2(0, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_hbt8y"]
atlas = ExtResource("1_eh2y1")
region = Rect2(42, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_lugia"]
atlas = ExtResource("1_eh2y1")
region = Rect2(84, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_v5kt5"]
atlas = ExtResource("1_eh2y1")
region = Rect2(126, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_07jbt"]
atlas = ExtResource("2_xbdxa")
region = Rect2(126, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_8mo0w"]
atlas = ExtResource("2_xbdxa")
region = Rect2(84, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_7xf5o"]
atlas = ExtResource("2_xbdxa")
region = Rect2(42, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_kc8jy"]
atlas = ExtResource("2_xbdxa")
region = Rect2(0, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_ukd6c"]
atlas = ExtResource("3_1oqap")
region = Rect2(0, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_xbdxa"]
atlas = ExtResource("1_eh2y1")
region = Rect2(126, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_1oqap"]
atlas = ExtResource("1_eh2y1")
region = Rect2(84, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_n7kpi"]
atlas = ExtResource("1_eh2y1")
region = Rect2(42, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_b7vjl"]
atlas = ExtResource("1_eh2y1")
region = Rect2(0, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_nyn3m"]
atlas = ExtResource("1_eh2y1")
region = Rect2(0, 0, 42, 42)
[sub_resource type="SpriteFrames" id="SpriteFrames_rby76"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_qnsxg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hbt8y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lugia")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_v5kt5")
}],
"loop": 0,
"name": &"BLINK",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_07jbt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8mo0w")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7xf5o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kc8jy")
}],
"loop": 0,
"name": &"HIT",
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ukd6c")
}],
"loop": 0,
"name": &"IDLE",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_xbdxa")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1oqap")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_n7kpi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_b7vjl")
}],
"loop": 0,
"name": &"NOBLINK",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_nyn3m")
}],
"loop": 1,
"name": &"SLEEP",
"speed": 5.0
}]
[sub_resource type="GDScript" id="GDScript_xbdxa"]
script/source = "extends Area2D
# 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
"
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rby76"]
size = Vector2(550, 348)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ymnsx"]
size = Vector2(78, 243)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2cec8"]
size = Vector2(32, 32)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_njdnk"]
size = Vector2(34, 34)
[node name="Block_damage" type="CharacterBody2D" unique_id=369538996]
script = ExtResource("1_1oqap")
[node name="Block_damage_animation" type="AnimatedSprite2D" parent="." unique_id=1724791440]
sprite_frames = SubResource("SpriteFrames_rby76")
animation = &"NOBLINK"
[node name="Area2D_observe" type="Area2D" parent="." unique_id=310497332]
collision_mask = 3
script = SubResource("GDScript_xbdxa")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D_observe" unique_id=569498363]
position = Vector2(0, 108)
shape = SubResource("RectangleShape2D_rby76")
[node name="Area2D_damage" type="Area2D" parent="." unique_id=805391396]
collision_mask = 3
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D_damage" unique_id=1319230308]
modulate = Color(1, 1, 0.1764706, 1)
position = Vector2(0, 106.5)
shape = SubResource("RectangleShape2D_ymnsx")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1529567861]
shape = SubResource("RectangleShape2D_2cec8")
[node name="Area2D_take_damage" type="Area2D" parent="." unique_id=141371173]
collision_mask = 3
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D_take_damage" unique_id=612959925]
shape = SubResource("RectangleShape2D_njdnk")
debug_color = Color(0.8259426, 0.0015975559, 0.95522326, 0.41960785)
[connection signal="body_entered" from="Area2D_observe" to="." method="_on_area_2d_observe_body_entered"]
[connection signal="body_exited" from="Area2D_observe" to="." method="_on_area_2d_observe_body_exited"]
[connection signal="body_entered" from="Area2D_damage" to="." method="_on_area_2d_damage_body_entered"]
[connection signal="body_entered" from="Area2D_take_damage" to="." method="_on_area_2d_take_damage_body_entered"]
@@ -0,0 +1,151 @@
[gd_scene format=3 uid="uid://dcnueh1qtnvgh"]
[ext_resource type="Script" uid="uid://rtq2bo02xen7" path="res://scene/code/block_damage.gd" id="1_1oqap"]
[ext_resource type="Texture2D" uid="uid://05qf4yx10qc" path="res://Free/Traps/Rock Head/Blink (42x42).png" id="1_eh2y1"]
[ext_resource type="Texture2D" uid="uid://cchy4b1qbnamx" path="res://Free/Traps/Rock Head/Bottom Hit (42x42).png" id="2_xbdxa"]
[ext_resource type="Texture2D" uid="uid://02eok5r7h1xi" path="res://Free/Traps/Rock Head/Idle.png" id="3_1oqap"]
[sub_resource type="AtlasTexture" id="AtlasTexture_qnsxg"]
atlas = ExtResource("1_eh2y1")
region = Rect2(0, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_hbt8y"]
atlas = ExtResource("1_eh2y1")
region = Rect2(42, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_lugia"]
atlas = ExtResource("1_eh2y1")
region = Rect2(84, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_v5kt5"]
atlas = ExtResource("1_eh2y1")
region = Rect2(126, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_07jbt"]
atlas = ExtResource("2_xbdxa")
region = Rect2(126, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_8mo0w"]
atlas = ExtResource("2_xbdxa")
region = Rect2(84, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_7xf5o"]
atlas = ExtResource("2_xbdxa")
region = Rect2(42, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_kc8jy"]
atlas = ExtResource("2_xbdxa")
region = Rect2(0, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_ukd6c"]
atlas = ExtResource("3_1oqap")
region = Rect2(0, 0, 42, 42)
[sub_resource type="AtlasTexture" id="AtlasTexture_nyn3m"]
atlas = ExtResource("1_eh2y1")
region = Rect2(0, 0, 42, 42)
[sub_resource type="SpriteFrames" id="SpriteFrames_rby76"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_qnsxg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hbt8y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lugia")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_v5kt5")
}],
"loop": 0,
"name": &"BLINK",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_07jbt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8mo0w")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7xf5o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kc8jy")
}],
"loop": 0,
"name": &"HIT",
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ukd6c")
}],
"loop": 1,
"name": &"IDLE",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_nyn3m")
}],
"loop": 1,
"name": &"SLEEP",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_b1ow3"]
size = Vector2(30, 30)
[sub_resource type="GDScript" id="GDScript_xbdxa"]
script/source = "extends Area2D
# 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
"
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rby76"]
size = Vector2(550, 348)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ymnsx"]
size = Vector2(65, 243)
[node name="Block_damage" type="CharacterBody2D" unique_id=369538996]
script = ExtResource("1_1oqap")
[node name="Block_damage_animation" type="AnimatedSprite2D" parent="." unique_id=1724791440]
sprite_frames = SubResource("SpriteFrames_rby76")
animation = &"HIT"
[node name="CollisionShape2D_block_damage" type="CollisionShape2D" parent="." unique_id=1502950892]
shape = SubResource("RectangleShape2D_b1ow3")
[node name="Area2D_observe" type="Area2D" parent="." unique_id=310497332]
collision_mask = 3
script = SubResource("GDScript_xbdxa")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D_observe" unique_id=569498363]
position = Vector2(0, 108)
shape = SubResource("RectangleShape2D_rby76")
[node name="Area2D_damage" type="Area2D" parent="." unique_id=805391396]
collision_mask = 3
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D_damage" unique_id=1319230308]
modulate = Color(1, 1, 0.1764706, 1)
position = Vector2(0.5, 106.5)
shape = SubResource("RectangleShape2D_ymnsx")
[connection signal="body_entered" from="Area2D_observe" to="." method="_on_area_2d_observe_body_entered"]
[connection signal="body_entered" from="Area2D_damage" to="." method="_on_area_2d_damage_body_entered"]
+19
View File
@@ -0,0 +1,19 @@
[gd_scene format=3 uid="uid://qrp23l0g3fnu"]
[ext_resource type="Script" uid="uid://clwre6bop31u6" path="res://scene/code/bullet.gd" id="1_5i23m"]
[ext_resource type="Texture2D" uid="uid://b3kxtjssqur68" path="res://Free/Traps/Saw/Chain.png" id="2_5i23m"]
[sub_resource type="CircleShape2D" id="CircleShape2D_b1ow3"]
[node name="bullet" type="Area2D" unique_id=1812603530]
script = ExtResource("1_5i23m")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1526648490]
scale = Vector2(0.5, 0.5)
shape = SubResource("CircleShape2D_b1ow3")
[node name="Chain" type="Sprite2D" parent="." unique_id=558185656]
scale = Vector2(2, 2)
texture = ExtResource("2_5i23m")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
+300
View File
@@ -0,0 +1,300 @@
[gd_scene format=3 uid="uid://ckd8e055xd7dq"]
[ext_resource type="Script" uid="uid://dqrhmj1p0nklt" path="res://scene/code/checkpoint.gd" id="1_w3e8v"]
[ext_resource type="Texture2D" uid="uid://bj07erq5yobfl" path="res://Free/Items/Checkpoints/Checkpoint/Checkpoint (No Flag).png" id="2_pfd1r"]
[ext_resource type="Texture2D" uid="uid://bxxs232ja2ga3" path="res://Free/Items/Checkpoints/Checkpoint/Checkpoint (Flag Out) (64x64).png" id="3_4r0pf"]
[ext_resource type="Texture2D" uid="uid://d4jwrlydrysd8" path="res://Free/Items/Checkpoints/Checkpoint/Checkpoint (Flag Idle)(64x64).png" id="4_70vlp"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_b1ow3"]
size = Vector2(29, 46)
[sub_resource type="AtlasTexture" id="AtlasTexture_3yyph"]
atlas = ExtResource("2_pfd1r")
region = Rect2(0, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_kjyn1"]
atlas = ExtResource("3_4r0pf")
region = Rect2(0, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_ypsrt"]
atlas = ExtResource("3_4r0pf")
region = Rect2(64, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_p7qjj"]
atlas = ExtResource("3_4r0pf")
region = Rect2(128, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_2tt0e"]
atlas = ExtResource("3_4r0pf")
region = Rect2(192, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_d6t2j"]
atlas = ExtResource("3_4r0pf")
region = Rect2(256, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_tt8tf"]
atlas = ExtResource("3_4r0pf")
region = Rect2(320, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_vvpko"]
atlas = ExtResource("3_4r0pf")
region = Rect2(384, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_ewpvq"]
atlas = ExtResource("3_4r0pf")
region = Rect2(448, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_13j1i"]
atlas = ExtResource("3_4r0pf")
region = Rect2(512, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_7ldfp"]
atlas = ExtResource("3_4r0pf")
region = Rect2(576, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_02i7w"]
atlas = ExtResource("3_4r0pf")
region = Rect2(640, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_xmb2d"]
atlas = ExtResource("3_4r0pf")
region = Rect2(704, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_3hu3y"]
atlas = ExtResource("3_4r0pf")
region = Rect2(768, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_bqbyf"]
atlas = ExtResource("3_4r0pf")
region = Rect2(832, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_j4olg"]
atlas = ExtResource("3_4r0pf")
region = Rect2(896, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_uamno"]
atlas = ExtResource("3_4r0pf")
region = Rect2(960, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_ygvhm"]
atlas = ExtResource("3_4r0pf")
region = Rect2(1024, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_4g4mk"]
atlas = ExtResource("3_4r0pf")
region = Rect2(1088, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_pglwj"]
atlas = ExtResource("3_4r0pf")
region = Rect2(1152, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_e2bh6"]
atlas = ExtResource("3_4r0pf")
region = Rect2(1216, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_dl6su"]
atlas = ExtResource("3_4r0pf")
region = Rect2(1280, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_rklml"]
atlas = ExtResource("3_4r0pf")
region = Rect2(1344, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_s2lxs"]
atlas = ExtResource("3_4r0pf")
region = Rect2(1408, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_k7bid"]
atlas = ExtResource("3_4r0pf")
region = Rect2(1472, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_s8t55"]
atlas = ExtResource("3_4r0pf")
region = Rect2(1536, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_2cus6"]
atlas = ExtResource("3_4r0pf")
region = Rect2(1600, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_fwg2c"]
atlas = ExtResource("4_70vlp")
region = Rect2(0, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_buphh"]
atlas = ExtResource("4_70vlp")
region = Rect2(64, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_ri1kc"]
atlas = ExtResource("4_70vlp")
region = Rect2(128, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_y37k3"]
atlas = ExtResource("4_70vlp")
region = Rect2(192, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_t1mu7"]
atlas = ExtResource("4_70vlp")
region = Rect2(256, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_usudw"]
atlas = ExtResource("4_70vlp")
region = Rect2(320, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_hbfqp"]
atlas = ExtResource("4_70vlp")
region = Rect2(384, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_0p1t2"]
atlas = ExtResource("4_70vlp")
region = Rect2(448, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_udcf2"]
atlas = ExtResource("4_70vlp")
region = Rect2(512, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_uqqhu"]
atlas = ExtResource("4_70vlp")
region = Rect2(576, 0, 64, 64)
[sub_resource type="SpriteFrames" id="SpriteFrames_b1ow3"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_3yyph")
}],
"loop": 1,
"name": &"NULL",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_kjyn1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ypsrt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_p7qjj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2tt0e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_d6t2j")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tt8tf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vvpko")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ewpvq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_13j1i")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7ldfp")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_02i7w")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xmb2d")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3hu3y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bqbyf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_j4olg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uamno")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ygvhm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4g4mk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pglwj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_e2bh6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dl6su")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rklml")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_s2lxs")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_k7bid")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_s8t55")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2cus6")
}],
"loop": 0,
"name": &"ROLL",
"speed": 30.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_fwg2c")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_buphh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ri1kc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y37k3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t1mu7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_usudw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hbfqp")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0p1t2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_udcf2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uqqhu")
}],
"loop": 2,
"name": &"YES",
"speed": 20.0
}]
[node name="Checkpoint" type="Area2D" unique_id=1219985774]
collision_mask = 3
script = ExtResource("1_w3e8v")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1692855128]
position = Vector2(2.5, 9)
shape = SubResource("RectangleShape2D_b1ow3")
[node name="Animation_flag" type="AnimatedSprite2D" parent="." unique_id=1526599138]
sprite_frames = SubResource("SpriteFrames_b1ow3")
animation = &"YES"
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
+100
View File
@@ -0,0 +1,100 @@
[gd_scene format=3 uid="uid://dy0a0gyebvqy6"]
[ext_resource type="Script" uid="uid://bvs3jagxfk5px" path="res://scene/code/end.gd" id="1_33ljv"]
[ext_resource type="Texture2D" uid="uid://c3oghf5xp7e5b" path="res://Free/Items/Checkpoints/End/End (Pressed) (64x64).png" id="2_4pau4"]
[ext_resource type="Texture2D" uid="uid://dmij0r1cx7oln" path="res://Free/Items/Checkpoints/End/End (Idle).png" id="3_urp6o"]
[sub_resource type="AtlasTexture" id="AtlasTexture_cdpov"]
atlas = ExtResource("2_4pau4")
region = Rect2(0, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_cn7iw"]
atlas = ExtResource("2_4pau4")
region = Rect2(64, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_0k6ae"]
atlas = ExtResource("2_4pau4")
region = Rect2(128, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_cgfx8"]
atlas = ExtResource("2_4pau4")
region = Rect2(192, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_hpg6b"]
atlas = ExtResource("2_4pau4")
region = Rect2(256, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_0fe4t"]
atlas = ExtResource("2_4pau4")
region = Rect2(320, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_qoom7"]
atlas = ExtResource("2_4pau4")
region = Rect2(384, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_06ckt"]
atlas = ExtResource("2_4pau4")
region = Rect2(448, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_ouws0"]
atlas = ExtResource("3_urp6o")
region = Rect2(0, 0, 64, 64)
[sub_resource type="SpriteFrames" id="SpriteFrames_rby76"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_cdpov")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cn7iw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0k6ae")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cgfx8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hpg6b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0fe4t")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qoom7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_06ckt")
}],
"loop": 0,
"name": &"END",
"speed": 25.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ouws0")
}],
"loop": 1,
"name": &"IDLE",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_b1ow3"]
size = Vector2(45, 42)
[node name="End" type="Area2D" unique_id=174290455]
collision_mask = 3
script = ExtResource("1_33ljv")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1942427552]
sprite_frames = SubResource("SpriteFrames_rby76")
animation = &"END"
frame = 7
frame_progress = 1.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1518240541]
position = Vector2(-0.5, 11)
shape = SubResource("RectangleShape2D_b1ow3")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
+7
View File
@@ -0,0 +1,7 @@
[gd_scene format=3 uid="uid://wbm1jiogb3le"]
[ext_resource type="Texture2D" uid="uid://ckj5yr2is2gkh" path="res://Free/Traps/Sand Mud Ice/Mud Particle.png" id="1_0auk7"]
[node name="HP_Block" type="Sprite2D" unique_id=707532110]
scale = Vector2(3, 3)
texture = ExtResource("1_0auk7")
File diff suppressed because one or more lines are too long
+275
View File
@@ -0,0 +1,275 @@
[gd_scene format=3 uid="uid://taq4ktl06qk6"]
[ext_resource type="Script" uid="uid://ow65qtakttsq" path="res://scene/code/PigGod.gd" id="1_56x3o"]
[ext_resource type="Texture2D" uid="uid://ca1paq162m6yq" path="res://Free/Main Characters/Pink Man/Idle (32x32).png" id="2_56x3o"]
[ext_resource type="Texture2D" uid="uid://br323vygw1f0o" path="res://Free/Main Characters/Pink Man/Hit (32x32).png" id="2_lygtk"]
[ext_resource type="Texture2D" uid="uid://bbs4wolb0an6u" path="res://Free/Main Characters/Pink Man/Run (32x32).png" id="3_gx5db"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_b1ow3"]
[sub_resource type="AtlasTexture" id="AtlasTexture_isswd"]
atlas = ExtResource("2_lygtk")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_5i3jl"]
atlas = ExtResource("2_lygtk")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_b56id"]
atlas = ExtResource("2_lygtk")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_jn0pv"]
atlas = ExtResource("2_lygtk")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_qfocp"]
atlas = ExtResource("2_lygtk")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_brrkd"]
atlas = ExtResource("2_lygtk")
region = Rect2(160, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_a4ejp"]
atlas = ExtResource("2_lygtk")
region = Rect2(192, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_gx5db"]
atlas = ExtResource("2_56x3o")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_lygtk"]
atlas = ExtResource("2_56x3o")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ec6gg"]
atlas = ExtResource("2_56x3o")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_6tx6s"]
atlas = ExtResource("2_56x3o")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_0x4pw"]
atlas = ExtResource("2_56x3o")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_6y3v1"]
atlas = ExtResource("2_56x3o")
region = Rect2(160, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_5doqt"]
atlas = ExtResource("2_56x3o")
region = Rect2(192, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_percs"]
atlas = ExtResource("2_56x3o")
region = Rect2(224, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_vxqrd"]
atlas = ExtResource("2_56x3o")
region = Rect2(256, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_v4i02"]
atlas = ExtResource("2_56x3o")
region = Rect2(288, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_vs7em"]
atlas = ExtResource("2_56x3o")
region = Rect2(320, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_2i2p8"]
atlas = ExtResource("3_gx5db")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ag6ac"]
atlas = ExtResource("3_gx5db")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_en81q"]
atlas = ExtResource("3_gx5db")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_0qec0"]
atlas = ExtResource("3_gx5db")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_vqx87"]
atlas = ExtResource("3_gx5db")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ldkb2"]
atlas = ExtResource("3_gx5db")
region = Rect2(160, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_q5chm"]
atlas = ExtResource("3_gx5db")
region = Rect2(192, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_fkxmb"]
atlas = ExtResource("3_gx5db")
region = Rect2(224, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_q1v34"]
atlas = ExtResource("3_gx5db")
region = Rect2(256, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ut6hf"]
atlas = ExtResource("3_gx5db")
region = Rect2(288, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_618jx"]
atlas = ExtResource("3_gx5db")
region = Rect2(320, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_vpu3w"]
atlas = ExtResource("3_gx5db")
region = Rect2(352, 0, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_b1ow3"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_isswd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5i3jl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_b56id")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jn0pv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qfocp")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_brrkd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_a4ejp")
}],
"loop": 2,
"name": &"HIT",
"speed": 25.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_gx5db")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lygtk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ec6gg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6tx6s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0x4pw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6y3v1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5doqt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_percs")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vxqrd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_v4i02")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vs7em")
}],
"loop": 2,
"name": &"IDLE",
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_2i2p8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ag6ac")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_en81q")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0qec0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vqx87")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ldkb2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_q5chm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fkxmb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_q1v34")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ut6hf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_618jx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vpu3w")
}],
"loop": 1,
"name": &"RUN",
"speed": 30.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rby76"]
size = Vector2(539, 68)
[sub_resource type="CircleShape2D" id="CircleShape2D_rby76"]
radius = 16.03122
[node name="MIKU" type="CharacterBody2D" unique_id=1774362994]
script = ExtResource("1_56x3o")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=381051812]
shape = SubResource("CapsuleShape2D_b1ow3")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1682826054]
sprite_frames = SubResource("SpriteFrames_b1ow3")
animation = &"HIT"
frame_progress = 0.41960245
[node name="timeJUMP" type="Timer" parent="." unique_id=2050945044]
wait_time = 1.5
one_shot = true
[node name="timerFIRE" type="Timer" parent="." unique_id=67956767]
[node name="jiance" type="Area2D" parent="." unique_id=2051708783]
collision_mask = 3
[node name="CollisionShape2D" type="CollisionShape2D" parent="jiance" unique_id=739632181]
position = Vector2(0.5, 1)
shape = SubResource("RectangleShape2D_rby76")
[node name="damage" type="Area2D" parent="." unique_id=853052197]
collision_mask = 3
[node name="CollisionShape2D" type="CollisionShape2D" parent="damage" unique_id=168345640]
shape = SubResource("CircleShape2D_rby76")
[connection signal="body_entered" from="jiance" to="." method="_on_jiance_body_entered"]
[connection signal="body_entered" from="damage" to="." method="_on_damage_body_entered"]
+219
View File
@@ -0,0 +1,219 @@
[gd_scene format=3 uid="uid://taq4ktl06qk6"]
[ext_resource type="Script" uid="uid://ow65qtakttsq" path="res://scene/entities/PigGod.gd" id="1_56x3o"]
[ext_resource type="Texture2D" uid="uid://ca1paq162m6yq" path="res://Free/Main Characters/Pink Man/Idle (32x32).png" id="2_56x3o"]
[ext_resource type="Texture2D" uid="uid://bbs4wolb0an6u" path="res://Free/Main Characters/Pink Man/Run (32x32).png" id="3_gx5db"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_b1ow3"]
[sub_resource type="AtlasTexture" id="AtlasTexture_gx5db"]
atlas = ExtResource("2_56x3o")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_lygtk"]
atlas = ExtResource("2_56x3o")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ec6gg"]
atlas = ExtResource("2_56x3o")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_6tx6s"]
atlas = ExtResource("2_56x3o")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_0x4pw"]
atlas = ExtResource("2_56x3o")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_6y3v1"]
atlas = ExtResource("2_56x3o")
region = Rect2(160, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_5doqt"]
atlas = ExtResource("2_56x3o")
region = Rect2(192, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_percs"]
atlas = ExtResource("2_56x3o")
region = Rect2(224, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_vxqrd"]
atlas = ExtResource("2_56x3o")
region = Rect2(256, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_v4i02"]
atlas = ExtResource("2_56x3o")
region = Rect2(288, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_vs7em"]
atlas = ExtResource("2_56x3o")
region = Rect2(320, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_2i2p8"]
atlas = ExtResource("3_gx5db")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ag6ac"]
atlas = ExtResource("3_gx5db")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_en81q"]
atlas = ExtResource("3_gx5db")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_0qec0"]
atlas = ExtResource("3_gx5db")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_vqx87"]
atlas = ExtResource("3_gx5db")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ldkb2"]
atlas = ExtResource("3_gx5db")
region = Rect2(160, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_q5chm"]
atlas = ExtResource("3_gx5db")
region = Rect2(192, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_fkxmb"]
atlas = ExtResource("3_gx5db")
region = Rect2(224, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_q1v34"]
atlas = ExtResource("3_gx5db")
region = Rect2(256, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ut6hf"]
atlas = ExtResource("3_gx5db")
region = Rect2(288, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_618jx"]
atlas = ExtResource("3_gx5db")
region = Rect2(320, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_vpu3w"]
atlas = ExtResource("3_gx5db")
region = Rect2(352, 0, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_b1ow3"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_gx5db")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lygtk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ec6gg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6tx6s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0x4pw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6y3v1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5doqt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_percs")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vxqrd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_v4i02")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vs7em")
}],
"loop": 2,
"name": &"IDLE",
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_2i2p8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ag6ac")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_en81q")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0qec0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vqx87")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ldkb2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_q5chm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fkxmb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_q1v34")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ut6hf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_618jx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vpu3w")
}],
"loop": 1,
"name": &"RUN",
"speed": 30.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rby76"]
size = Vector2(539, 68)
[sub_resource type="CircleShape2D" id="CircleShape2D_rby76"]
radius = 16.03122
[node name="MIKU" type="CharacterBody2D" unique_id=1774362994]
script = ExtResource("1_56x3o")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=381051812]
shape = SubResource("CapsuleShape2D_b1ow3")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1682826054]
sprite_frames = SubResource("SpriteFrames_b1ow3")
animation = &"RUN"
frame_progress = 0.80045
[node name="timeJUMP" type="Timer" parent="." unique_id=2050945044]
wait_time = 4.0
one_shot = true
[node name="timerFIRE" type="Timer" parent="." unique_id=67956767]
[node name="jiance" type="Area2D" parent="." unique_id=2051708783]
collision_mask = 3
[node name="CollisionShape2D" type="CollisionShape2D" parent="jiance" unique_id=739632181]
position = Vector2(0.5, 1)
shape = SubResource("RectangleShape2D_rby76")
[node name="damage" type="Area2D" parent="." unique_id=853052197]
[node name="CollisionShape2D" type="CollisionShape2D" parent="damage" unique_id=168345640]
shape = SubResource("CircleShape2D_rby76")
[connection signal="body_entered" from="jiance" to="." method="_on_jiance_body_entered"]
[connection signal="body_entered" from="damage" to="." method="_on_damage_body_entered"]
+335
View File
@@ -0,0 +1,335 @@
[gd_scene format=3 uid="uid://bm021k06oe0eb"]
[ext_resource type="Script" uid="uid://cu71l16bkptlq" path="res://scene/code/playar.gd" id="1_qk8q7"]
[ext_resource type="Texture2D" uid="uid://b46r7tijsblxy" path="res://Free/Main Characters/Ninja Frog/Hit (32x32).png" id="2_cux6y"]
[ext_resource type="PackedScene" uid="uid://wbm1jiogb3le" path="res://scene/entities/hp_block.tscn" id="2_fjyjg"]
[ext_resource type="Texture2D" uid="uid://415h2x3fj3ur" path="res://Free/Main Characters/Ninja Frog/Double Jump (32x32).png" id="2_hnt1n"]
[ext_resource type="Texture2D" uid="uid://dtbu7rg4sl3ga" path="res://Free/Main Characters/Ninja Frog/Idle (32x32).png" id="3_e6voa"]
[ext_resource type="Texture2D" uid="uid://gev3igv7s478" path="res://Free/Main Characters/Ninja Frog/Jump (32x32).png" id="4_e6voa"]
[ext_resource type="Texture2D" uid="uid://bi21p838m4ux0" path="res://Free/Main Characters/Ninja Frog/Run (32x32).png" id="4_hnt1n"]
[sub_resource type="AtlasTexture" id="AtlasTexture_hdcab"]
atlas = ExtResource("2_hnt1n")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_8y8ay"]
atlas = ExtResource("2_hnt1n")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_b1321"]
atlas = ExtResource("2_hnt1n")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_7adbh"]
atlas = ExtResource("2_hnt1n")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_pme16"]
atlas = ExtResource("2_hnt1n")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_u6d5g"]
atlas = ExtResource("2_hnt1n")
region = Rect2(160, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_lhjbe"]
atlas = ExtResource("2_cux6y")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_2c3kl"]
atlas = ExtResource("2_cux6y")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_vq2ro"]
atlas = ExtResource("2_cux6y")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_5f7ca"]
atlas = ExtResource("2_cux6y")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_l3bgt"]
atlas = ExtResource("2_cux6y")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_3c8dl"]
atlas = ExtResource("2_cux6y")
region = Rect2(160, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_bawoj"]
atlas = ExtResource("2_cux6y")
region = Rect2(192, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_bgo24"]
atlas = ExtResource("3_e6voa")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_cux6y"]
atlas = ExtResource("3_e6voa")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_e6voa"]
atlas = ExtResource("3_e6voa")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_hnt1n"]
atlas = ExtResource("3_e6voa")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_fjyjg"]
atlas = ExtResource("3_e6voa")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_bafpg"]
atlas = ExtResource("3_e6voa")
region = Rect2(160, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_rdotk"]
atlas = ExtResource("3_e6voa")
region = Rect2(192, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ogisu"]
atlas = ExtResource("3_e6voa")
region = Rect2(224, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_tqnq5"]
atlas = ExtResource("3_e6voa")
region = Rect2(256, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_u0who"]
atlas = ExtResource("3_e6voa")
region = Rect2(288, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_avq1k"]
atlas = ExtResource("3_e6voa")
region = Rect2(320, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ixiuc"]
atlas = ExtResource("4_e6voa")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_hy4xp"]
atlas = ExtResource("4_hnt1n")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_is48x"]
atlas = ExtResource("4_hnt1n")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_g0w34"]
atlas = ExtResource("4_hnt1n")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ioo7t"]
atlas = ExtResource("4_hnt1n")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_crccg"]
atlas = ExtResource("4_hnt1n")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_1mbo5"]
atlas = ExtResource("4_hnt1n")
region = Rect2(160, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_jyff1"]
atlas = ExtResource("4_hnt1n")
region = Rect2(192, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_cofkn"]
atlas = ExtResource("4_hnt1n")
region = Rect2(224, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_5jhps"]
atlas = ExtResource("4_hnt1n")
region = Rect2(256, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_au4sx"]
atlas = ExtResource("4_hnt1n")
region = Rect2(288, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_8654n"]
atlas = ExtResource("4_hnt1n")
region = Rect2(320, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_3en3a"]
atlas = ExtResource("4_hnt1n")
region = Rect2(352, 0, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_njdnk"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_hdcab")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8y8ay")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_b1321")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7adbh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pme16")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_u6d5g")
}],
"loop": 1,
"name": &"DOUBLE_JUMP",
"speed": 30.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_lhjbe")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2c3kl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vq2ro")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5f7ca")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l3bgt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3c8dl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bawoj")
}],
"loop": 1,
"name": &"HIT",
"speed": 25.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_bgo24")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cux6y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_e6voa")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hnt1n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fjyjg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bafpg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rdotk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ogisu")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tqnq5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_u0who")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_avq1k")
}],
"loop": 2,
"name": &"IDLE",
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ixiuc")
}],
"loop": 1,
"name": &"JUMP",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_hy4xp")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_is48x")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g0w34")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ioo7t")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_crccg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1mbo5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jyff1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cofkn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5jhps")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_au4sx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8654n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3en3a")
}],
"loop": 1,
"name": &"RUN",
"speed": 30.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_b1ow3"]
size = Vector2(23, 24)
[node name="Playar" type="CharacterBody2D" unique_id=711703698]
collision_layer = 2
collision_mask = 15
script = ExtResource("1_qk8q7")
[node name="HP_Block3" parent="." unique_id=707532110 instance=ExtResource("2_fjyjg")]
position = Vector2(-249, -165)
[node name="HP_Block2" parent="." unique_id=1722397226 instance=ExtResource("2_fjyjg")]
position = Vector2(-276, -165)
[node name="HP_Block" parent="." unique_id=1710966811 instance=ExtResource("2_fjyjg")]
position = Vector2(-305, -165)
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1766822977]
position = Vector2(0, -3)
sprite_frames = SubResource("SpriteFrames_njdnk")
animation = &"DOUBLE_JUMP"
frame_progress = 0.29018685
[node name="Camera2D" type="Camera2D" parent="." unique_id=172930772]
zoom = Vector2(2, 2)
[node name="FIRE" type="Marker2D" parent="." unique_id=1683041340]
[node name="TimerFIRE" type="Timer" parent="." unique_id=1428078318]
wait_time = 0.7
one_shot = true
[node name="Timerinvincibility" type="Timer" parent="." unique_id=1733750391]
one_shot = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1579954367]
position = Vector2(-0.5, 1)
shape = SubResource("RectangleShape2D_b1ow3")
+23
View File
@@ -0,0 +1,23 @@
[gd_scene format=3 uid="uid://c3fibj1v6dewg"]
[ext_resource type="Script" uid="uid://c40ox7fx62471" path="res://scene/code/spike.gd" id="1_05qjc"]
[ext_resource type="Texture2D" uid="uid://bkfeabbkjs83g" path="res://Free/Traps/Spikes/Idle.png" id="1_kmxnw"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_b1ow3"]
size = Vector2(15, 9)
[node name="spike" type="Area2D" unique_id=59570697]
collision_mask = 7
script = ExtResource("1_05qjc")
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=581255206]
texture = ExtResource("1_kmxnw")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1335017767]
position = Vector2(-0.5, 3.5)
shape = SubResource("RectangleShape2D_b1ow3")
[node name="Timerdamage" type="Timer" parent="." unique_id=1552615038]
one_shot = true
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
+30
View File
@@ -0,0 +1,30 @@
[gd_scene format=3 uid="uid://3ft48i5o2q4v"]
[ext_resource type="Texture2D" uid="uid://bkfeabbkjs83g" path="res://Free/Traps/Spikes/Idle.png" id="1_v3jik"]
[node name="Idle" type="Sprite2D" unique_id=1314968904]
texture = ExtResource("1_v3jik")
[node name="Idle2" type="Sprite2D" parent="." unique_id=1817205247]
position = Vector2(16, 0)
texture = ExtResource("1_v3jik")
[node name="Idle7" type="Sprite2D" parent="." unique_id=1992223345]
position = Vector2(98, 0)
texture = ExtResource("1_v3jik")
[node name="Idle3" type="Sprite2D" parent="." unique_id=702043997]
position = Vector2(32, 0)
texture = ExtResource("1_v3jik")
[node name="Idle4" type="Sprite2D" parent="." unique_id=1885555257]
position = Vector2(48, 0)
texture = ExtResource("1_v3jik")
[node name="Idle5" type="Sprite2D" parent="." unique_id=85019114]
position = Vector2(65, 0)
texture = ExtResource("1_v3jik")
[node name="Idle6" type="Sprite2D" parent="." unique_id=470955193]
position = Vector2(82, 0)
texture = ExtResource("1_v3jik")
+24
View File
@@ -0,0 +1,24 @@
extends Area2D
@onready var animated = $AnimatedSprite2D
var target : Node2D = null
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
animated.play("ROLL")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if target:
if target.has_method("take_damage"):
target.take_damage(1)
func _on_body_entered(body: Node2D) -> void:
if body.is_in_group("Player"):
target = body
func _on_body_exited(body: Node2D) -> void:
if body.is_in_group("Player"):
target = null
+1
View File
@@ -0,0 +1 @@
uid://cqpelvqkgcj0f
+86
View File
@@ -0,0 +1,86 @@
[gd_scene format=3 uid="uid://ccat0krfw2wbp"]
[ext_resource type="Script" uid="uid://cqpelvqkgcj0f" path="res://scene/entities/whirling_blade.gd" id="1_2apdy"]
[ext_resource type="Texture2D" uid="uid://bp04cf1lxaf8a" path="res://Free/Traps/Saw/On (38x38).png" id="1_37k7r"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_b1ow3"]
[sub_resource type="AtlasTexture" id="AtlasTexture_2apdy"]
atlas = ExtResource("1_37k7r")
region = Rect2(0, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_4r1l6"]
atlas = ExtResource("1_37k7r")
region = Rect2(38, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_5bx00"]
atlas = ExtResource("1_37k7r")
region = Rect2(76, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_ht4jq"]
atlas = ExtResource("1_37k7r")
region = Rect2(114, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_w8fro"]
atlas = ExtResource("1_37k7r")
region = Rect2(152, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_xlno7"]
atlas = ExtResource("1_37k7r")
region = Rect2(190, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_qyx34"]
atlas = ExtResource("1_37k7r")
region = Rect2(228, 0, 38, 38)
[sub_resource type="AtlasTexture" id="AtlasTexture_udqe3"]
atlas = ExtResource("1_37k7r")
region = Rect2(266, 0, 38, 38)
[sub_resource type="SpriteFrames" id="SpriteFrames_ymnsx"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_2apdy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4r1l6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5bx00")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ht4jq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_w8fro")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xlno7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qyx34")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_udqe3")
}],
"loop": 1,
"name": &"ROLL",
"speed": 45.0
}]
[node name="Whirling_blade" type="Area2D" unique_id=986788894]
collision_mask = 3
script = ExtResource("1_2apdy")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1859159804]
scale = Vector2(1.5, 1.5)
shape = SubResource("RectangleShape2D_b1ow3")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1547792498]
sprite_frames = SubResource("SpriteFrames_ymnsx")
animation = &"ROLL"
frame_progress = 0.68251806
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="body_exited" from="." to="." method="_on_body_exited"]