Audio and Sprite Wrappers
Functions to Create and use said wrappers
This commit is contained in:
parent
d220cfb9da
commit
24b94f4a59
3 changed files with 122 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue