Test text rendering

This commit is contained in:
YourWishes committed 2026-03-29 10:15:22 -05:00
1 parent ea898da6c2
commit 1c5e50cc4d
10 files changed
+503 -81

No files matched your search

+10 -7
View File
@@ -63,7 +63,7 @@ function cellDraw(x, y, type)
slice = cellSliceDisabled
end
spriteBatchPush(textureCell,
spriteBatchPush(
x, y,
x + tilesetCell.tileWidth, y + tilesetCell.tileHeight,
colorWhite(),
@@ -185,7 +185,8 @@ end
function sceneRender()
-- Update camera
camera.bottom = screenGetHeight()
camera.bottom = 0
camera.top = screenGetHeight()
camera.right = screenGetWidth()
shaderBind(SHADER_UNLIT)
@@ -194,11 +195,13 @@ function sceneRender()
view = cameraGetViewMatrix(camera)
shaderSetMatrix(SHADER_UNLIT, SHADER_UNLIT_VIEW, view)
spriteBatchPush(
x, y,
x + 32, y + 32,
colorWhite()
)
textDraw(10, 10, "Hello World\nHow are you?")
-- spriteBatchPush(
-- x, y,
-- x + 32, y + 32,
-- colorWhite()
-- )
-- Update mouse position
-- if INPUT_POINTER then