Beispiel #1
0
int main()
{
	_S_MAP_OBJECT screenBuf;
	map_init(&screenBuf);
	map_new(&screenBuf,16,16);

	map_PutTile(&screenBuf,6,5,4);
	map_PutTile(&screenBuf,5,5,4);
	map_PutTile(&screenBuf,4,5,4);
	map_PutTile(&screenBuf,6,6,4);
	map_PutTile(&screenBuf,5,6,4);
	map_PutTile(&screenBuf,4,6,4);
	map_PutTile(&screenBuf,6,7,4);
	map_PutTile(&screenBuf,5,7,4);
	map_PutTile(&screenBuf,4,7,4);

	_S_MAP_OBJECT humanObj;
	map_init(&humanObj);
	map_load(&humanObj,"human.dat");
	puts("\r\n-------------------------");
	map_drawTile_trn(&humanObj,5,5,&screenBuf);
	map_dump(&screenBuf,Default_Tilepalete);

	


	//map_dump(&carObj,Tilepalette);
	//map_dump(&screenBuffer,Tilepalette);


	return 0;
}
Beispiel #2
0
void Potal_Bullet_Draw(_S_Potal_Bullet_Object *pObj,_S_MAP_OBJECT *pMapBuf)
{
	switch(pObj->m_nFSM){
		case 0:
			break;
		case 1:
			map_drawTile_trn(pObj->m_pBody,(int)pObj->m_fXpos,
					(int)pObj->m_fYpos,pMapBuf);
			break;
	}
}
Beispiel #3
0
static void Draw(_S_ALIEN_OBJECT *pObj, _S_MAP_OBJECT *pBuff) 
{
	switch(pObj->m_nFSM)
	{
		case 0 :
			break;
		default :
			map_drawTile_trn(pObj->m_pBody, (int)(pObj->m_fXpos + pObj->m_fCenterX),(int)(pObj->m_fYpos + pObj->m_fCenterY),pBuff);
			break;
	}
}
Beispiel #4
0
void bullet_draw(S_BULLET_OBJECT *pObj,_S_MAP_OBJECT *pMapBuf)
{
	switch(pObj->m_nFSM) {
		case 0:
			break;
		case 1:
			map_drawTile_trn(pObj->m_pBody,
					(int)pObj->m_fXpos,
					(int)pObj->m_fYpos,
					pMapBuf);
			break;
	}
}
Beispiel #5
0
void missile_draw(_S_MISSILE_OBJECT *pObj, _S_MAP_OBJECT *pMapBuf)
{
	switch (pObj->m_nFSM) {  //0:sleep, 1:active
		case 0:
		break;

		case 1:
		map_drawTile_trn(pObj->m_pBody, (int)pObj->m_fXpos, (int)pObj->m_fYpos, pMapBuf);
		break;

	}

}
Beispiel #6
0
void plane_bullet_draw(_S_PLANE_BULLET_OBJECT *pObj,_S_MAP_OBJECT *pMapBuf)
{
	switch(pObj->m_nFSM) {
	case 0:
		break;
	case 1:
		map_drawTile_trn(pObj->m_pBody,
			(int)(pObj->m_fXpos + pObj->m_fCenterX) ,
			(int)(pObj->m_fYpos + pObj->m_fCenterY),
			pMapBuf);

		break;
	}
}
Beispiel #7
0
void Potal_Draw(_S_Potal *pObj, _S_MAP_OBJECT *pBuff)
{
	map_drawTile_trn(pObj->m_pBody,pObj->m_nXpos,pObj->m_nYpos,pBuff);
}