coins, enemies, etc.
This commit is contained in:
1 parent
524cdd42ea
commit
baa96e18ca
70 files changed
+1270
-199
No files matched your search
@@ -0,0 +1,73 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://oja81cvx8jvu"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/badguy.gd" id="1_du8nq"]
|
||||
[ext_resource type="Texture2D" uid="uid://qwx0hufw5cxp" path="res://graphics/slime_purple.png" id="1_gpjbh"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lrl51"]
|
||||
atlas = ExtResource("1_gpjbh")
|
||||
region = Rect2(0, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4jdgy"]
|
||||
atlas = ExtResource("1_gpjbh")
|
||||
region = Rect2(24, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7qvua"]
|
||||
atlas = ExtResource("1_gpjbh")
|
||||
region = Rect2(48, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lc61m"]
|
||||
atlas = ExtResource("1_gpjbh")
|
||||
region = Rect2(72, 24, 24, 24)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_t8k3l"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lrl51")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_4jdgy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7qvua")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lc61m")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"chase",
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_nrtm8"]
|
||||
size = Vector2(14, 15)
|
||||
|
||||
[node name="Area2D" type="Area2D"]
|
||||
script = ExtResource("1_du8nq")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
sprite_frames = SubResource("SpriteFrames_t8k3l")
|
||||
animation = &"chase"
|
||||
autoplay = "chase"
|
||||
frame_progress = 0.364441
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 4.5)
|
||||
shape = SubResource("RectangleShape2D_nrtm8")
|
||||
|
||||
[node name="RightCast" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(9, 0)
|
||||
|
||||
[node name="LeftCast" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(-9, 0)
|
||||
|
||||
[node name="RightFloorCast" type="RayCast2D" parent="."]
|
||||
position = Vector2(8, 10)
|
||||
target_position = Vector2(0, 4)
|
||||
|
||||
[node name="LeftFloorCast" type="RayCast2D" parent="."]
|
||||
position = Vector2(-8, 10)
|
||||
target_position = Vector2(0, 4)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
+102
-26
@@ -1,98 +1,174 @@
|
||||
[gd_scene load_steps=28 format=3 uid="uid://go4yc8hfo1gq"]
|
||||
[gd_scene load_steps=39 format=3 uid="uid://go4yc8hfo1gq"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/CharacterBody2D.gd" id="1_x87yo"]
|
||||
[ext_resource type="Texture2D" uid="uid://bqj4phkget2pp" path="res://graphics/Player Idle 48x48.png" id="2_c7awu"]
|
||||
[ext_resource type="Texture2D" uid="uid://bnvk6gm188vsv" path="res://graphics/player jump 48x48.png" id="3_h6vre"]
|
||||
[ext_resource type="Texture2D" uid="uid://bag8xvlev6yxg" path="res://graphics/player run 48x48.png" id="3_w6p3w"]
|
||||
[ext_resource type="Texture2D" uid="uid://bqj4phkget2pp" path="res://graphics/player animations/Player Idle 48x48.png" id="2_fibqb"]
|
||||
[ext_resource type="Texture2D" uid="uid://b4te11j5ut62p" path="res://graphics/player animations/Player Death 64x64.png" id="2_lgyh4"]
|
||||
[ext_resource type="Texture2D" uid="uid://bnvk6gm188vsv" path="res://graphics/player animations/player jump 48x48.png" id="3_1rbvb"]
|
||||
[ext_resource type="Texture2D" uid="uid://bag8xvlev6yxg" path="res://graphics/player animations/player run 48x48.png" id="4_fouff"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_q43wd"]
|
||||
atlas = ExtResource("2_lgyh4")
|
||||
region = Rect2(0, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_r0cll"]
|
||||
atlas = ExtResource("2_lgyh4")
|
||||
region = Rect2(48, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6ujxt"]
|
||||
atlas = ExtResource("2_lgyh4")
|
||||
region = Rect2(96, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1baju"]
|
||||
atlas = ExtResource("2_lgyh4")
|
||||
region = Rect2(144, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_i445f"]
|
||||
atlas = ExtResource("2_lgyh4")
|
||||
region = Rect2(192, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7op4n"]
|
||||
atlas = ExtResource("2_lgyh4")
|
||||
region = Rect2(240, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mtsu2"]
|
||||
atlas = ExtResource("2_lgyh4")
|
||||
region = Rect2(288, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_an4ql"]
|
||||
atlas = ExtResource("2_lgyh4")
|
||||
region = Rect2(336, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_cgbkp"]
|
||||
atlas = ExtResource("2_lgyh4")
|
||||
region = Rect2(384, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_p6mmk"]
|
||||
atlas = ExtResource("2_lgyh4")
|
||||
region = Rect2(432, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_aeg01"]
|
||||
atlas = ExtResource("2_c7awu")
|
||||
atlas = ExtResource("2_fibqb")
|
||||
region = Rect2(0, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1uaof"]
|
||||
atlas = ExtResource("2_c7awu")
|
||||
atlas = ExtResource("2_fibqb")
|
||||
region = Rect2(48, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gt6ba"]
|
||||
atlas = ExtResource("2_c7awu")
|
||||
atlas = ExtResource("2_fibqb")
|
||||
region = Rect2(96, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tay2c"]
|
||||
atlas = ExtResource("2_c7awu")
|
||||
atlas = ExtResource("2_fibqb")
|
||||
region = Rect2(144, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1ag8q"]
|
||||
atlas = ExtResource("2_c7awu")
|
||||
atlas = ExtResource("2_fibqb")
|
||||
region = Rect2(192, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_hjiy4"]
|
||||
atlas = ExtResource("2_c7awu")
|
||||
atlas = ExtResource("2_fibqb")
|
||||
region = Rect2(240, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_82onf"]
|
||||
atlas = ExtResource("2_c7awu")
|
||||
atlas = ExtResource("2_fibqb")
|
||||
region = Rect2(288, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yqp8u"]
|
||||
atlas = ExtResource("2_c7awu")
|
||||
atlas = ExtResource("2_fibqb")
|
||||
region = Rect2(336, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_m6d3n"]
|
||||
atlas = ExtResource("2_c7awu")
|
||||
atlas = ExtResource("2_fibqb")
|
||||
region = Rect2(384, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ax7e1"]
|
||||
atlas = ExtResource("2_c7awu")
|
||||
atlas = ExtResource("2_fibqb")
|
||||
region = Rect2(432, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qrer8"]
|
||||
atlas = ExtResource("3_h6vre")
|
||||
atlas = ExtResource("3_1rbvb")
|
||||
region = Rect2(0, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wpiaq"]
|
||||
atlas = ExtResource("3_h6vre")
|
||||
atlas = ExtResource("3_1rbvb")
|
||||
region = Rect2(48, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kc70w"]
|
||||
atlas = ExtResource("3_h6vre")
|
||||
atlas = ExtResource("3_1rbvb")
|
||||
region = Rect2(96, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_i4hpn"]
|
||||
atlas = ExtResource("3_w6p3w")
|
||||
atlas = ExtResource("4_fouff")
|
||||
region = Rect2(0, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_sri3h"]
|
||||
atlas = ExtResource("3_w6p3w")
|
||||
atlas = ExtResource("4_fouff")
|
||||
region = Rect2(48, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_igbwk"]
|
||||
atlas = ExtResource("3_w6p3w")
|
||||
atlas = ExtResource("4_fouff")
|
||||
region = Rect2(96, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_t7p31"]
|
||||
atlas = ExtResource("3_w6p3w")
|
||||
atlas = ExtResource("4_fouff")
|
||||
region = Rect2(144, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ovti0"]
|
||||
atlas = ExtResource("3_w6p3w")
|
||||
atlas = ExtResource("4_fouff")
|
||||
region = Rect2(192, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2vy0d"]
|
||||
atlas = ExtResource("3_w6p3w")
|
||||
atlas = ExtResource("4_fouff")
|
||||
region = Rect2(240, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_klr2a"]
|
||||
atlas = ExtResource("3_w6p3w")
|
||||
atlas = ExtResource("4_fouff")
|
||||
region = Rect2(288, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ax6e1"]
|
||||
atlas = ExtResource("3_w6p3w")
|
||||
atlas = ExtResource("4_fouff")
|
||||
region = Rect2(336, 0, 48, 48)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_8idir"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_q43wd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_r0cll")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6ujxt")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1baju")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_i445f")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7op4n")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mtsu2")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_an4ql")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_cgbkp")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_p6mmk")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"death",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_aeg01")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
@@ -183,7 +259,7 @@ metadata/_edit_group_ = true
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
sprite_frames = SubResource("SpriteFrames_8idir")
|
||||
animation = &"idle"
|
||||
animation = &"death"
|
||||
autoplay = "idle"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
[gd_scene load_steps=17 format=3 uid="uid://s5mebw76f4y"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dxxynldiswq5g" path="res://graphics/pickups/coin.png" id="1_4ikm0"]
|
||||
[ext_resource type="Script" path="res://scripts/coin.gd" id="1_v7bd8"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_46q1v"]
|
||||
atlas = ExtResource("1_4ikm0")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_hugk0"]
|
||||
atlas = ExtResource("1_4ikm0")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ujh61"]
|
||||
atlas = ExtResource("1_4ikm0")
|
||||
region = Rect2(32, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bniki"]
|
||||
atlas = ExtResource("1_4ikm0")
|
||||
region = Rect2(48, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_w5jr2"]
|
||||
atlas = ExtResource("1_4ikm0")
|
||||
region = Rect2(64, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_eyn6o"]
|
||||
atlas = ExtResource("1_4ikm0")
|
||||
region = Rect2(80, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wka16"]
|
||||
atlas = ExtResource("1_4ikm0")
|
||||
region = Rect2(96, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pd6kk"]
|
||||
atlas = ExtResource("1_4ikm0")
|
||||
region = Rect2(112, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_d0m54"]
|
||||
atlas = ExtResource("1_4ikm0")
|
||||
region = Rect2(128, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_33sqx"]
|
||||
atlas = ExtResource("1_4ikm0")
|
||||
region = Rect2(144, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ierav"]
|
||||
atlas = ExtResource("1_4ikm0")
|
||||
region = Rect2(160, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lob1t"]
|
||||
atlas = ExtResource("1_4ikm0")
|
||||
region = Rect2(176, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_kfu8w"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_46q1v")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_hugk0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ujh61")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bniki")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_w5jr2")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_eyn6o")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wka16")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pd6kk")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_d0m54")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_33sqx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ierav")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lob1t")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_6jtug"]
|
||||
radius = 5.0
|
||||
|
||||
[node name="Area2D" type="Area2D"]
|
||||
script = ExtResource("1_v7bd8")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
sprite_frames = SubResource("SpriteFrames_kfu8w")
|
||||
autoplay = "default"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_6jtug")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
+81
-19
@@ -1,11 +1,16 @@
|
||||
[gd_scene load_steps=14 format=3 uid="uid://y083suj12rld"]
|
||||
[gd_scene load_steps=19 format=3 uid="uid://y083suj12rld"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/gamecontroller.gd" id="1_77wyw"]
|
||||
[ext_resource type="PackedScene" uid="uid://go4yc8hfo1gq" path="res://scenes/character.tscn" id="2_64ccm"]
|
||||
[ext_resource type="Texture2D" uid="uid://c43jfkjw11rsq" path="res://graphics/Terrain (32x32).png" id="2_juhow"]
|
||||
[ext_resource type="Script" path="res://scripts/Trigger.gd" id="2_nfj1w"]
|
||||
[ext_resource type="PackedScene" uid="uid://c8x0bcxa8t74o" path="res://scenes/crate.tscn" id="2_ob312"]
|
||||
[ext_resource type="Texture2D" uid="uid://biqrhb0shtygr" path="res://graphics/background/BG Image.png" id="3_vj1tk"]
|
||||
[ext_resource type="Texture2D" uid="uid://bp4mp3bh45b6i" path="res://graphics/background/Additional Sky.png" id="4_kk5vy"]
|
||||
[ext_resource type="Texture2D" uid="uid://byl5umyabyltt" path="res://graphics/background/Additional Water.png" id="5_2y1x6"]
|
||||
[ext_resource type="PackedScene" uid="uid://cdgbcjrseeoka" path="res://scenes/platform.tscn" id="6_hm88c"]
|
||||
[ext_resource type="PackedScene" uid="uid://s5mebw76f4y" path="res://scenes/coin.tscn" id="10_74ldf"]
|
||||
[ext_resource type="PackedScene" uid="uid://oja81cvx8jvu" path="res://scenes/badguy.tscn" id="11_8t7ny"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_6otpc"]
|
||||
texture = ExtResource("2_juhow")
|
||||
@@ -494,6 +499,21 @@ sources/0 = SubResource("TileSetAtlasSource_6otpc")
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_x8qck"]
|
||||
radius = 60.2993
|
||||
|
||||
[sub_resource type="Animation" id="Animation_5wtmu"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector2(141, 290)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ohhmw"]
|
||||
resource_name = "move"
|
||||
length = 2.0
|
||||
@@ -511,21 +531,6 @@ tracks/0/keys = {
|
||||
"values": [Vector2(141, 290), Vector2(278, 290), Vector2(278, 290)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_5wtmu"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector2(141, 290)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_uo6r5"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_5wtmu"),
|
||||
@@ -533,12 +538,36 @@ _data = {
|
||||
}
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
|
||||
[node name="GameController" type="Node" parent="."]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("1_77wyw")
|
||||
|
||||
[node name="Timer" type="Timer" parent="GameController"]
|
||||
|
||||
[node name="TileMap" type="TileMap" parent="."]
|
||||
tile_set = SubResource("TileSet_25cld")
|
||||
format = 2
|
||||
layer_0/tile_data = PackedInt32Array(851971, 0, 0, 851972, 65536, 0, 851973, 65536, 0, 851974, 65536, 0, 851975, 65536, 0, 851976, 65536, 0, 851977, 65536, 0, 851978, 65536, 0, 851979, 65536, 0, 917515, 65536, 2, 917514, 65536, 2, 917513, 65536, 2, 917512, 65536, 2, 917511, 65536, 2, 917510, 65536, 2, 917509, 65536, 2, 917508, 65536, 2, 917507, 0, 2, 851980, 458752, 1, 851981, 393216, 1, 851982, 65536, 0, 851983, 65536, 0, 851984, 65536, 0, 851985, 65536, 0, 851986, 65536, 0, 851987, 131072, 0, 917516, 65536, 2, 917517, 65536, 2, 917518, 65536, 2, 917519, 65536, 2, 917520, 65536, 2, 917521, 65536, 2, 917522, 65536, 2, 917523, 131072, 2, 786444, 0, 1, 720908, 0, 1, 655372, 0, 0, 655373, 131072, 0, 720909, 131072, 1, 786445, 131072, 1, 458763, 131072, 4, 458762, 0, 4, 458766, 0, 4, 458767, 131072, 4, 262155, 0, 4, 262156, 65536, 4, 262157, 65536, 4, 262158, 131072, 4, 262161, 983040, 3, 327697, 262144, 1, 393234, 65536, 4, 393233, 983040, 4, 393235, 1048576, 4, 327699, 262144, 1, 262163, 1048576, 3, 262162, 65536, 4, 655379, 0, 4, 655380, 65536, 4, 655381, 131072, 4, 458774, 0, 4, 458775, 65536, 4, 458776, 131072, 4)
|
||||
layer_0/tile_data = PackedInt32Array(851971, 0, 0, 851972, 65536, 0, 851973, 65536, 0, 851974, 65536, 0, 851975, 65536, 0, 851976, 65536, 0, 851977, 65536, 0, 851978, 65536, 0, 851979, 65536, 0, 917515, 65536, 2, 917514, 65536, 2, 917513, 65536, 2, 917512, 65536, 2, 917511, 65536, 2, 917510, 65536, 2, 917509, 65536, 2, 917508, 65536, 2, 917507, 0, 2, 851980, 458752, 1, 851981, 393216, 1, 851982, 65536, 0, 851983, 65536, 0, 851984, 65536, 0, 851985, 65536, 0, 851986, 65536, 0, 851987, 65536, 0, 917516, 65536, 2, 917517, 65536, 2, 917518, 65536, 2, 917519, 65536, 2, 917520, 65536, 2, 917521, 65536, 2, 917522, 65536, 2, 917523, 65536, 2, 786444, 0, 1, 720908, 0, 1, 655372, 0, 0, 655373, 131072, 0, 720909, 131072, 1, 786445, 131072, 1, 458763, 131072, 4, 458762, 0, 4, 458766, 0, 4, 458767, 131072, 4, 262155, 0, 4, 262156, 65536, 4, 262157, 65536, 4, 262158, 131072, 4, 262161, 983040, 3, 327697, 262144, 1, 393233, 262144, 2, 393235, 262144, 2, 327699, 262144, 1, 262163, 1048576, 3, 262162, 65536, 4, 655379, 0, 4, 655380, 65536, 4, 655381, 131072, 4, 458774, 0, 4, 458775, 65536, 4, 458776, 131072, 4, 851989, 65536, 0, 851990, 65536, 0, 851991, 458752, 1, 917527, 65536, 2, 917528, 131072, 2, 851992, 131072, 1, 851988, 65536, 0, 917524, 65536, 2, 917525, 65536, 2, 917526, 65536, 2, 786455, 0, 0, 786456, 131072, 0, 524306, 262144, 4)
|
||||
|
||||
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
|
||||
|
||||
[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground"]
|
||||
motion_mirroring = Vector2(380, 0)
|
||||
|
||||
[node name="bg" type="Sprite2D" parent="ParallaxBackground/ParallaxLayer"]
|
||||
position = Vector2(194, 400)
|
||||
texture = ExtResource("3_vj1tk")
|
||||
|
||||
[node name="sky" type="Sprite2D" parent="ParallaxBackground/ParallaxLayer"]
|
||||
position = Vector2(194, 48)
|
||||
scale = Vector2(12, 18.4375)
|
||||
texture = ExtResource("4_kk5vy")
|
||||
|
||||
[node name="water" type="Sprite2D" parent="ParallaxBackground/ParallaxLayer"]
|
||||
position = Vector2(194, 654)
|
||||
scale = Vector2(12, 12)
|
||||
texture = ExtResource("5_2y1x6")
|
||||
|
||||
[node name="RigidBody2D" parent="." instance=ExtResource("2_ob312")]
|
||||
position = Vector2(138, 97)
|
||||
@@ -557,7 +586,7 @@ position = Vector2(112, 336)
|
||||
PUSH_FORCE = 550
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="CharacterBody2D"]
|
||||
position_smoothing_speed = 6.5
|
||||
position_smoothing_speed = 6.0
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
position = Vector2(417, 92)
|
||||
@@ -583,5 +612,38 @@ autoplay = "move"
|
||||
[node name="BoxTrap" type="Node2D" parent="."]
|
||||
position = Vector2(415, -10)
|
||||
|
||||
[connection signal="areatrigger" from="Area2D" to="." method="_on_area_2d_areatrigger"]
|
||||
[node name="Coins" type="Node" parent="."]
|
||||
|
||||
[node name="Area2D2" parent="Coins" instance=ExtResource("10_74ldf")]
|
||||
position = Vector2(328, 403)
|
||||
|
||||
[node name="Area2D3" parent="Coins" instance=ExtResource("10_74ldf")]
|
||||
position = Vector2(293, 403)
|
||||
|
||||
[node name="Area2D4" parent="Coins" instance=ExtResource("10_74ldf")]
|
||||
position = Vector2(257, 403)
|
||||
|
||||
[node name="Area2D5" parent="Coins" instance=ExtResource("10_74ldf")]
|
||||
position = Vector2(221, 403)
|
||||
|
||||
[node name="Area2D6" parent="Coins" instance=ExtResource("10_74ldf")]
|
||||
position = Vector2(362, 403)
|
||||
|
||||
[node name="Area2D7" parent="Coins" instance=ExtResource("10_74ldf")]
|
||||
position = Vector2(415, 304)
|
||||
|
||||
[node name="Area2D8" parent="Coins" instance=ExtResource("10_74ldf")]
|
||||
position = Vector2(473, 403)
|
||||
|
||||
[node name="Area2D9" parent="Coins" instance=ExtResource("10_74ldf")]
|
||||
position = Vector2(507, 403)
|
||||
|
||||
[node name="Area2D10" parent="Coins" instance=ExtResource("10_74ldf")]
|
||||
position = Vector2(592, 176)
|
||||
|
||||
[node name="Area2D2" parent="." instance=ExtResource("11_8t7ny")]
|
||||
position = Vector2(187, 404)
|
||||
|
||||
[connection signal="timeout" from="GameController/Timer" to="GameController" method="resetWorld"]
|
||||
[connection signal="areatrigger" from="Area2D" to="GameController" method="_on_area_2d_areatrigger"]
|
||||
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|
||||
Reference in new issue
Block a user