#include "mini.h" int current_editor = 0; void do_terminal() { cls(0); pdebug(); } void do_sprite_editor() { cls(); sspr(0, 0, 8, 8, 8, 8, 64, 64); } void loop() { if (btnp(KEY_TAB)) { current_editor = (++current_editor)%5; } switch(current_editor) { case 0: do_terminal(); break; case 1: do_sprite_editor(); break; } }