Audio and Sprite Wrappers

Functions to Create and use said wrappers
This commit is contained in:
Patrick Schwarzer 2025-04-13 05:07:15 +02:00
parent d220cfb9da
commit 24b94f4a59
3 changed files with 122 additions and 19 deletions

View file

@ -6,19 +6,23 @@ VERSION = 0
local test = 0
local delay = 0
local last = ""
function Load()
end
function Update(dt, curTime)
end
local sprite = Sprite("testSprites.png")
function KeyPressed(key)
if (key == "f5") then
test = test + 1
Sprite("testSprites.png")
sprite = Sprite("testSprites.png")
end
end
function Draw()
print("Loaded Sprites: " .. test, 10, 10)
sprite:Draw(100, 0)
end