From 7b11b1c2d8552b99f3e615a79621a2db769d9f5d Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 23 May 2024 23:45:28 +0200 Subject: initial commit --- Overworld.tscn | 161 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 161 insertions(+) create mode 100644 Overworld.tscn (limited to 'Overworld.tscn') diff --git a/Overworld.tscn b/Overworld.tscn new file mode 100644 index 0000000..0ec8362 --- /dev/null +++ b/Overworld.tscn @@ -0,0 +1,161 @@ +[gd_scene load_steps=14 format=3 uid="uid://bfusqf766qtpf"] + +[ext_resource type="Texture2D" uid="uid://c82tsvwwnmfhe" path="res://icon.svg" id="1_0jh6x"] +[ext_resource type="Script" path="res://Overworld.gd" id="1_kdl46"] +[ext_resource type="PackedScene" uid="uid://myunq3ivtmou" path="res://OverworldPath.tscn" id="3_g7b5j"] +[ext_resource type="Texture2D" uid="uid://c72p3u0lq07cg" path="res://Assets/Tilesets/road.png" id="3_m4ypw"] +[ext_resource type="Texture2D" uid="uid://cnhs8rxckalxk" path="res://Assets/Tilesets/road_corner.png" id="4_e8qoa"] + +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_7b4gy"] +texture = ExtResource("3_m4ypw") +0:0/0 = 0 +1:0/0 = 0 +0:1/0 = 0 +1:1/0 = 0 + +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_s2dpj"] +texture = ExtResource("4_e8qoa") +0:0/0 = 0 +1:0/0 = 0 +0:1/0 = 0 +1:1/0 = 0 + +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_huksr"] +texture = ExtResource("1_0jh6x") +0:0/0 = 0 +1:0/0 = 0 +2:0/0 = 0 +3:0/0 = 0 +4:0/0 = 0 +5:0/0 = 0 +6:0/0 = 0 +7:0/0 = 0 +0:1/0 = 0 +1:1/0 = 0 +2:1/0 = 0 +3:1/0 = 0 +4:1/0 = 0 +5:1/0 = 0 +6:1/0 = 0 +7:1/0 = 0 +0:2/0 = 0 +1:2/0 = 0 +2:2/0 = 0 +3:2/0 = 0 +4:2/0 = 0 +5:2/0 = 0 +6:2/0 = 0 +7:2/0 = 0 +0:3/0 = 0 +1:3/0 = 0 +2:3/0 = 0 +3:3/0 = 0 +4:3/0 = 0 +5:3/0 = 0 +6:3/0 = 0 +7:3/0 = 0 +0:4/0 = 0 +1:4/0 = 0 +2:4/0 = 0 +3:4/0 = 0 +4:4/0 = 0 +5:4/0 = 0 +6:4/0 = 0 +7:4/0 = 0 +0:5/0 = 0 +1:5/0 = 0 +2:5/0 = 0 +3:5/0 = 0 +4:5/0 = 0 +5:5/0 = 0 +6:5/0 = 0 +7:5/0 = 0 +0:6/0 = 0 +1:6/0 = 0 +2:6/0 = 0 +3:6/0 = 0 +4:6/0 = 0 +5:6/0 = 0 +6:6/0 = 0 +7:6/0 = 0 +0:7/0 = 0 +1:7/0 = 0 +2:7/0 = 0 +3:7/0 = 0 +4:7/0 = 0 +5:7/0 = 0 +6:7/0 = 0 +7:7/0 = 0 + +[sub_resource type="TileSet" id="TileSet_h3x8v"] +sources/4 = SubResource("TileSetAtlasSource_7b4gy") +sources/5 = SubResource("TileSetAtlasSource_s2dpj") +sources/6 = SubResource("TileSetAtlasSource_huksr") + +[sub_resource type="SpriteFrames" id="SpriteFrames_yu5pw"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": ExtResource("1_0jh6x") +}], +"loop": true, +"name": &"default", +"speed": 5.0 +}] + +[sub_resource type="Curve2D" id="Curve2D_32f0o"] +_data = { +"points": PackedVector2Array(0, 0, 0, 0, 64, 256, 0, 0, 0, 0, 96, 256, 0, 0, 0, 0, 96, 224, 0, 0, 0, 0, 128, 224) +} +point_count = 4 + +[sub_resource type="Curve2D" id="Curve2D_vukdr"] +_data = { +"points": PackedVector2Array(0, 0, 0, 0, 128, 224, 0, 0, 0, 0, 128, 128, 0, 0, 0, 0, 96, 128) +} +point_count = 3 + +[sub_resource type="Curve2D" id="Curve2D_tqmlv"] +_data = { +"points": PackedVector2Array(0, 0, 0, 0, 96, 128, 0, 0, 0, 0, 64, 128, 0, 0, 0, 0, 64, 64) +} +point_count = 3 + +[node name="Overworld" type="Node2D"] +script = ExtResource("1_kdl46") + +[node name="Sprite2D" type="Sprite2D" parent="."] +position = Vector2(224, 160) +scale = Vector2(3.5, 2.5) +texture = ExtResource("1_0jh6x") +metadata/_edit_lock_ = true + +[node name="TileMap" type="TileMap" parent="."] +tile_set = SubResource("TileSet_h3x8v") +format = 2 +layer_0/tile_data = PackedInt32Array(983043, 4, 0, 1048579, 4, 1, 983044, 65540, 0, 1048580, 65540, 1, 983045, 5, 0, 1048581, 5, 1, 983046, 65541, 0, 1048582, 65541, 1, 851974, 5, 805306369, 917510, 5, 805306368, 851973, 65541, 805306369, 917509, 65541, 805306368, 917511, 5, 1, 851975, 5, 0, 917512, 65541, 1, 851976, 65541, 0, 786439, 65540, 1342177281, 720903, 4, 1342177281, 786440, 65540, 1342177280, 720904, 4, 1342177280, 655367, 65540, 1342177281, 589831, 4, 1342177281, 655368, 65540, 1342177280, 589832, 4, 1342177280, 524295, 5, 1610612736, 458759, 65541, 1610612736, 524296, 5, 1610612737, 458760, 65541, 1610612737, 458756, 5, 1342177280, 524292, 65541, 1342177280, 458755, 5, 1342177281, 524291, 65541, 1342177281, 458757, 4, 0, 524293, 4, 1, 458758, 65540, 0, 524294, 65540, 1, 327684, 4, 1342177280, 393220, 65540, 1342177280, 327683, 4, 1342177281, 393219, 65540, 1342177281, 196612, 4, 1342177280, 262148, 65540, 1342177280, 196611, 4, 1342177281, 262147, 65540, 1342177281) +layer_1/tile_data = PackedInt32Array(1048580, 6, 0, 917512, 6, 0, 524294, 6, 0, 262148, 6, 0, 524293, 458758, 0, 262147, 458758, 0, 917511, 458758, 0, 1048579, 458758, 0, 983043, 458758, 7, 196611, 458758, 7, 458757, 458758, 7, 851975, 458758, 7, 983044, 6, 7, 851976, 6, 7, 458758, 6, 7, 196612, 6, 7) + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] +position = Vector2(64, 256) +scale = Vector2(0.125, 0.125) +sprite_frames = SubResource("SpriteFrames_yu5pw") + +[node name="OverworldPath" parent="." instance=ExtResource("3_g7b5j")] +curve = SubResource("Curve2D_32f0o") +next_direction = Array[String](["up", "right"]) +_next_path = NodePath("../OverworldPath2") +previous_direction = Array[String](["down", "left"]) + +[node name="OverworldPath2" parent="." instance=ExtResource("3_g7b5j")] +curve = SubResource("Curve2D_vukdr") +next_direction = Array[String](["up", "left"]) +_next_path = NodePath("../OverworldPath3") +previous_direction = Array[String](["down", "right"]) +_previous_path = NodePath("../OverworldPath") + +[node name="OverworldPath3" parent="." instance=ExtResource("3_g7b5j")] +curve = SubResource("Curve2D_tqmlv") +next_direction = Array[String](["up", "left"]) +previous_direction = Array[String](["down", "right"]) +_previous_path = NodePath("../OverworldPath2") -- cgit v1.2.3