add cheat menu

This commit is contained in:
John Alanbrook 2024-08-26 11:13:26 -05:00
parent 8abb0ae10f
commit 2ad2d18af7
2 changed files with 3 additions and 1 deletions

View file

@ -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;

View file

@ -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();