Refact
This commit is contained in:
10
assets/minesweeper/CMakeLists.txt
Normal file
10
assets/minesweeper/CMakeLists.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
# 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(ui)
|
7
assets/minesweeper/config/CMakeLists.txt
Normal file
7
assets/minesweeper/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/minesweeper/config/init.dcf
Normal file
17
assets/minesweeper/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/minesweeper/config/init_psp.dcf
Normal file
17
assets/minesweeper/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/minesweeper/palette/CMakeLists.txt
Normal file
6
assets/minesweeper/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/minesweeper/palette/palette0.png
Normal file
BIN
assets/minesweeper/palette/palette0.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 241 B |
BIN
assets/minesweeper/palette/palette0.pxo
Normal file
BIN
assets/minesweeper/palette/palette0.pxo
Normal file
Binary file not shown.
6
assets/minesweeper/ui/CMakeLists.txt
Normal file
6
assets/minesweeper/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/minesweeper/ui/minogram.png
Normal file
BIN
assets/minesweeper/ui/minogram.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Reference in New Issue
Block a user