Update main.lua
This commit is contained in:
parent
eae04d668c
commit
deee0734fd
@ -4,6 +4,7 @@ function main()
|
||||
texture = engine_texture_create(8,8)
|
||||
engine_rendertarget_set(texture)
|
||||
engine_rendertarget_draw_file(bp("texture/fier.rgba"))
|
||||
engine_rendertarget_set(engine_window_texture_get(window))
|
||||
|
||||
while true do
|
||||
event = engine_event_get()
|
||||
@ -20,7 +21,7 @@ end
|
||||
|
||||
lastFrame = 0
|
||||
function tick()
|
||||
engine_rendertarget_draw_texture(texture,math.random(-8,102),math.random(-8,72))
|
||||
engine_rendertarget_draw_texture(texture,math.random(-8,104),math.random(-8,72))
|
||||
engine_window_present(window)
|
||||
trackFps()
|
||||
local curFrame = engine_time_get()
|
||||
|
Loading…
Reference in New Issue
Block a user