commit aa1497ee0c9a62baa51bd8d63424ecd8d728be54 Author: gdz Date: Fri Dec 5 23:22:05 2025 +0100 initial commit... Map, TileSet, Terrains. diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f28239b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,4 @@ +root = true + +[*] +charset = utf-8 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8ad74f7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0af181c --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Godot 4+ specific ignores +.godot/ +/android/ diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..c61a1bf --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,15 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/modules.xml +/contentModel.xml +/.idea.turnbasedstrategygame.iml +/projectSettingsUpdater.xml +# Ignored default folder with query files +/queries/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..df87cf9 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/indexLayout.xml b/.idea/indexLayout.xml new file mode 100644 index 0000000..7b08163 --- /dev/null +++ b/.idea/indexLayout.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/GdSdk.xml b/.idea/libraries/GdSdk.xml new file mode 100644 index 0000000..1c006ed --- /dev/null +++ b/.idea/libraries/GdSdk.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Graphics/TileMaps/kenney_rpgUrbanKit/Preview.png b/Graphics/TileMaps/kenney_rpgUrbanKit/Preview.png new file mode 100644 index 0000000..2faef49 Binary files /dev/null and b/Graphics/TileMaps/kenney_rpgUrbanKit/Preview.png differ diff --git a/Graphics/TileMaps/kenney_rpgUrbanKit/Preview.png.import b/Graphics/TileMaps/kenney_rpgUrbanKit/Preview.png.import new file mode 100644 index 0000000..ce47e37 --- /dev/null +++ b/Graphics/TileMaps/kenney_rpgUrbanKit/Preview.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dohjsugl31o5g" +path="res://.godot/imported/Preview.png-9c5c3131b145a46e92681901d20d4bf6.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Graphics/TileMaps/kenney_rpgUrbanKit/Preview.png" +dest_files=["res://.godot/imported/Preview.png-9c5c3131b145a46e92681901d20d4bf6.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 diff --git a/Graphics/TileMaps/kenney_rpgUrbanKit/Sample.png b/Graphics/TileMaps/kenney_rpgUrbanKit/Sample.png new file mode 100644 index 0000000..ad31575 Binary files /dev/null and b/Graphics/TileMaps/kenney_rpgUrbanKit/Sample.png differ diff --git a/Graphics/TileMaps/kenney_rpgUrbanKit/Sample.png.import b/Graphics/TileMaps/kenney_rpgUrbanKit/Sample.png.import new file mode 100644 index 0000000..82fbdce --- /dev/null +++ b/Graphics/TileMaps/kenney_rpgUrbanKit/Sample.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cwq17cmemb7r4" +path="res://.godot/imported/Sample.png-1129fc92b4c89bc54f7f47ad10c7df55.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Graphics/TileMaps/kenney_rpgUrbanKit/Sample.png" +dest_files=["res://.godot/imported/Sample.png-1129fc92b4c89bc54f7f47ad10c7df55.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 diff --git a/Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap.png b/Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap.png new file mode 100644 index 0000000..a626181 Binary files /dev/null and b/Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap.png differ diff --git a/Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap.png.import b/Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap.png.import new file mode 100644 index 0000000..2ab3773 --- /dev/null +++ b/Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cgvyfsuri6vmx" +path="res://.godot/imported/tilemap.png-d8cbb982f0981dbbc74d5b5938d1223b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap.png" +dest_files=["res://.godot/imported/tilemap.png-d8cbb982f0981dbbc74d5b5938d1223b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 diff --git a/Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap.txt b/Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap.txt new file mode 100644 index 0000000..19f2d01 --- /dev/null +++ b/Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap.txt @@ -0,0 +1,6 @@ + + Tile width : 16px + Tile height: 16px + + Margin: 0px + Spacing: 1px diff --git a/Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap_packed.png b/Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap_packed.png new file mode 100644 index 0000000..66bf115 Binary files /dev/null and b/Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap_packed.png differ diff --git a/Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap_packed.png.import b/Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap_packed.png.import new file mode 100644 index 0000000..fb5576f --- /dev/null +++ b/Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap_packed.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c674sjg2dfyq1" +path="res://.godot/imported/tilemap_packed.png-ce0553dba3bdbd49325cac4ebe47c273.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap_packed.png" +dest_files=["res://.godot/imported/tilemap_packed.png-ce0553dba3bdbd49325cac4ebe47c273.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 diff --git a/Resource/UrbanKitTileMap.tres b/Resource/UrbanKitTileMap.tres new file mode 100644 index 0000000..861fb92 --- /dev/null +++ b/Resource/UrbanKitTileMap.tres @@ -0,0 +1,771 @@ +[gd_resource type="TileSet" load_steps=3 format=3 uid="uid://duodt2t14xjc8"] + +[ext_resource type="Texture2D" uid="uid://cgvyfsuri6vmx" path="res://Graphics/TileMaps/kenney_rpgUrbanKit/Tilemap/tilemap.png" id="1_q1pea"] + +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_vqaso"] +resource_name = "UrbanKit" +texture = ExtResource("1_q1pea") +separation = Vector2i(1, 1) +0:0/0 = 0 +0:0/0/terrain_set = 0 +0:0/0/terrain = 0 +0:0/0/terrains_peering_bit/right_side = 0 +0:0/0/terrains_peering_bit/bottom_right_corner = 0 +0:0/0/terrains_peering_bit/bottom_side = 0 +1:0/0 = 0 +1:0/0/terrain_set = 0 +1:0/0/terrain = 0 +1:0/0/terrains_peering_bit/right_side = 0 +1:0/0/terrains_peering_bit/bottom_right_corner = 0 +1:0/0/terrains_peering_bit/bottom_side = 0 +1:0/0/terrains_peering_bit/bottom_left_corner = 0 +1:0/0/terrains_peering_bit/left_side = 0 +2:0/0 = 0 +2:0/0/terrain_set = 0 +2:0/0/terrain = 0 +2:0/0/terrains_peering_bit/bottom_side = 0 +2:0/0/terrains_peering_bit/bottom_left_corner = 0 +2:0/0/terrains_peering_bit/left_side = 0 +3:0/0 = 0 +3:0/0/terrain_set = 0 +3:0/0/terrain = 0 +3:0/0/terrains_peering_bit/bottom_side = 0 +4:0/0 = 0 +4:0/0/terrain_set = 0 +4:0/0/terrain = 0 +4:0/0/terrains_peering_bit/bottom_side = 0 +4:0/0/terrains_peering_bit/left_side = 0 +5:0/0 = 0 +5:0/0/terrain_set = 0 +5:0/0/terrain = 0 +5:0/0/terrains_peering_bit/right_side = 0 +5:0/0/terrains_peering_bit/bottom_side = 0 +5:0/0/terrains_peering_bit/bottom_left_corner = 0 +5:0/0/terrains_peering_bit/left_side = 0 +5:0/0/terrains_peering_bit/top_left_corner = 0 +5:0/0/terrains_peering_bit/top_side = 0 +5:0/0/terrains_peering_bit/top_right_corner = 0 +6:0/0 = 0 +6:0/0/terrain_set = 0 +6:0/0/terrain = 0 +6:0/0/terrains_peering_bit/right_side = 0 +6:0/0/terrains_peering_bit/bottom_right_corner = 0 +6:0/0/terrains_peering_bit/bottom_side = 0 +6:0/0/terrains_peering_bit/left_side = 0 +6:0/0/terrains_peering_bit/top_left_corner = 0 +6:0/0/terrains_peering_bit/top_side = 0 +6:0/0/terrains_peering_bit/top_right_corner = 0 +7:0/0 = 0 +7:0/0/terrain_set = 0 +7:0/0/terrain = 0 +7:0/0/terrains_peering_bit/bottom_side = 0 +8:0/0 = 0 +9:0/0 = 0 +10:0/0 = 0 +11:0/0 = 0 +12:0/0 = 0 +13:0/0 = 0 +14:0/0 = 0 +15:0/0 = 0 +16:0/0 = 0 +17:0/0 = 0 +18:0/0 = 0 +19:0/0 = 0 +20:0/0 = 0 +21:0/0 = 0 +22:0/0 = 0 +23:0/0 = 0 +24:0/0 = 0 +25:0/0 = 0 +26:0/0 = 0 +0:1/0 = 0 +0:1/0/terrain_set = 0 +0:1/0/terrain = 0 +0:1/0/terrains_peering_bit/right_side = 0 +0:1/0/terrains_peering_bit/bottom_right_corner = 0 +0:1/0/terrains_peering_bit/bottom_side = 0 +0:1/0/terrains_peering_bit/top_side = 0 +0:1/0/terrains_peering_bit/top_right_corner = 0 +1:1/0 = 0 +1:1/0/terrain_set = 0 +1:1/0/terrain = 0 +1:1/0/terrains_peering_bit/right_side = 0 +1:1/0/terrains_peering_bit/bottom_right_corner = 0 +1:1/0/terrains_peering_bit/bottom_side = 0 +1:1/0/terrains_peering_bit/bottom_left_corner = 0 +1:1/0/terrains_peering_bit/left_side = 0 +1:1/0/terrains_peering_bit/top_left_corner = 0 +1:1/0/terrains_peering_bit/top_side = 0 +1:1/0/terrains_peering_bit/top_right_corner = 0 +2:1/0 = 0 +2:1/0/terrain_set = 0 +2:1/0/terrain = 0 +2:1/0/terrains_peering_bit/bottom_side = 0 +2:1/0/terrains_peering_bit/bottom_left_corner = 0 +2:1/0/terrains_peering_bit/left_side = 0 +2:1/0/terrains_peering_bit/top_left_corner = 0 +2:1/0/terrains_peering_bit/top_side = 0 +3:1/0 = 0 +3:1/0/terrain_set = 0 +3:1/0/terrain = 0 +3:1/0/terrains_peering_bit/right_side = 0 +3:1/0/terrains_peering_bit/top_side = 0 +4:1/0 = 0 +4:1/0/terrain_set = 0 +4:1/0/terrain = 0 +4:1/0/terrains_peering_bit/left_side = 0 +4:1/0/terrains_peering_bit/top_side = 0 +5:1/0 = 0 +5:1/0/terrain_set = 0 +5:1/0/terrain = 0 +5:1/0/terrains_peering_bit/right_side = 0 +5:1/0/terrains_peering_bit/bottom_right_corner = 0 +5:1/0/terrains_peering_bit/bottom_side = 0 +5:1/0/terrains_peering_bit/bottom_left_corner = 0 +5:1/0/terrains_peering_bit/left_side = 0 +5:1/0/terrains_peering_bit/top_left_corner = 0 +5:1/0/terrains_peering_bit/top_side = 0 +6:1/0 = 0 +6:1/0/terrain_set = 0 +6:1/0/terrain = 0 +6:1/0/terrains_peering_bit/right_side = 0 +6:1/0/terrains_peering_bit/bottom_right_corner = 0 +6:1/0/terrains_peering_bit/bottom_side = 0 +6:1/0/terrains_peering_bit/bottom_left_corner = 0 +6:1/0/terrains_peering_bit/left_side = 0 +6:1/0/terrains_peering_bit/top_side = 0 +6:1/0/terrains_peering_bit/top_right_corner = 0 +7:1/0 = 0 +7:1/0/terrain_set = 0 +7:1/0/terrain = 0 +7:1/0/terrains_peering_bit/bottom_side = 0 +7:1/0/terrains_peering_bit/top_side = 0 +8:1/0 = 0 +9:1/0 = 0 +10:1/0 = 0 +11:1/0 = 0 +12:1/0 = 0 +13:1/0 = 0 +14:1/0 = 0 +15:1/0 = 0 +16:1/0 = 0 +17:1/0 = 0 +18:1/0 = 0 +19:1/0 = 0 +20:1/0 = 0 +21:1/0 = 0 +22:1/0 = 0 +23:1/0 = 0 +24:1/0 = 0 +25:1/0 = 0 +26:1/0 = 0 +0:2/0 = 0 +0:2/0/terrain_set = 0 +0:2/0/terrain = 0 +0:2/0/terrains_peering_bit/right_side = 0 +0:2/0/terrains_peering_bit/top_side = 0 +0:2/0/terrains_peering_bit/top_right_corner = 0 +1:2/0 = 0 +1:2/0/terrain_set = 0 +1:2/0/terrain = 0 +1:2/0/terrains_peering_bit/right_side = 0 +1:2/0/terrains_peering_bit/left_side = 0 +1:2/0/terrains_peering_bit/top_left_corner = 0 +1:2/0/terrains_peering_bit/top_side = 0 +1:2/0/terrains_peering_bit/top_right_corner = 0 +2:2/0 = 0 +2:2/0/terrain_set = 0 +2:2/0/terrain = 0 +2:2/0/terrains_peering_bit/left_side = 0 +2:2/0/terrains_peering_bit/top_left_corner = 0 +2:2/0/terrains_peering_bit/top_side = 0 +3:2/0 = 0 +3:2/0/terrain_set = 0 +3:2/0/terrain = 0 +3:2/0/terrains_peering_bit/right_side = 0 +4:2/0 = 0 +4:2/0/terrain_set = 0 +4:2/0/terrain = 0 +4:2/0/terrains_peering_bit/right_side = 0 +4:2/0/terrains_peering_bit/left_side = 0 +5:2/0 = 0 +5:2/0/terrain_set = 0 +5:2/0/terrain = 0 +5:2/0/terrains_peering_bit/left_side = 0 +6:2/0 = 0 +6:2/0/terrain_set = 0 +6:2/0/terrain = 0 +7:2/0 = 0 +7:2/0/terrain_set = 0 +7:2/0/terrain = 0 +7:2/0/terrains_peering_bit/top_side = 0 +8:2/0 = 0 +9:2/0 = 0 +10:2/0 = 0 +11:2/0 = 0 +12:2/0 = 0 +13:2/0 = 0 +14:2/0 = 0 +15:2/0 = 0 +16:2/0 = 0 +17:2/0 = 0 +18:2/0 = 0 +19:2/0 = 0 +20:2/0 = 0 +21:2/0 = 0 +22:2/0 = 0 +23:2/0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 0 +21:9/0 = 0 +22:9/0 = 0 +23:9/0 = 0 +24:9/0 = 0 +25:9/0 = 0 +26:9/0 = 0 +0:10/0 = 0 +1:10/0 = 0 +2:10/0 = 0 +3:10/0 = 0 +4:10/0 = 0 +5:10/0 = 0 +6:10/0 = 0 +7:10/0 = 0 +8:10/0 = 0 +9:10/0 = 0 +10:10/0 = 0 +11:10/0 = 0 +12:10/0 = 0 +13:10/0 = 0 +14:10/0 = 0 +15:10/0 = 0 +16:10/0 = 0 +17:10/0 = 0 +18:10/0 = 0 +19:10/0 = 0 +20:10/0 = 0 +21:10/0 = 0 +22:10/0 = 0 +23:10/0 = 0 +24:10/0 = 0 +25:10/0 = 0 +26:10/0 = 0 +0:11/0 = 0 +1:11/0 = 0 +2:11/0 = 0 +3:11/0 = 0 +4:11/0 = 0 +5:11/0 = 0 +6:11/0 = 0 +7:11/0 = 0 +8:11/0 = 0 +9:11/0 = 0 +10:11/0 = 0 +11:11/0 = 0 +12:11/0 = 0 +13:11/0 = 0 +14:11/0 = 0 +15:11/0 = 0 +16:11/0 = 0 +17:11/0 = 0 +18:11/0 = 0 +19:11/0 = 0 +20:11/0 = 0 +21:11/0 = 0 +22:11/0 = 0 +23:11/0 = 0 +24:11/0 = 0 +25:11/0 = 0 +26:11/0 = 0 +0:12/0 = 0 +1:12/0 = 0 +2:12/0 = 0 +3:12/0 = 0 +4:12/0 = 0 +5:12/0 = 0 +6:12/0 = 0 +7:12/0 = 0 +8:12/0 = 0 +9:12/0 = 0 +10:12/0 = 0 +11:12/0 = 0 +12:12/0 = 0 +13:12/0 = 0 +14:12/0 = 0 +15:12/0 = 0 +16:12/0 = 0 +17:12/0 = 0 +18:12/0 = 0 +19:12/0 = 0 +20:12/0 = 0 +21:12/0 = 0 +22:12/0 = 0 +23:12/0 = 0 +24:12/0 = 0 +25:12/0 = 0 +26:12/0 = 0 +0:13/0 = 0 +1:13/0 = 0 +2:13/0 = 0 +3:13/0 = 0 +4:13/0 = 0 +5:13/0 = 0 +6:13/0 = 0 +7:13/0 = 0 +8:13/0 = 0 +9:13/0 = 0 +10:13/0 = 0 +11:13/0 = 0 +12:13/0 = 0 +13:13/0 = 0 +14:13/0 = 0 +15:13/0 = 0 +16:13/0 = 0 +17:13/0 = 0 +18:13/0 = 0 +19:13/0 = 0 +20:13/0 = 0 +21:13/0 = 0 +22:13/0 = 0 +23:13/0 = 0 +24:13/0 = 0 +25:13/0 = 0 +26: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 +6:14/0 = 0 +7:14/0 = 0 +8:14/0 = 0 +9:14/0 = 0 +10:14/0 = 0 +11:14/0 = 0 +12:14/0 = 0 +13:14/0 = 0 +14:14/0 = 0 +15:14/0 = 0 +16:14/0 = 0 +17:14/0 = 0 +18:14/0 = 0 +19:14/0 = 0 +20:14/0 = 0 +21:14/0 = 0 +22:14/0 = 0 +23:14/0 = 0 +24:14/0 = 0 +25:14/0 = 0 +26:14/0 = 0 +0:15/0 = 0 +0:15/0/terrain_set = 0 +0:15/0/terrain = 1 +1:15/0 = 0 +1:15/0/terrain_set = 0 +1:15/0/terrain = 1 +1:15/0/terrains_peering_bit/right_side = 1 +1:15/0/terrains_peering_bit/bottom_right_corner = 1 +1:15/0/terrains_peering_bit/bottom_side = 1 +1:15/0/terrains_peering_bit/bottom_left_corner = 1 +1:15/0/terrains_peering_bit/left_side = 1 +2:15/0 = 0 +2:15/0/terrain_set = 0 +2:15/0/terrains_peering_bit/right_side = 1 +2:15/0/terrains_peering_bit/bottom_right_corner = 1 +2:15/0/terrains_peering_bit/bottom_left_corner = 1 +2:15/0/terrains_peering_bit/top_left_corner = 1 +2:15/0/terrains_peering_bit/top_right_corner = 1 +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 +13:15/0 = 0 +14:15/0 = 0 +15:15/0 = 0 +16:15/0 = 0 +17:15/0 = 0 +18:15/0 = 0 +19:15/0 = 0 +20:15/0 = 0 +21:15/0 = 0 +22:15/0 = 0 +23:15/0 = 0 +24:15/0 = 0 +25:15/0 = 0 +26:15/0 = 0 +0:16/0 = 0 +0:16/0/terrain_set = 0 +0:16/0/terrain = 1 +1:16/0 = 0 +1:16/0/terrain_set = 0 +1:16/0/terrains_peering_bit/bottom_right_corner = 1 +1:16/0/terrains_peering_bit/bottom_side = 1 +1:16/0/terrains_peering_bit/bottom_left_corner = 1 +1:16/0/terrains_peering_bit/top_left_corner = 1 +1:16/0/terrains_peering_bit/top_side = 1 +1:16/0/terrains_peering_bit/top_right_corner = 1 +2:16/0 = 0 +2:16/0/terrain_set = 0 +2:16/0/terrain = 1 +3:16/0 = 0 +3:16/0/terrain_set = 0 +3:16/0/terrain = 1 +4:16/0 = 0 +4:16/0/terrain_set = 0 +4:16/0/terrain = 1 +5:16/0 = 0 +5:16/0/terrain_set = 0 +5:16/0/terrain = 1 +5:16/0/terrains_peering_bit/right_side = 1 +5:16/0/terrains_peering_bit/bottom_right_corner = 1 +5:16/0/terrains_peering_bit/bottom_side = 1 +6:16/0 = 0 +6:16/0/terrain_set = 0 +6:16/0/terrain = 1 +6:16/0/terrains_peering_bit/bottom_side = 1 +6:16/0/terrains_peering_bit/bottom_left_corner = 1 +6:16/0/terrains_peering_bit/left_side = 1 +7:16/0 = 0 +7:16/0/terrain_set = 0 +7:16/0/terrain = 1 +7:16/0/terrains_peering_bit/right_side = 1 +7:16/0/terrains_peering_bit/bottom_side = 1 +7:16/0/terrains_peering_bit/bottom_left_corner = 1 +7:16/0/terrains_peering_bit/left_side = 1 +7:16/0/terrains_peering_bit/top_left_corner = 1 +7:16/0/terrains_peering_bit/top_side = 1 +7:16/0/terrains_peering_bit/top_right_corner = 1 +8:16/0 = 0 +8:16/0/terrain_set = 0 +8:16/0/terrain = 1 +8:16/0/terrains_peering_bit/right_side = 1 +8:16/0/terrains_peering_bit/bottom_right_corner = 1 +8:16/0/terrains_peering_bit/bottom_side = 1 +8:16/0/terrains_peering_bit/left_side = 1 +8:16/0/terrains_peering_bit/top_left_corner = 1 +8:16/0/terrains_peering_bit/top_side = 1 +8:16/0/terrains_peering_bit/top_right_corner = 1 +9:16/0 = 0 +9:16/0/terrain_set = 0 +9:16/0/terrain = 1 +9:16/0/terrains_peering_bit/right_side = 1 +9:16/0/terrains_peering_bit/bottom_right_corner = 1 +9:16/0/terrains_peering_bit/bottom_side = 1 +9:16/0/terrains_peering_bit/bottom_left_corner = 1 +9:16/0/terrains_peering_bit/left_side = 1 +9:16/0/terrains_peering_bit/top_left_corner = 1 +9:16/0/terrains_peering_bit/top_side = 1 +9:16/0/terrains_peering_bit/top_right_corner = 1 +10:16/0 = 0 +10:16/0/terrain_set = 0 +11:16/0 = 0 +12:16/0 = 0 +13:16/0 = 0 +14:16/0 = 0 +15:16/0 = 0 +16:16/0 = 0 +17:16/0 = 0 +18:16/0 = 0 +19:16/0 = 0 +20:16/0 = 0 +21:16/0 = 0 +22:16/0 = 0 +23:16/0 = 0 +24:16/0 = 0 +25:16/0 = 0 +26:16/0 = 0 +0:17/0 = 0 +0:17/0/terrain_set = 0 +0:17/0/terrain = 1 +1:17/0 = 0 +1:17/0/terrain_set = 0 +1:17/0/terrain = 1 +1:17/0/terrains_peering_bit/right_side = 1 +1:17/0/terrains_peering_bit/left_side = 1 +1:17/0/terrains_peering_bit/top_left_corner = 1 +1:17/0/terrains_peering_bit/top_side = 1 +1:17/0/terrains_peering_bit/top_right_corner = 1 +2:17/0 = 0 +2:17/0/terrain_set = 0 +2:17/0/terrain = 1 +2:17/0/terrains_peering_bit/right_side = 1 +2:17/0/terrains_peering_bit/bottom_right_corner = 1 +2:17/0/terrains_peering_bit/bottom_side = 1 +2:17/0/terrains_peering_bit/top_side = 1 +2:17/0/terrains_peering_bit/top_right_corner = 1 +3:17/0 = 0 +3:17/0/terrain_set = 0 +3:17/0/terrains_peering_bit/right_side = 1 +3:17/0/terrains_peering_bit/bottom_right_corner = 1 +3:17/0/terrains_peering_bit/bottom_left_corner = 1 +3:17/0/terrains_peering_bit/left_side = 1 +3:17/0/terrains_peering_bit/top_left_corner = 1 +3:17/0/terrains_peering_bit/top_right_corner = 1 +4:17/0 = 0 +4:17/0/terrain_set = 0 +4:17/0/terrain = 1 +4:17/0/terrains_peering_bit/bottom_side = 1 +4:17/0/terrains_peering_bit/bottom_left_corner = 1 +4:17/0/terrains_peering_bit/left_side = 1 +4:17/0/terrains_peering_bit/top_left_corner = 1 +4:17/0/terrains_peering_bit/top_side = 1 +5:17/0 = 0 +5:17/0/terrain_set = 0 +5:17/0/terrain = 1 +5:17/0/terrains_peering_bit/right_side = 1 +5:17/0/terrains_peering_bit/top_side = 1 +5:17/0/terrains_peering_bit/top_right_corner = 1 +6:17/0 = 0 +6:17/0/terrain_set = 0 +6:17/0/terrain = 1 +6:17/0/terrains_peering_bit/left_side = 1 +6:17/0/terrains_peering_bit/top_left_corner = 1 +6:17/0/terrains_peering_bit/top_side = 1 +7:17/0 = 0 +7:17/0/terrain_set = 0 +7:17/0/terrain = 1 +7:17/0/terrains_peering_bit/right_side = 1 +7:17/0/terrains_peering_bit/bottom_right_corner = 1 +7:17/0/terrains_peering_bit/bottom_side = 1 +7:17/0/terrains_peering_bit/bottom_left_corner = 1 +7:17/0/terrains_peering_bit/left_side = 1 +7:17/0/terrains_peering_bit/top_left_corner = 1 +7:17/0/terrains_peering_bit/top_side = 1 +8:17/0 = 0 +8:17/0/terrain_set = 0 +8:17/0/terrain = 1 +8:17/0/terrains_peering_bit/right_side = 1 +8:17/0/terrains_peering_bit/bottom_right_corner = 1 +8:17/0/terrains_peering_bit/bottom_side = 1 +8:17/0/terrains_peering_bit/bottom_left_corner = 1 +8:17/0/terrains_peering_bit/left_side = 1 +8:17/0/terrains_peering_bit/top_side = 1 +8:17/0/terrains_peering_bit/top_right_corner = 1 +9:17/0 = 0 +9:17/0/terrain_set = 0 +9:17/0/terrain = 1 +9:17/0/terrains_peering_bit/right_side = 1 +9:17/0/terrains_peering_bit/bottom_right_corner = 1 +9:17/0/terrains_peering_bit/bottom_side = 1 +9:17/0/terrains_peering_bit/bottom_left_corner = 1 +9:17/0/terrains_peering_bit/left_side = 1 +9:17/0/terrains_peering_bit/top_left_corner = 1 +9:17/0/terrains_peering_bit/top_side = 1 +9:17/0/terrains_peering_bit/top_right_corner = 1 +10:17/0 = 0 +10:17/0/terrain_set = 0 +11:17/0 = 0 +12:17/0 = 0 +13:17/0 = 0 +14:17/0 = 0 +15:17/0 = 0 +16:17/0 = 0 +17:17/0 = 0 +18:17/0 = 0 +19:17/0 = 0 +20:17/0 = 0 +21:17/0 = 0 +22:17/0 = 0 +23:17/0 = 0 +24:17/0 = 0 +25:17/0 = 0 +26:17/0 = 0 + +[resource] +terrain_set_0/mode = 0 +terrain_set_0/terrain_0/name = "Gras" +terrain_set_0/terrain_0/color = Color(0.545098, 0.658824, 0.635294, 1) +terrain_set_0/terrain_1/name = "Asphalt" +terrain_set_0/terrain_1/color = Color(0.678431, 0.690196, 0.733333, 1) +sources/1 = SubResource("TileSetAtlasSource_vqaso") diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..9d8b7fa --- /dev/null +++ b/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icon.svg.import b/icon.svg.import new file mode 100644 index 0000000..6083460 --- /dev/null +++ b/icon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://04ecsvg7ausn" +path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.svg" +dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/main.tscn b/main.tscn new file mode 100644 index 0000000..c580fa7 --- /dev/null +++ b/main.tscn @@ -0,0 +1,7 @@ +[gd_scene load_steps=2 format=3 uid="uid://0sq0jwsrvb42"] + +[ext_resource type="PackedScene" uid="uid://bjsl1pit6rusp" path="res://tile_map_layer.tscn" id="1_ig7tw"] + +[node name="Main" type="Node"] + +[node name="Map" parent="." instance=ExtResource("1_ig7tw")] diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..e0245f7 --- /dev/null +++ b/project.godot @@ -0,0 +1,24 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=5 + +[application] + +config/name="TurnBasedStrategyGame" +config/features=PackedStringArray("4.4", "GL Compatibility") +config/icon="res://icon.svg" + +[dotnet] + +project/assembly_name="TurnBasedStrategyGame" + +[rendering] + +renderer/rendering_method="gl_compatibility" +renderer/rendering_method.mobile="gl_compatibility" diff --git a/tile_map_layer.gd b/tile_map_layer.gd new file mode 100644 index 0000000..020286e --- /dev/null +++ b/tile_map_layer.gd @@ -0,0 +1,45 @@ +extends Node + +const CHUNK_SIZE: int = 12; +const CHUNK_DOUBLE: int = CHUNK_SIZE*2; + +func _get_player_position() -> Vector2i: + return Vector2i(1, 1) + + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass + +func _on_exited_chunk(): + $VisibleOnScreenNotifier2D.global_position = (get_tree().get_first_node_in_group("Player").global_position) + + var thread: Thread = Thread.new() + thread.start(func(): _populate_terrain()) + thread.wait_to_finish() + +func _populate_terrain(): + var player_position: Vector2i = _get_player_position() + + for i in range(-CHUNK_DOUBLE, CHUNK_DOUBLE): + for j in range(-CHUNK_DOUBLE, CHUNK_DOUBLE): + var pos: Vector2i = player_position + Vector2i(i, j) + if _is_empty(pos): + _populate_cell(pos, _pick_random_tile()) + + +func _populate_cell(pos: Vector2i, tile: Vector2i) -> void: + $Ground.set_cell.call_deferet(pos, 1, tile, 0) + +func _pick_random_tile() -> Vector2i: + # Make all Tiles green + return Vector2i(1, 1) + +func _is_empty(pos: Vector2i) -> bool: + # Check if the cell is empty (source_id is -1) + return true if $Ground.get_cell_source_id(pos) == -1 else false; \ No newline at end of file diff --git a/tile_map_layer.gd.uid b/tile_map_layer.gd.uid new file mode 100644 index 0000000..8b44e07 --- /dev/null +++ b/tile_map_layer.gd.uid @@ -0,0 +1 @@ +uid://dneqmqsd8yj4p diff --git a/tile_map_layer.tscn b/tile_map_layer.tscn new file mode 100644 index 0000000..0a4fbbd --- /dev/null +++ b/tile_map_layer.tscn @@ -0,0 +1,46 @@ +[gd_scene load_steps=6 format=3 uid="uid://bjsl1pit6rusp"] + +[ext_resource type="TileSet" uid="uid://duodt2t14xjc8" path="res://Resource/UrbanKitTileMap.tres" id="1_0ugm7"] +[ext_resource type="Script" uid="uid://dneqmqsd8yj4p" path="res://tile_map_layer.gd" id="1_vqaso"] +[ext_resource type="Texture2D" uid="uid://04ecsvg7ausn" path="res://icon.svg" id="3_uuaxm"] + +[sub_resource type="SpriteFrames" id="SpriteFrames_c3an2"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": ExtResource("3_uuaxm") +}], +"loop": true, +"name": &"default", +"speed": 5.0 +}] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_vjcy3"] + +[node name="Map" type="Node"] +script = ExtResource("1_vqaso") + +[node name="Ground" type="TileMapLayer" parent="."] +tile_set = ExtResource("1_0ugm7") + +[node name="Roads" type="TileMapLayer" parent="."] +tile_set = ExtResource("1_0ugm7") + +[node name="Buildings" type="TileMapLayer" parent="."] +tile_set = ExtResource("1_0ugm7") + +[node name="Details" type="TileMapLayer" parent="."] +tile_set = ExtResource("1_0ugm7") + +[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] +position = Vector2(576, 324) +rect = Rect2(0, 0, 32, 32) + +[node name="Player" type="Area2D" parent="." groups=["Player"]] + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Player"] +scale = Vector2(0.165, 0.165) +sprite_frames = SubResource("SpriteFrames_c3an2") + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Player"] +shape = SubResource("RectangleShape2D_vjcy3")