OnDraw
OnDraw

Called just before the window is refreshed.

myJAM.OnDraw=function( JAM, Target_Surface );

Parameters
  • JAM
    The JAM object which is currently running.
  • Target_Surface
    The game surface. Drawing on this will change how the game looks when it is refreshed.
Comments

Every time the window is updated, this function will be called. Through this, you can set up complex GUI elements for your game without the overhead of JAM.
Although this feature is not recomended for beginners, it can help to achieve some special effects which would otherwise be very complex or time-consuming.

Note that this may not be called every frame, especially in MIS mode. Similarly, this may be called multiple times each refresh.
This function is called during fades.



JAM © 2005 no one in partiular
Project started by David Evans in 2005