Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Assets/world_tileset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions Assets/world_tileset.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://bi65nnl7y32vr"
path="res://.godot/imported/world_tileset.png-aac1170b2f3c785c1a10006f5d535e73.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://Assets/world_tileset.png"
dest_files=["res://.godot/imported/world_tileset.png-aac1170b2f3c785c1a10006f5d535e73.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
183 changes: 77 additions & 106 deletions Scenes/main_city.tscn
Original file line number Diff line number Diff line change
@@ -1,213 +1,184 @@
[gd_scene format=3 uid="uid://c7mlj78rqvqm8"]
[gd_scene format=4 uid="uid://c7mlj78rqvqm8"]

[ext_resource type="Texture2D" uid="uid://bdnlkki3bx8k8" path="res://Assets/knight.png" id="1_aw1cc"]
[ext_resource type="Script" uid="uid://cy8lexg74assu" path="res://Scripts/game_controller.gd" id="2_36lpk"]
[ext_resource type="PackedScene" uid="uid://dbbi4qwe2t2ee" path="res://Scenes/player.tscn" id="3_3ucv7"]
[ext_resource type="Texture2D" uid="uid://bi65nnl7y32vr" path="res://Assets/world_tileset.png" id="3_aw1cc"]

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_psxkc"]
texture = ExtResource("1_aw1cc")
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_36lpk"]
texture = ExtResource("3_aw1cc")
0:0/0 = 0
0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
1:0/0 = 0
1:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
2:0/0 = 0
2:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
3:0/0 = 0
3:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
4:0/0 = 0
4:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
5:0/0 = 0
5:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
6:0/0 = 0
6:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
7:0/0 = 0
7:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
8:0/0 = 0
8:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
9:0/0 = 0
9:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 0.8992939, -8, -0.35971642)
10:0/0 = 0
10:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -6.115196, 8, -6.115196, 8, 0.8992939, -8, 0.8992939)
11:0/0 = 0
11:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -6.115196, 8, -8, 8, -1.2590103, -8, 0.8992939)
0:1/0 = 0
0:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
1:1/0 = 0
1:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
2:1/0 = 0
2:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
3:1/0 = 0
3:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
4:1/0 = 0
4:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
5:1/0 = 0
5:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
6:1/0 = 0
6:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
7:1/0 = 0
7:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
8:1/0 = 0
8:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
9:1/0 = 0
9:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 0.8992939, -8, -0.35971642)
10:1/0 = 0
10:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -6.115196, 8, -6.115196, 8, 0.8992939, -8, 0.8992939)
11:1/0 = 0
11:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -6.115196, 8, -8, 8, -1.2590103, -8, 0.8992939)
0:2/0 = 0
0:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
1:2/0 = 0
1:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
2:2/0 = 0
2:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
3:2/0 = 0
3:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
4:2/0 = 0
4:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
5:2/0 = 0
5:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
6:2/0 = 0
6:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
7:2/0 = 0
7:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
8:2/0 = 0
8:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
9:2/0 = 0
9:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 0.8992939, -8, -0.35971642)
10:2/0 = 0
10:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -6.115196, 8, -6.115196, 8, 0.8992939, -8, 0.8992939)
11:2/0 = 0
11:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -6.115196, 8, -8, 8, -1.2590103, -8, 0.8992939)
0:3/0 = 0
1:3/0 = 0
2:3/0 = 0
5:3/0 = 0
6:3/0 = 0
7:3/0 = 0
7:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
8:3/0 = 0
9: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
7:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
8:4/0 = 0
9:4/0 = 0
10:4/0 = 0
11:4/0 = 0
12:4/0 = 0
13:4/0 = 0
14:4/0 = 0
15: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
8:5/0 = 0
9:5/0 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7:13/0 = 0
8:13/0 = 0
9:13/0 = 0
10:13/0 = 0
0:14/0 = 0
1:14/0 = 0
2:14/0 = 0
3:14/0 = 0
4:14/0 = 0
5:14/0 = 0
8:14/0 = 0
9:14/0 = 0
10:14/0 = 0
11:14/0 = 0
11:14/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, 2.358295, 8, 2.4413967, 8, 8, -8, 8)
12:14/0 = 0
0:15/0 = 0
1:15/0 = 0
2:15/0 = 0
3:15/0 = 0
4:15/0 = 0
5:15/0 = 0
6:15/0 = 0
7:15/0 = 0
8:15/0 = 0
9:15/0 = 0
10:15/0 = 0
11:15/0 = 0
12:15/0 = 0
6:14/0 = 0
7:14/0 = 0
5:24/0 = 0
6:24/0 = 0
4:21/0 = 0
4:22/0 = 0
4:23/0 = 0
4:24/0 = 0
4:25/0 = 0
4:26/0 = 0
2:4/size_in_atlas = Vector2i(3, 3)
2:4/0 = 0

