box trapgit add .!
This commit is contained in:
1 parent
1b1b89fa5b
commit
a17c4a93b1
19 files changed
+314
-33
No files matched your search
@@ -14,6 +14,7 @@ shape = SubResource("CircleShape2D_1gtqp")
|
||||
debug_color = Color(0.721569, 0.337255, 0.854902, 0.419608)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
scale = Vector2(0.102564, 0.102564)
|
||||
texture = ExtResource("2_gi2r6")
|
||||
|
||||
|
||||
+54
-3
@@ -1,10 +1,11 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://y083suj12rld"]
|
||||
[gd_scene load_steps=14 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="PackedScene" uid="uid://cdgbcjrseeoka" path="res://scenes/platform.tscn" id="6_hm88c"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_6otpc"]
|
||||
texture = ExtResource("2_juhow")
|
||||
@@ -493,6 +494,44 @@ sources/0 = SubResource("TileSetAtlasSource_6otpc")
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_x8qck"]
|
||||
radius = 60.2993
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ohhmw"]
|
||||
resource_name = "move"
|
||||
length = 2.0
|
||||
loop_mode = 2
|
||||
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, 1.5, 2),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"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"),
|
||||
"move": SubResource("Animation_ohhmw")
|
||||
}
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
script = ExtResource("1_77wyw")
|
||||
|
||||
@@ -507,7 +546,7 @@ position = Vector2(138, 97)
|
||||
[node name="level" type="Node2D" parent="."]
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="level"]
|
||||
position = Vector2(231, 418)
|
||||
position = Vector2(283, 463)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/StaticBody2D"]
|
||||
@@ -521,7 +560,7 @@ PUSH_FORCE = 550
|
||||
position_smoothing_speed = 6.5
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
position = Vector2(260, 352)
|
||||
position = Vector2(417, 92)
|
||||
script = ExtResource("2_nfj1w")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
@@ -535,5 +574,17 @@ position = Vector2(284, 138)
|
||||
[node name="RigidBody2D3" parent="." instance=ExtResource("2_ob312")]
|
||||
position = Vector2(269, 97)
|
||||
|
||||
[node name="Platform" parent="." instance=ExtResource("6_hm88c")]
|
||||
position = Vector2(141, 290)
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="Platform"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_uo6r5")
|
||||
}
|
||||
autoplay = "move"
|
||||
|
||||
[node name="BoxTrap" type="Node2D" parent="."]
|
||||
position = Vector2(415, -10)
|
||||
|
||||
[connection signal="areatrigger" from="Area2D" to="." method="_on_area_2d_areatrigger"]
|
||||
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|
||||
@@ -0,0 +1,10 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://cdgbcjrseeoka"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_6aq1q"]
|
||||
size = Vector2(84, 12)
|
||||
|
||||
[node name="AnimatableBody2D" type="AnimatableBody2D"]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_6aq1q")
|
||||
one_way_collision = true
|
||||
Reference in new issue
Block a user