?? 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);
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -