First texture rendering (if broken)

This commit is contained in:
2026-02-06 12:48:49 -06:00
parent 0d56859d94
commit aa5b41fe31
23 changed files with 226 additions and 179 deletions

View File

@@ -18,7 +18,7 @@ if PLATFORM == "psp" then
inputBind("lstick_right", INPUT_ACTION_RIGHT)
elseif PLATFORM == "gamecube" then
inputBind("start", INPUT_ACTION_RAGEQUIT)
-- inputBind("start", INPUT_ACTION_RAGEQUIT)
-- inputBind("dpad_up", INPUT_ACTION_UP)
-- inputBind("dpad_down", INPUT_ACTION_DOWN)
-- inputBind("dpad_left", INPUT_ACTION_LEFT)
@@ -52,5 +52,5 @@ else
end
end
localeSet(DUSK_LOCALE_EN_US)
-- localeSet(DUSK_LOCALE_EN_US)
sceneSet('scene/initial.dsf')

View File

@@ -11,14 +11,20 @@ module('glm')
screenSetBackground(colorLime())
mapCamera = cameraCreate()
text = "Hello, Dusk!"
x = -35
y = 0
function sceneDispose()
end
function sceneUpdate()
end
function sceneRender()
mapCamera.position = vec3(4, 4, 4)
mapCamera.position = vec3(50, 50, 50)
cameraPushMatrix(mapCamera)
spriteBatchPush(nil, -1, -1, 1, 1, colorBlue())
textDraw(x, y, text, colorBlue())
spriteBatchFlush()
cameraPopMatrix()
end

View File

@@ -3,4 +3,5 @@
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
add_asset(TILESET minogram.png type=PALETTIZED tileWidth=6 tileHeight=10 columns=16 rows=6)# Fixes PSP rendering
add_asset(TILESET minogram.png type=ALPHA tileWidth=6 tileHeight=10 columns=16 rows=6)# Fixes PSP rendering
# add_asset(TILESET minogram.png type=PALETTIZED tileWidth=6 tileHeight=10 columns=16 rows=6)# Fixes PSP rendering