Refact
This commit is contained in:
13
assets/rpg/CMakeLists.txt
Normal file
13
assets/rpg/CMakeLists.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
# Copyright (c) 2025 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
set(DUSK_GAME_ASSETS_DIR "${CMAKE_CURRENT_SOURCE_DIR}" CACHE INTERNAL ${DUSK_CACHE_TARGET})
|
||||
|
||||
add_subdirectory(palette)# Palette asset needs to be added before any images.
|
||||
|
||||
add_subdirectory(config)
|
||||
add_subdirectory(entity)
|
||||
add_subdirectory(map)
|
||||
add_subdirectory(ui)
|
7
assets/rpg/config/CMakeLists.txt
Normal file
7
assets/rpg/config/CMakeLists.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
# Copyright (c) 2025 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
add_asset(CONFIG init.dcf)
|
||||
add_asset(CONFIG init_psp.dcf)
|
17
assets/rpg/config/init.dcf
Normal file
17
assets/rpg/config/init.dcf
Normal file
@@ -0,0 +1,17 @@
|
||||
echo " = Dawn Init = ";
|
||||
|
||||
bind ` toggleconsole;
|
||||
bind w up;
|
||||
bind s down;
|
||||
bind a left;
|
||||
bind d right;
|
||||
bind up up;
|
||||
bind down down;
|
||||
bind left left;
|
||||
bind right right;
|
||||
bind e accept;
|
||||
bind enter accept;
|
||||
bind q cancel;
|
||||
bind esc quit;
|
||||
|
||||
fps 1;
|
17
assets/rpg/config/init_psp.dcf
Normal file
17
assets/rpg/config/init_psp.dcf
Normal file
@@ -0,0 +1,17 @@
|
||||
echo " = Dawn PSP = ";
|
||||
|
||||
bind up up;
|
||||
bind down down;
|
||||
bind left left;
|
||||
bind right right;
|
||||
bind cross accept;
|
||||
bind circle cancel;
|
||||
bind select toggleconsole;
|
||||
bind start toggleconsole;
|
||||
|
||||
bind lstick_negative_y up;
|
||||
bind lstick_positive_y down;
|
||||
bind lstick_negative_x left;
|
||||
bind lstick_positive_x right;
|
||||
|
||||
fps 1;
|
6
assets/rpg/entity/CMakeLists.txt
Normal file
6
assets/rpg/entity/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(TILESET entities.tsx)
|
BIN
assets/rpg/entity/entities.png
Normal file
BIN
assets/rpg/entity/entities.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 336 B |
4
assets/rpg/entity/entities.tsx
Normal file
4
assets/rpg/entity/entities.tsx
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-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/rpg/map/CMakeLists.txt
Normal file
6
assets/rpg/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/rpg/map/untitled.tmx
Normal file
28
assets/rpg/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,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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,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
|
||||
</data>
|
||||
</layer>
|
||||
</map>
|
6
assets/rpg/palette/CMakeLists.txt
Normal file
6
assets/rpg/palette/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(PALETTE palette0.png)
|
BIN
assets/rpg/palette/palette0.png
Normal file
BIN
assets/rpg/palette/palette0.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 241 B |
BIN
assets/rpg/palette/palette0.pxo
Normal file
BIN
assets/rpg/palette/palette0.pxo
Normal file
Binary file not shown.
BIN
assets/rpg/tileset/prarie.png
Normal file
BIN
assets/rpg/tileset/prarie.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 758 B |
BIN
assets/rpg/tileset/prarie.pxo
Normal file
BIN
assets/rpg/tileset/prarie.pxo
Normal file
Binary file not shown.
4
assets/rpg/tileset/prarie.tsx
Normal file
4
assets/rpg/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>
|
6
assets/rpg/ui/CMakeLists.txt
Normal file
6
assets/rpg/ui/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(TILESET minogram.png type=ALPHA tileWidth=6 tileHeight=10 columns=16 rows=6)
|
BIN
assets/rpg/ui/minogram.png
Normal file
BIN
assets/rpg/ui/minogram.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
14
assets/rpg/untitled.tiled-project
Normal file
14
assets/rpg/untitled.tiled-project
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"automappingRulesFile": "",
|
||||
"commands": [
|
||||
],
|
||||
"compatibilityVersion": 1100,
|
||||
"extensionsPath": "extensions",
|
||||
"folders": [
|
||||
"."
|
||||
],
|
||||
"properties": [
|
||||
],
|
||||
"propertyTypes": [
|
||||
]
|
||||
}
|
56
assets/rpg/untitled.tiled-session
Normal file
56
assets/rpg/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