📄 lgame.cpp
字号:
#include <lutils.h>
#include <stdio.h>
void lgSetHotxyMode(short mode,char *spr)
{ short len,wid;
lgetSize(&len,&wid,spr);
switch(mode)
{ case 0: lsetHotXY(0,0,spr); break;
case 1: lsetHotXY(len>>1,wid>>1,spr); break;
case 2: lsetHotXY(len>>1,wid-1,spr); break;
}
}
void lgPutSpirit(short x,short y,char *p)
{ short len,wid;
if (!p) return;
lgetSize(&len,&wid,p);
lputSpirit(x,y,p,len>>1,wid-1);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -