Files
godot-demo-projects/2d/physics_platformer/tileset_edit.tscn
Hugo Locurcio 4d49bbd1b8 Update demos for Godot 4.4
- Resave all files with Godot 4.4 to make use of script/shader UIDs.
- Use AgX tonemapping in all demos that used a tonemapper other than Linear.
2025-03-21 02:00:41 +01:00

159 lines
5.5 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[gd_scene load_steps=2 format=3 uid="uid://clx0hgyagb3df"]
[ext_resource type="Texture2D" uid="uid://dbcdt0wqr3gd3" path="res://tiles_demo.png" id="1"]
[node name="TilesetEdit" type="Node2D"]
[node name="Floor" type="Sprite2D" parent="."]
texture = ExtResource("1")
region_rect = Rect2(0, 0, 32, 32)
[node name="Collision" type="StaticBody2D" parent="Floor"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Floor/Collision"]
polygon = PackedVector2Array(16, -12, 16, 16, -16, 16, -16, -12)
[node name="Edge" type="Sprite2D" parent="."]
position = Vector2(32, 0)
texture = ExtResource("1")
region_rect = Rect2(32, 0, 32, 32)
[node name="Collision" type="StaticBody2D" parent="Edge"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Edge/Collision"]
polygon = PackedVector2Array(-16, -12, 12, -12, 12, 16, -16, 16)
[node name="Wall" type="Sprite2D" parent="."]
position = Vector2(32, 32)
texture = ExtResource("1")
region_rect = Rect2(32, 32, 32, 32)
[node name="Collision" type="StaticBody2D" parent="Wall"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Wall/Collision"]
polygon = PackedVector2Array(-16, -16, 12, -16, 12, 16, -16, 16)
[node name="WallDeco" type="Sprite2D" parent="."]
position = Vector2(48, 64)
texture = ExtResource("1")
region_rect = Rect2(160, 64, 64, 32)
[node name="Collision" type="StaticBody2D" parent="WallDeco"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="WallDeco/Collision"]
polygon = PackedVector2Array(-32, -16, -4, -16, -4, 16, -32, 16)
[node name="Corner" type="Sprite2D" parent="."]
position = Vector2(32, 96)
texture = ExtResource("1")
region_rect = Rect2(32, 64, 32, 32)
[node name="Collision" type="StaticBody2D" parent="Corner"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Corner/Collision"]
polygon = PackedVector2Array(-16, -16, 12, -16, 16, -12, 16, 16, -16, 16)
[node name="Flowers" type="Sprite2D" parent="."]
position = Vector2(64, 96)
texture = ExtResource("1")
region_rect = Rect2(96, 96, 32, 32)
[node name="Collision" type="StaticBody2D" parent="Flowers"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Flowers/Collision"]
polygon = PackedVector2Array(-16, 16, 16, 16, 16, -12, -16, -12)
[node name="TreeBase" type="Sprite2D" parent="."]
position = Vector2(96, 96)
texture = ExtResource("1")
region_rect = Rect2(128, 96, 32, 32)
[node name="Collision" type="StaticBody2D" parent="TreeBase"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="TreeBase/Collision"]
polygon = PackedVector2Array(-16, 16, 16, 16, 16, -12, -16, -12)
[node name="TreeMid" type="Sprite2D" parent="."]
position = Vector2(96, 64)
texture = ExtResource("1")
region_rect = Rect2(128, 64, 32, 32)
[node name="TreeMid2" type="Sprite2D" parent="."]
position = Vector2(96, 32)
texture = ExtResource("1")
region_rect = Rect2(128, 32, 32, 32)
[node name="TreeTop" type="Sprite2D" parent="."]
position = Vector2(96, 0)
texture = ExtResource("1")
region_rect = Rect2(128, 0, 32, 32)
[node name="Solid" type="Sprite2D" parent="."]
position = Vector2(0, 32)
texture = ExtResource("1")
region_rect = Rect2(0, 32, 32, 32)
[node name="Ceiling" type="Sprite2D" parent="."]
position = Vector2(0, 64)
texture = ExtResource("1")
region_rect = Rect2(192, 32, 32, 32)
[node name="Collision" type="StaticBody2D" parent="Ceiling"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Ceiling/Collision"]
polygon = PackedVector2Array(16, -16, 16, 16, -16, 16, -16, -16)
[node name="Ramp" type="Sprite2D" parent="."]
position = Vector2(128, 112)
texture = ExtResource("1")
region_rect = Rect2(64, 64, 32, 64)
[node name="Collision" type="StaticBody2D" parent="Ramp"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Ramp/Collision"]
polygon = PackedVector2Array(-16, -28, 16, 4, 16, 32, -16, 32)
[node name="CeilingWall" type="Sprite2D" parent="."]
position = Vector2(0, 96)
texture = ExtResource("1")
region_rect = Rect2(224, 32, 32, 32)
[node name="Collision" type="StaticBody2D" parent="CeilingWall"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="CeilingWall/Collision"]
polygon = PackedVector2Array(-16, -16, 12, -16, 12, 16, -16, 16)
[node name="PlatformFloor" type="Sprite2D" parent="."]
position = Vector2(0, 128)
texture = ExtResource("1")
region_rect = Rect2(64, 0, 32, 32)
[node name="Collision" type="StaticBody2D" parent="PlatformFloor"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="PlatformFloor/Collision"]
polygon = PackedVector2Array(16, -12, 16, 12, -16, 12, -16, -12)
[node name="PlatformEdge" type="Sprite2D" parent="."]
position = Vector2(32, 128)
texture = ExtResource("1")
region_rect = Rect2(96, 0, 32, 32)
[node name="Collision" type="StaticBody2D" parent="PlatformEdge"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="PlatformEdge/Collision"]
polygon = PackedVector2Array(12, -12, 12, 12, -16, 12, -16, -12)
[node name="Help" type="Label" parent="."]
offset_left = 1.0
offset_top = 331.0
offset_right = 727.0
offset_bottom = 422.0
size_flags_horizontal = 2
text = "This scene serves as a tool for editing the tileset.
Nodes (sprites) and their respective collisionsare edited here.
To create a tileset from this, a \"TileSet\" resoucre must be created. Use the helper in: Scene -> Convert To -> TileSet.
This will save a tileset. Saving over it will merge your changes.
Finally, the saved tileset resource (tileset.tres in this case), can be opened to be used into a TileMap node for editing a tile map."