Map saving first pass
This commit is contained in:
@@ -7,4 +7,5 @@ add_subdirectory(palette)# Palette asset needs to be added before any images.
|
||||
|
||||
add_subdirectory(config)
|
||||
add_subdirectory(entity)
|
||||
add_subdirectory(map)
|
||||
add_subdirectory(ui)
|
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tileset version="1.10" tiledversion="1.11.1" name="entities" tilewidth="16" tileheight="16" tilecount="64" columns="8">
|
||||
<tileset version="1.10" tiledversion="1.11.2" name="entities" tilewidth="16" tileheight="16" tilecount="64" columns="8">
|
||||
<image source="entities.png" width="128" height="128"/>
|
||||
</tileset>
|
||||
|
6
assets/map/CMakeLists.txt
Normal file
6
assets/map/CMakeLists.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
# Copyright (c) 2025 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
add_asset(MAP untitled.tmx)
|
28
assets/map/untitled.tmx
Normal file
28
assets/map/untitled.tmx
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.10" tiledversion="1.11.2" orientation="orthogonal" renderorder="right-down" width="30" height="20" tilewidth="16" tileheight="16" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||
<tileset firstgid="1" source="../tileset/prarie.tsx"/>
|
||||
<layer id="1" name="Tile Layer 1" width="30" height="20">
|
||||
<data encoding="csv">
|
||||
2,3,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
9,10,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
16,17,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
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,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||
</data>
|
||||
</layer>
|
||||
</map>
|
@@ -3,4 +3,4 @@
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
add_asset(PALETTE pallet0.png)
|
||||
add_asset(PALETTE palette0.png)
|
BIN
assets/palette/palette0.png
Normal file
BIN
assets/palette/palette0.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 241 B |
BIN
assets/palette/palette0.pxo
Normal file
BIN
assets/palette/palette0.pxo
Normal file
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 268 B |
BIN
assets/tileset/prarie.png
Normal file
BIN
assets/tileset/prarie.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 758 B |
BIN
assets/tileset/prarie.pxo
Normal file
BIN
assets/tileset/prarie.pxo
Normal file
Binary file not shown.
4
assets/tileset/prarie.tsx
Normal file
4
assets/tileset/prarie.tsx
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tileset version="1.10" tiledversion="1.11.2" name="prarie" tilewidth="16" tileheight="16" tilecount="21" columns="7">
|
||||
<image source="prarie.png" width="112" height="48"/>
|
||||
</tileset>
|
14
assets/untitled.tiled-project
Normal file
14
assets/untitled.tiled-project
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"automappingRulesFile": "",
|
||||
"commands": [
|
||||
],
|
||||
"compatibilityVersion": 1100,
|
||||
"extensionsPath": "extensions",
|
||||
"folders": [
|
||||
"."
|
||||
],
|
||||
"properties": [
|
||||
],
|
||||
"propertyTypes": [
|
||||
]
|
||||
}
|
56
assets/untitled.tiled-session
Normal file
56
assets/untitled.tiled-session
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"Map/SizeTest": {
|
||||
"height": 4300,
|
||||
"width": 2
|
||||
},
|
||||
"activeFile": "map/untitled.tmx",
|
||||
"expandedProjectPaths": [
|
||||
"map",
|
||||
".",
|
||||
"tileset"
|
||||
],
|
||||
"file.lastUsedOpenFilter": "All Files (*)",
|
||||
"fileStates": {
|
||||
"entity/entities.tsx": {
|
||||
"scaleInDock": 1,
|
||||
"scaleInEditor": 1
|
||||
},
|
||||
"map/prarie.tsx": {
|
||||
"scaleInDock": 1,
|
||||
"scaleInEditor": 11
|
||||
},
|
||||
"map/untitled.tmx": {
|
||||
"scale": 3.8326562499999994,
|
||||
"selectedLayer": 0,
|
||||
"viewCenter": {
|
||||
"x": 169.5951730604591,
|
||||
"y": 108.41045293326268
|
||||
}
|
||||
},
|
||||
"tileset/prarie.tsx": {
|
||||
"scaleInDock": 1,
|
||||
"scaleInEditor": 1
|
||||
}
|
||||
},
|
||||
"last.imagePath": "/home/yourwishes/htdocs/dusk/assets/tileset",
|
||||
"map.lastUsedFormat": "tmx",
|
||||
"map.tileHeight": 16,
|
||||
"map.tileWidth": 16,
|
||||
"openFiles": [
|
||||
"entity/entities.tsx",
|
||||
"map/untitled.tmx",
|
||||
"tileset/prarie.tsx"
|
||||
],
|
||||
"project": "untitled.tiled-project",
|
||||
"recentFiles": [
|
||||
"entity/entities.tsx",
|
||||
"tileset/prarie.tsx",
|
||||
"map/untitled.tmx",
|
||||
"map/prarie.tsx"
|
||||
],
|
||||
"tileset.lastUsedFormat": "tsx",
|
||||
"tileset.tileSize": {
|
||||
"height": 16,
|
||||
"width": 16
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user