feat: add a unmovable block as a scene; add it to gameScene;

This commit is contained in:
2026-08-24 08:20:45 +02:00
parent e87ebd3827
commit b2a7fa65ad
5 changed files with 37 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
[gd_scene format=3 uid="uid://orvnsdbeji56"]
[ext_resource type="Texture2D" uid="uid://c0v63n2kjtvvu" path="res://Ninja Adventure - Asset Pack/Backgrounds/Tilesets/TilesetDungeon.png" id="1_83tkd"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_bqpwv"]
size = Vector2(16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_bqpwv"]
atlas = ExtResource("1_83tkd")
region = Rect2(127.859436, 47.936436, 16.21347, 16.062302)
[node name="Block" type="RigidBody2D" unique_id=2096944035]
gravity_scale = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=195703280]
shape = SubResource("RectangleShape2D_bqpwv")
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=605230206]
texture = SubResource("AtlasTexture_bqpwv")