initial commit...

Map, TileSet, Terrains.
This commit is contained in:
gdz
2025-12-05 23:22:05 +01:00
commit aa1497ee0c
25 changed files with 1125 additions and 0 deletions

4
.editorconfig Normal file
View File

@@ -0,0 +1,4 @@
root = true
[*]
charset = utf-8

2
.gitattributes vendored Normal file
View File

@@ -0,0 +1,2 @@
# Normalize EOL for all files that Git considers text files.
* text=auto eol=lf

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
# Godot 4+ specific ignores
.godot/
/android/

15
.idea/.gitignore generated vendored Normal file
View File

@@ -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/

4
.idea/encodings.xml generated Normal file
View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
</project>

8
.idea/indexLayout.xml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

9
.idea/libraries/GdSdk.xml generated Normal file
View File

@@ -0,0 +1,9 @@
<component name="libraryTable">
<library name="GdSdk" type="GdScript">
<CLASSES />
<JAVADOC />
<SOURCES>
<root url="file://$APPLICATION_PLUGINS_DIR$/GdScript/extracted/4.4.1" />
</SOURCES>
</library>
</component>

6
.idea/vcs.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -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

View File

@@ -0,0 +1,6 @@
Tile width : 16px
Tile height: 16px
Margin: 0px
Spacing: 1px

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -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

View File

@@ -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 = 0
24:2/0 = 0
25:2/0 = 0
26: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
8:3/0 = 0
9:3/0 = 0
10:3/0 = 0
11:3/0 = 0
12:3/0 = 0
13:3/0 = 0
14:3/0 = 0
15:3/0 = 0
16:3/0 = 0
17:3/0 = 0
18:3/0 = 0
19:3/0 = 0
20:3/0 = 0
21:3/0 = 0
22:3/0 = 0
23:3/0 = 0
24:3/0 = 0
25:3/0 = 0
26: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
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
16:4/0 = 0
17:4/0 = 0
18:4/0 = 0
19:4/0 = 0
20:4/0 = 0
21:4/0 = 0
22:4/0 = 0
23:4/0 = 0
24:4/0 = 0
25:4/0 = 0
26: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 = 0
10:5/0 = 0
11:5/0 = 0
12:5/0 = 0
13:5/0 = 0
14:5/0 = 0
15:5/0 = 0
16:5/0 = 0
17:5/0 = 0
18:5/0 = 0
19:5/0 = 0
20:5/0 = 0
21:5/0 = 0
22:5/0 = 0
23:5/0 = 0
24:5/0 = 0
25:5/0 = 0
26: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
8:6/0 = 0
9:6/0 = 0
10:6/0 = 0
11:6/0 = 0
12:6/0 = 0
13:6/0 = 0
14:6/0 = 0
15:6/0 = 0
16:6/0 = 0
17:6/0 = 0
18:6/0 = 0
19:6/0 = 0
20:6/0 = 0
21:6/0 = 0
22:6/0 = 0
23:6/0 = 0
24:6/0 = 0
25:6/0 = 0
26: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
8:7/0 = 0
9:7/0 = 0
10:7/0 = 0
11:7/0 = 0
12:7/0 = 0
13:7/0 = 0
14:7/0 = 0
15:7/0 = 0
16:7/0 = 0
17:7/0 = 0
18:7/0 = 0
19:7/0 = 0
20:7/0 = 0
21:7/0 = 0
22:7/0 = 0
23:7/0 = 0
24:7/0 = 0
25:7/0 = 0
26:7/0 = 0
0:8/0 = 0
1:8/0 = 0
2:8/0 = 0
3:8/0 = 0
4:8/0 = 0
5:8/0 = 0
6:8/0 = 0
7:8/0 = 0
8:8/0 = 0
9:8/0 = 0
10:8/0 = 0
11:8/0 = 0
12:8/0 = 0
13:8/0 = 0
14:8/0 = 0
15:8/0 = 0
16:8/0 = 0
17:8/0 = 0
18:8/0 = 0
19:8/0 = 0
20:8/0 = 0
21:8/0 = 0
22:8/0 = 0
23:8/0 = 0
24:8/0 = 0
25:8/0 = 0
26:8/0 = 0
0:9/0 = 0
1:9/0 = 0
2:9/0 = 0
3:9/0 = 0
4:9/0 = 0
5:9/0 = 0
6:9/0 = 0
7:9/0 = 0
8:9/0 = 0
9:9/0 = 0
10:9/0 = 0
11:9/0 = 0
12:9/0 = 0
13:9/0 = 0
14:9/0 = 0
15:9/0 = 0
16:9/0 = 0
17:9/0 = 0
18:9/0 = 0
19:9/0 = 0
20:9/0 = 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")

1
icon.svg Normal file
View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128"><rect width="124" height="124" x="2" y="2" fill="#363d52" stroke="#212532" stroke-width="4" rx="14"/><g fill="#fff" transform="translate(12.322 12.322)scale(.101)"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 814 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H446l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c0 34 58 34 58 0v-86c0-34-58-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042" transform="translate(12.322 12.322)scale(.101)"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></svg>

After

Width:  |  Height:  |  Size: 994 B

37
icon.svg.import Normal file
View File

@@ -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

7
main.tscn Normal file
View File

@@ -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")]

24
project.godot Normal file
View File

@@ -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"

45
tile_map_layer.gd Normal file
View File

@@ -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;

1
tile_map_layer.gd.uid Normal file
View File

@@ -0,0 +1 @@
uid://dneqmqsd8yj4p

46
tile_map_layer.tscn Normal file
View File

@@ -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")