first commit
This commit is contained in:
27
main.cpp
Normal file
27
main.cpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user