[sub_resource type="TileSet" id="TileSet_ye2d0"]
[sub_resource type="TileSet" id="TileSet_3ucv7"]
physics_layer_0/collision_layer = 1
sources/0 = SubResource("TileSetAtlasSource_psxkc")
sources/0 = SubResource("TileSetAtlasSource_36lpk")

[node name="MainCity" type="Node2D" unique_id=864897235]

[node name="TileMap" type="TileMap" parent="." unique_id=274794155]
tile_set = SubResource("TileSet_ye2d0")
format = 2
layer_0/tile_data = PackedInt32Array(65535, 720896, 14, 0, 720896, 14, 1, 720896, 14, 2, 720896, 14, 3, 720896, 14, 65534, 720896, 14, 65533, 720896, 14, 65532, 720896, 14, 4, 720896, 14, 5, 720896, 14, 6, 720896, 14, 7, 720896, 14, 8, 720896, 14, 9, 720896, 14, 10, 720896, 14, 11, 720896, 14, 12, 720896, 14, 13, 720896, 14, -65523, 720896, 14, -65522, 720896, 14, 14, 720896, 14, 15, 720896, 14, 16, 720896, 14, 17, 720896, 14, 18, 720896, 14, 19, 720896, 14, 20, 720896, 14, 21, 720896, 14, 22, 720896, 14, 23, 720896, 14, 65560, 720896, 14, 65561, 720896, 14, 65562, 720896, 14, 26, 720896, 14, 27, 720896, 14, 28, 720896, 14, 29, 720896, 14, 30, 720896, 14, 31, 720896, 14, 32, 720896, 14, 33, 720896, 14, 34, 720896, 14, 35, 720896, 14, 36, 720896, 14, 37, 720896, 14, 38, 720896, 14, 39, 720896, 14, 40, 720896, 14, 41, 720896, 14, 42, 720896, 14, 43, 720896, 14, 44, 720896, 14, 45, 720896, 14, 46, 720896, 14, 47, 720896, 14, 48, 720896, 14, 49, 720896, 14, 50, 720896, 14, 51, 720896, 14, 52, 720896, 14, 53, 720896, 14, 54, 720896, 14, 55, 720896, 14, -65480, 720896, 14, -65479, 720896, 14, -65478, 720896, 14, -65477, 720896, 14, 65531, 720896, 14, 65530, 720896, 14, 65529, 720896, 14, 65528, 720896, 14, 65527, 720896, 14, 65526, 720896, 14, 65525, 720896, 14, 65524, 720896, 14, 65523, 720896, 14, 65522, 720896, 14, -131059, 720896, 14, -196595, 720896, 14, -262131, 720896, 14, -131061, 720896, 14, -196597, 720896, 14, -262133, 720896, 14, -327669, 720896, 14, -393205, 720896, 14, -458739, 720896, 14, -524275, 720896, 14, -589811, 720896, 14, -458741, 720896, 14, -589814, 720896, 14, -655350, 720896, 14, -720886, 720896, 14, -786422, 720896, 14, -851958, 720896, 14)

[node name="CollisionShape2D" type="CollisionShape2D" parent="TileMap" unique_id=88050852]

[node name="GameController" type="Node" parent="." unique_id=1789674633]
script = ExtResource("2_36lpk")

[node name="Player" parent="." unique_id=1051421986 instance=ExtResource("3_3ucv7")]

[node name="Camera2D" type="Camera2D" parent="Player" unique_id=1465499206]
zoom = Vector2(4, 4)

[node name="TileMapLayer" type="TileMapLayer" parent="." unique_id=241403135]
tile_map_data = PackedByteArray("AADy/wEAAAAAAAAAAADz/wEAAAAAAAAAAAD0/wEAAAAAAAAAAAD1/wEAAAAAAAAAAAD2/wEAAAAAAAAAAAD3/wEAAAAAAAAAAAD4/wEAAAAAAAAAAAD5/wEAAAAAAAAAAAD6/wE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