Refator pass 1
@@ -3,10 +3,11 @@
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
if(DUSK_TARGET_GAME STREQUAL "rpg")
|
||||
add_subdirectory(rpg)
|
||||
elseif(DUSK_TARGET_GAME STREQUAL "minesweeper")
|
||||
add_subdirectory(minesweeper)
|
||||
else()
|
||||
message(FATAL_ERROR "Unknown game specified: ${DUSK_TARGET_GAME}")
|
||||
endif()
|
||||
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)
|
@@ -4,4 +4,5 @@
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
add_asset(CONFIG init.dcf)
|
||||
add_asset(CONFIG init_psp.dcf)
|
||||
add_asset(CONFIG init-base.dcf)
|
||||
add_asset(CONFIG init-psp.dcf)
|
2
assets/config/init-base.dcf
Normal file
@@ -0,0 +1,2 @@
|
||||
echo " = Dawn Init = ";
|
||||
fps 1;
|
@@ -1,4 +1,6 @@
|
||||
echo " = Dawn PSP = ";
|
||||
exec "config/init-base";
|
||||
|
||||
screen backbuffer;
|
||||
|
||||
bind up up;
|
||||
bind down down;
|
||||
@@ -8,10 +10,7 @@ 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;
|
||||
bind lstick_positive_x right;
|
@@ -1,4 +1,6 @@
|
||||
echo " = Dawn Init = ";
|
||||
exec "config/init-base";
|
||||
|
||||
screen height 270;
|
||||
|
||||
bind ` toggleconsole;
|
||||
bind w up;
|
||||
@@ -12,6 +14,4 @@ bind right right;
|
||||
bind e accept;
|
||||
bind enter accept;
|
||||
bind q cancel;
|
||||
bind esc quit;
|
||||
|
||||
fps 1;
|
||||
bind esc quit;
|
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 336 B |
@@ -1,11 +0,0 @@
|
||||
# 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})
|
||||
|
||||
# Palette asset needs to be added before any images.
|
||||
add_subdirectory(palette)
|
||||
add_subdirectory(config)
|
||||
add_subdirectory(ui)
|
@@ -1,19 +0,0 @@
|
||||
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;
|
||||
|
||||
scene sweep;
|
@@ -1,19 +0,0 @@
|
||||
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;
|
||||
|
||||
scene sweep;
|
Before Width: | Height: | Size: 145 B |
@@ -1,4 +0,0 @@
|
||||
# Copyright (c) 2025 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
Before Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 4.2 KiB |
@@ -1,9 +0,0 @@
|
||||
# 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)
|
||||
add_asset(TILESET ui.png type=PALETTIZED tileWidth=16 tileHeight=16)
|
||||
add_asset(TILESET ui_frame.png type=PALETTIZED tileWidth=16 tileHeight=16)
|
||||
add_asset(TILESET background.png type=PALETTIZED tileWidth=16 tileHeight=16)
|
Before Width: | Height: | Size: 268 B |
Before Width: | Height: | Size: 421 B |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 293 B |
Before Width: | Height: | Size: 241 B After Width: | Height: | Size: 241 B |
@@ -1,13 +0,0 @@
|
||||
# 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)
|
@@ -1,7 +0,0 @@
|
||||
# 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)
|
@@ -1,6 +0,0 @@
|
||||
# Copyright (c) 2025 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
add_asset(PALETTE palette0.png)
|
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 758 B After Width: | Height: | Size: 758 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |