- [NEW] Brymode
- [FIX] El switches no es resetejaven al eixir de una habitació - [NEW] [EDITOR] Es mostra el tile sobre el que està el cursor - [NEW] [EDITOR]: Es mostra el nom de l'actor sobre el que està el cursor - [FIX] Durant una escena es repinta abans de seguir al seguent punt de l'script - [NEW] [EDITOR] Es mostra la posició dels switches parpadejant
This commit is contained in:
34
data/brymode.lua
Normal file
34
data/brymode.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
brymode = {
|
||||
old_update=nil,
|
||||
return_function=nil,
|
||||
|
||||
show=function(retfun)
|
||||
brymode.old_update=update
|
||||
update=brymode.update
|
||||
brymode.return_function=retfun
|
||||
|
||||
cls(0)
|
||||
prnt("#include <stdio.h>",1,1,8)
|
||||
prnt("int main(int argc, char *argv[])",1,1+6*2,8)
|
||||
prnt("{",1,1+6*3,8)
|
||||
prnt("SDL_Init(SDL_INIT_EVERYTHING);",21,1+6*4,8)
|
||||
prnt("SDL_Window *win=",21,1+6*6,8)
|
||||
prnt("SDL_CreateWindow('Title',320,240);",29,1+6*7,8)
|
||||
prnt("SDL_Renderer *ren =",21,1+6*9,8)
|
||||
prnt("SDL_CreateRenderer(win,-1,0);",29,1+6*10,8)
|
||||
prnt("SDL_Quit();",21,1+6*12,8)
|
||||
prnt("return 0;",21,1+6*13,8)
|
||||
prnt("}",1,1+6*14,8)
|
||||
end,
|
||||
|
||||
update=function()
|
||||
--cls(0)
|
||||
|
||||
if btnp(KEY_ESCAPE) then
|
||||
if brymode.return_function then
|
||||
update=brymode.old_update
|
||||
brymode.return_function()
|
||||
end
|
||||
end
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user