crate and tilemap
This commit is contained in:
1 parent
3ac8d5daed
commit
958ffa2a43
30 files changed
+424
-85
No files matched your search
@@ -178,13 +178,13 @@ position = Vector2(-1, 0)
|
||||
script = ExtResource("1_x87yo")
|
||||
JUMP_VELOCITY = -500.0
|
||||
PUSH_FORCE = 200
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
sprite_frames = SubResource("SpriteFrames_8idir")
|
||||
animation = &"idle"
|
||||
autoplay = "idle"
|
||||
frame_progress = 0.758732
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 3)
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://c8x0bcxa8t74o"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dt5nh26eq2a5r" path="res://graphics/crate.png" id="1_ar5ac"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4vo4d"]
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" groups=["boxes"]]
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_4vo4d")
|
||||
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.416667, 0.458333)
|
||||
texture = ExtResource("1_ar5ac")
|
||||
+101
-62
@@ -1,85 +1,90 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://y083suj12rld"]
|
||||
[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="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"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_3u4a8"]
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_6otpc"]
|
||||
texture = ExtResource("2_juhow")
|
||||
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="RectangleShape2D" id="RectangleShape2D_4vo4d"]
|
||||
size = Vector2(55, 55)
|
||||
[sub_resource type="TileSet" id="TileSet_25cld"]
|
||||
tile_size = Vector2i(32, 32)
|
||||
sources/0 = SubResource("TileSetAtlasSource_6otpc")
|
||||
|
||||
[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="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
position = Vector2(236, 415)
|
||||
metadata/_edit_group_ = true
|
||||
[node name="TileMap" type="TileMap" parent="."]
|
||||
tile_set = SubResource("TileSet_25cld")
|
||||
format = 2
|
||||
layer_0/tile_data = PackedInt32Array(851968, 65536, 0, 851969, 65536, 0, 851970, 65536, 0, 851971, 65536, 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, 851980, 65536, 0, 851981, 65536, 0, 851982, 65536, 0, 851983, 65536, 0, 851984, 65536, 0, 655371, 0, 4, 655372, 65536, 4, 655373, 131072, 4, 720898, 0, 4, 720899, 65536, 4, 720900, 131072, 4, 589839, 0, 4, 589840, 65536, 4, 589841, 65536, 4, 589842, 131072, 4, 917504, 65536, 1, 917505, 65536, 1, 917506, 65536, 1, 917507, 65536, 1, 917508, 65536, 1, 917509, 65536, 1, 917510, 65536, 1, 917511, 65536, 1, 917512, 65536, 1, 917513, 65536, 1, 917514, 65536, 1, 917515, 65536, 1, 917516, 65536, 1, 917517, 65536, 1, 917518, 65536, 1, 917519, 65536, 1, 917520, 65536, 1, 983056, 65536, 1, 983055, 65536, 1, 983054, 65536, 1, 983053, 65536, 1, 983052, 65536, 1, 983051, 65536, 1, 983050, 65536, 1, 983049, 65536, 1, 983048, 65536, 1, 983047, 65536, 1, 983046, 65536, 1, 983045, 65536, 1, 983044, 65536, 1, 983043, 65536, 1, 983042, 65536, 1, 983041, 65536, 1, 983040, 65536, 1, 1048576, 65536, 1, 1048577, 65536, 1, 1048578, 65536, 1, 1048579, 65536, 1, 1048580, 65536, 1, 1048581, 65536, 1, 1048582, 65536, 1, 1048583, 65536, 1, 1048584, 65536, 1, 1048585, 65536, 1, 1048586, 65536, 1, 1048587, 65536, 1, 1048588, 65536, 1, 1048589, 65536, 1, 1048590, 65536, 1, 1048591, 65536, 1, 1048592, 65536, 1)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
shape = SubResource("WorldBoundaryShape2D_3u4a8")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="." groups=["boxes"]]
|
||||
position = Vector2(139, 35)
|
||||
rotation = 0.740513
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
position = Vector2(206.535, 208.174)
|
||||
rotation = -0.555892
|
||||
shape = SubResource("RectangleShape2D_4vo4d")
|
||||
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
position = Vector2(206.535, 208.174)
|
||||
rotation = -0.555892
|
||||
shape = SubResource("RectangleShape2D_4vo4d")
|
||||
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
|
||||
|
||||
[node name="RigidBody2D2" type="RigidBody2D" parent="." groups=["boxes"]]
|
||||
position = Vector2(409, -6)
|
||||
rotation = 0.740513
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D2"]
|
||||
position = Vector2(206.535, 208.174)
|
||||
rotation = -0.555892
|
||||
shape = SubResource("RectangleShape2D_4vo4d")
|
||||
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="RigidBody2D2"]
|
||||
position = Vector2(206.535, 208.174)
|
||||
rotation = -0.555892
|
||||
shape = SubResource("RectangleShape2D_4vo4d")
|
||||
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
|
||||
|
||||
[node name="groundblock" type="StaticBody2D" parent="."]
|
||||
position = Vector2(117, 384)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="groundblock"]
|
||||
position = Vector2(-1.5, 0)
|
||||
shape = SubResource("RectangleShape2D_cq7kj")
|
||||
|
||||
[node name="groundblock2" type="StaticBody2D" parent="."]
|
||||
position = Vector2(91, 430)
|
||||
scale = Vector2(3.76, 1)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="groundblock2"]
|
||||
position = Vector2(-1.5, 0)
|
||||
shape = SubResource("RectangleShape2D_cq7kj")
|
||||
[node name="RigidBody2D" parent="." instance=ExtResource("2_ob312")]
|
||||
position = Vector2(113, 85)
|
||||
|
||||
[node name="level" type="Node2D" parent="."]
|
||||
|
||||
[node name="groundblock2" type="StaticBody2D" parent="level"]
|
||||
position = Vector2(548, 315)
|
||||
position = Vector2(546, 304)
|
||||
scale = Vector2(1.4, 1.52)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock2"]
|
||||
@@ -87,16 +92,44 @@ position = Vector2(-1.5, 0)
|
||||
shape = SubResource("RectangleShape2D_cq7kj")
|
||||
|
||||
[node name="groundblock3" type="StaticBody2D" parent="level"]
|
||||
position = Vector2(404, 353)
|
||||
position = Vector2(402, 336)
|
||||
scale = Vector2(1.0412, 1.45975)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock3"]
|
||||
position = Vector2(-1.5, 0)
|
||||
shape = SubResource("RectangleShape2D_cq7kj")
|
||||
|
||||
[node name="groundblock" type="StaticBody2D" parent="level"]
|
||||
position = Vector2(113, 369)
|
||||
scale = Vector2(1.04, 1.52)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock"]
|
||||
position = Vector2(-1.5, 0)
|
||||
shape = SubResource("RectangleShape2D_cq7kj")
|
||||
|
||||
[node name="groundblock4" type="StaticBody2D" parent="level"]
|
||||
position = Vector2(91, 430)
|
||||
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="StaticBody2D" type="StaticBody2D" parent="level"]
|
||||
position = Vector2(242, 417)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/StaticBody2D"]
|
||||
shape = SubResource("WorldBoundaryShape2D_3u4a8")
|
||||
|
||||
[node name="CharacterBody2D" parent="." groups=["player"] instance=ExtResource("2_64ccm")]
|
||||
PUSH_FORCE = 550
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="CharacterBody2D"]
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
position = Vector2(260, 352)
|
||||
script = ExtResource("2_nfj1w")
|
||||
@@ -106,5 +139,11 @@ metadata/_edit_group_ = true
|
||||
shape = SubResource("CircleShape2D_x8qck")
|
||||
debug_color = Color(0.556863, 0.415686, 0.964706, 0.419608)
|
||||
|
||||
[node name="RigidBody2D2" parent="." instance=ExtResource("2_ob312")]
|
||||
position = Vector2(284, 138)
|
||||
|
||||
[node name="RigidBody2D3" parent="." instance=ExtResource("2_ob312")]
|
||||
position = Vector2(269, 97)
|
||||
|
||||
[connection signal="areatrigger" from="Area2D" to="." method="_on_area_2d_areatrigger"]
|
||||
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|
||||
Reference in new issue
Block a user