function _draw()


In game development, "draw" refers to a function that renders the game world and its objects onto the screen. The draw function can include code that displays graphics, animations, text, map, and other visual elements that make up the game's user interface. The draw function is called after the update function has updated the game state on each frame, and is important for displaying the updated state to the player. By rendering the game world on each frame, the draw function ensures that the player sees a smooth and responsive display of the game, enhancing the player's experience.

The draw function will match the update function's framerate. So if you use _update60() then _draw() will also run 60 times per second.


15 Mar 2023