- [NEW] Ara desde consola es poden executar funcions que no esperen arguments sense ficar els parentesi
- [NEW] wintitle(text), pa Sergi - [NEW] ara eixir a consola es amb CTRL+ESC, deixant ESC a seques lliure pa el joc (pa Sergi).
This commit is contained in:
@@ -273,7 +273,7 @@ int main(int argc,char*argv[]) {
|
||||
load(dropped_filedir);
|
||||
}
|
||||
if (mini_eve.type == SDL_EVENT_KEY_DOWN) {
|
||||
if (mini_eve.key.scancode == SDL_SCANCODE_ESCAPE) {
|
||||
if ((mini_eve.key.scancode == SDL_SCANCODE_ESCAPE) && (mini_eve.key.mod & SDL_KMOD_LCTRL) ) {
|
||||
if (lua_is_playing()) {
|
||||
lua_pause();
|
||||
//lua_quit();
|
||||
@@ -393,6 +393,10 @@ int main(int argc,char*argv[]) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void wintitle(const char* title) {
|
||||
SDL_SetWindowTitle(mini_win, title);
|
||||
}
|
||||
|
||||
void cls(uint8_t value) {
|
||||
SDL_memset(char_screen, value, screen_width*screen_height);
|
||||
if (current_mode != 0) SDL_memset(color_screen, current_color, screen_width*screen_height);
|
||||
@@ -561,8 +565,8 @@ void debugchr(const uint8_t chr) {
|
||||
int pos = cursor_x+cursor_y*screen_width;
|
||||
if (chr == 8) {
|
||||
if (cursor_x>1) {
|
||||
char_screen[pos++] = 32;
|
||||
char_screen[pos] = 32;
|
||||
char_screen[pos] = ' ';
|
||||
char_screen[pos-1] = ' ';
|
||||
cursor_x--;
|
||||
} else {
|
||||
play("c");
|
||||
|
||||
Reference in New Issue
Block a user