add cheat menu
This commit is contained in:
parent
8abb0ae10f
commit
2ad2d18af7
|
@ -3,6 +3,7 @@ debug.show = true;
|
|||
debug.urnames = false;
|
||||
debug.termout = true;
|
||||
debug.console = false;
|
||||
debug.cheat = false;
|
||||
|
||||
debug.fn_break = function(fn,obj = globalThis) {
|
||||
if (typeof fn !== 'function') return;
|
||||
|
|
|
@ -522,6 +522,7 @@ render.draw_sprites = true;
|
|||
render.draw_particles = true;
|
||||
render.draw_hud = true;
|
||||
render.draw_gui = true;
|
||||
render.draw_gizmos = true;
|
||||
|
||||
render.sprites = function render_sprites(gridsize = 1)
|
||||
{
|
||||
|
@ -982,8 +983,8 @@ prosperon.render = function()
|
|||
|
||||
profile.endframe();
|
||||
profile.frame("hud");
|
||||
|
||||
if (render.draw_hud) prosperon.hud();
|
||||
if (render.draw_gizmos && prosperon.gizmos) prosperon.gizmos();
|
||||
render.flush_text();
|
||||
|
||||
render.end_pass();
|
||||
|
|
Loading…
Reference in a new issue