lgame.cpp
来自「ldraw_DOS游戏开发包」· C++ 代码 · 共 18 行
CPP
18 行
#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 + =
减小字号Ctrl + -
显示快捷键?