diff --git a/mods/main/script/main.lua b/mods/main/script/main.lua index 2846993..d5dd4ee 100644 --- a/mods/main/script/main.lua +++ b/mods/main/script/main.lua @@ -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()