Fixed palette lookup
All checks were successful
Build Dusk / run-tests (push) Successful in 1m18s
Build Dusk / build-linux (push) Successful in 1m21s
Build Dusk / build-psp (push) Successful in 1m30s
Build Dusk / build-dolphin (push) Successful in 1m51s

This commit is contained in:
2026-02-08 21:26:42 -06:00
parent 13c4df0d85
commit 3db7e6b1b9
13 changed files with 59 additions and 8 deletions

View File

@@ -15,7 +15,8 @@ add_subdirectory(locale)
add_asset(SCRIPT init.lua)
# Subdirs
add_subdirectory(entity)
add_subdirectory(map)
# add_subdirectory(entity)
# add_subdirectory(map)
add_subdirectory(ui)
add_subdirectory(scene)
add_subdirectory(minesweeper)
add_subdirectory(scene)

View File

@@ -0,0 +1,6 @@
# Copyright (c) 2026 Dominic Masters
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
add_asset(TILESET ui.png type=PALETTIZED tileWidth=8 tileHeight=8)

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
assets/minesweeper/cell.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
assets/minesweeper/grid.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
assets/minesweeper/ui.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -3,4 +3,5 @@
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
add_asset(PALETTE palette0.png)
add_asset(PALETTE palette0.png)
add_asset(PALETTE paletteMinesweeper.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 B

View File

@@ -3,4 +3,5 @@
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
add_asset(SCRIPT initial.lua)
add_asset(SCRIPT initial.lua)
add_asset(SCRIPT minesweeper.lua)

View File

@@ -0,0 +1,27 @@
module('spritebatch')
module('camera')
module('color')
module('ui')
module('screen')
module('time')
module('glm')
screenSetBackground(colorBlack())
camera = cameraCreate(CAMERA_PROJECTION_TYPE_ORTHOGRAPHIC)
function sceneDispose()
end
function sceneUpdate()
end
function sceneRender()
-- UI
cameraPushMatrix(camera)
camera.bottom = screenGetHeight()
camera.right = screenGetWidth()
cameraPopMatrix()
end