Refator pass 1

This commit is contained in:
2025-10-06 19:14:52 -05:00
parent 85434b4edb
commit fc52afdb00
113 changed files with 96 additions and 726 deletions

View File

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

View File

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

View File

@@ -0,0 +1,2 @@
echo " = Dawn Init = ";
fps 1;

View File

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

View File

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

View File

Before

Width:  |  Height:  |  Size: 336 B

After

Width:  |  Height:  |  Size: 336 B

View File

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

View File

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

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 B

View File

@@ -1,4 +0,0 @@
# Copyright (c) 2025 Dominic Masters
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 421 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 293 B

View File

Before

Width:  |  Height:  |  Size: 241 B

After

Width:  |  Height:  |  Size: 241 B

View File

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

View File

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

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 758 B

After

Width:  |  Height:  |  Size: 758 B

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB