Fixed palette lookup
This commit is contained in:
@@ -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)
|
||||
|
||||
6
assets/minesweeper/CMakeLists.txt
Normal file
6
assets/minesweeper/CMakeLists.txt
Normal 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)
|
||||
BIN
assets/minesweeper/background.png
Normal file
BIN
assets/minesweeper/background.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
BIN
assets/minesweeper/border.png
Normal file
BIN
assets/minesweeper/border.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
BIN
assets/minesweeper/cell.png
Normal file
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
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
BIN
assets/minesweeper/ui.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
@@ -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)
|
||||
BIN
assets/palette/paletteMinesweeper.png
Normal file
BIN
assets/palette/paletteMinesweeper.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 127 B |
@@ -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)
|
||||
27
assets/scene/minesweeper.lua
Normal file
27
assets/scene/minesweeper.lua
Normal 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
|
||||
Reference in New Issue
Block a user