Update main.lua

This commit is contained in:
Fierelier 2023-06-13 07:33:55 +02:00
parent eae04d668c
commit deee0734fd

View File

@ -4,6 +4,7 @@ function main()
texture = engine_texture_create(8,8) texture = engine_texture_create(8,8)
engine_rendertarget_set(texture) engine_rendertarget_set(texture)
engine_rendertarget_draw_file(bp("texture/fier.rgba")) engine_rendertarget_draw_file(bp("texture/fier.rgba"))
engine_rendertarget_set(engine_window_texture_get(window))
while true do while true do
event = engine_event_get() event = engine_event_get()
@ -20,7 +21,7 @@ end
lastFrame = 0 lastFrame = 0
function tick() 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) engine_window_present(window)
trackFps() trackFps()
local curFrame = engine_time_get() local curFrame = engine_time_get()