[gd_scene load_steps=11 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="PackedScene" uid="uid://brwex7t2f3b80" path="res://scenes/crate.tscn" id="2_b6y0b"] [ext_resource type="Texture2D" uid="uid://b1elpu08pcyym" path="res://graphics/Terrain (32x32).png" id="2_mfht0"] [ext_resource type="Script" path="res://scripts/Trigger.gd" id="2_nfj1w"] [sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_368pp"] texture = ExtResource("2_mfht0") texture_region_size = Vector2i(32, 32) 0:0/0 = 0 1:0/0 = 0 2:0/0 = 0 4:0/0 = 0 6:0/0 = 0 7:0/0 = 0 9:0/0 = 0 10:0/0 = 0 12:0/0 = 0 13:0/0 = 0 15:0/0 = 0 0:1/0 = 0 1:1/0 = 0 2:1/0 = 0 4:1/0 = 0 6:1/0 = 0 7:1/0 = 0 9:1/0 = 0 10:1/0 = 0 12:1/0 = 0 13:1/0 = 0 15:1/0 = 0 16:1/0 = 0 0:2/0 = 0 1:2/0 = 0 2:2/0 = 0 4:2/0 = 0 6:3/0 = 0 7:3/0 = 0 9:3/0 = 0 10:3/0 = 0 12:3/0 = 0 13:3/0 = 0 15:3/0 = 0 16:3/0 = 0 0:4/0 = 0 1:4/0 = 0 2:4/0 = 0 4:4/0 = 0 6:4/0 = 0 7:4/0 = 0 9:4/0 = 0 10:4/0 = 0 12:4/0 = 0 13:4/0 = 0 15:4/0 = 0 16:4/0 = 0 [sub_resource type="TileSet" id="TileSet_qafpq"] tile_size = Vector2i(32, 32) sources/0 = SubResource("TileSetAtlasSource_368pp") [sub_resource type="RectangleShape2D" id="RectangleShape2D_cq7kj"] size = Vector2(91, 20) [sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_3u4a8"] [sub_resource type="CircleShape2D" id="CircleShape2D_x8qck"] radius = 60.2993 [node name="Game" type="Node2D"] script = ExtResource("1_77wyw") [node name="TileMap" type="TileMap" parent="."] tile_set = SubResource("TileSet_qafpq") format = 2 layer_0/tile_data = PackedInt32Array(917501, 65536, 4, 917502, 65536, 4, 917503, 65536, 4, 851968, 65536, 4, 851969, 65536, 4, 851970, 65536, 4, 851971, 65536, 4, 851972, 65536, 4, 851973, 65536, 4, 851974, 65536, 4, 851975, 65536, 4, 655362, 65536, 4, 655363, 65536, 4, 655364, 65536, 4, 589835, 65536, 4, 589836, 65536, 4, 589837, 65536, 4, 524304, 65536, 4, 524305, 65536, 4, 524306, 65536, 4) [node name="level" type="Node2D" parent="."] [node name="groundblock2" type="StaticBody2D" parent="level"] position = Vector2(561, 273) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock2"] position = Vector2(-1.5, 0) shape = SubResource("RectangleShape2D_cq7kj") [node name="groundblock3" type="StaticBody2D" parent="level"] position = Vector2(402, 304) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock3"] position = Vector2(-1.5, 0) shape = SubResource("RectangleShape2D_cq7kj") [node name="groundblock4" type="StaticBody2D" parent="level"] position = Vector2(84, 434) scale = Vector2(3.76, 1) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock4"] position = Vector2(-1.5, 0) shape = SubResource("RectangleShape2D_cq7kj") [node name="groundblock" type="StaticBody2D" parent="level"] position = Vector2(113, 336) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock"] position = Vector2(-1.5, 0) shape = SubResource("RectangleShape2D_cq7kj") [node name="StaticBody2D" type="StaticBody2D" parent="level"] position = Vector2(236, 415) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="level/StaticBody2D"] shape = SubResource("WorldBoundaryShape2D_3u4a8") [node name="RigidBody2D2" parent="level" instance=ExtResource("2_b6y0b")] position = Vector2(546, 58) [node name="RigidBody2D3" parent="level" instance=ExtResource("2_b6y0b")] position = Vector2(389, 107) [node name="RigidBody2D4" parent="level" instance=ExtResource("2_b6y0b")] position = Vector2(115, 213) [node name="CharacterBody2D" parent="." groups=["player"] instance=ExtResource("2_64ccm")] PUSH_FORCE = 550 [node name="Camera2D" type="Camera2D" parent="CharacterBody2D"] position_smoothing_enabled = true [node name="Area2D" type="Area2D" parent="."] position = Vector2(260, 352) script = ExtResource("2_nfj1w") metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] shape = SubResource("CircleShape2D_x8qck") debug_color = Color(0.556863, 0.415686, 0.964706, 0.419608) [connection signal="areatrigger" from="Area2D" to="." method="_on_area_2d_areatrigger"] [connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]