Log In  


I just discovered today that when I open one of my cartridge and run it CTRL-R, the game doesn't run only show terminal with prompt on full screen with /ram/cart:_

it's seems that we can't assign _draw, _update main loop function to another function.

i.e.
_update=title_update
_draw=title_draw

does not work anymore in this latest 0.2.0 updates...WHAT'S THE BIG IDEA?



This still works, it has not been changed.


@Soupster

I just tried to call the function _draw=game_draw (i.e.) within the funtion _draw() end and it works.

if I do

function _draw()
	_draw=game
end

function game()
	cls()
	print"ok"
end

it works!

BUT IF i DO

function _init()
 _draw=game
end

function game()
	cls()
	print"ok"
end

not working...

well whe I double click on my games that use it directly to run (not load catridge) they run perfectly. ????

So these asignement of main functions loop not working anymore within the _init function.


This is probably because there is no _draw or _update function before _init() is called. If you set _draw or _update outside of _init it will work.



[Please log in to post a comment]