update to lua template
This commit is contained in:
		@@ -1,8 +1,7 @@
 | 
				
			|||||||
-- called every frame, with constant delta time
 | 
					-- called every frame, with constant delta time
 | 
				
			||||||
function game_tick()
 | 
					function game_tick()
 | 
				
			||||||
    -- ctx.initialization_needed is true first frame and every time dynamic reload is performed
 | 
					    -- ctx.udata persists on code reload
 | 
				
			||||||
    if ctx.initialization_needed then
 | 
					    if ctx.udata == nil then
 | 
				
			||||||
        -- ctx.udata persists on reload
 | 
					 | 
				
			||||||
        ctx.udata = {}
 | 
					        ctx.udata = {}
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user