Create block adding functions
This commit is contained in:
parent
7e8c82fae3
commit
e2d12804d2
6 changed files with 225 additions and 18 deletions
23
debug.h
Normal file
23
debug.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#ifndef _LCR_DEBUG_H
|
||||
#define _LCR_DEBUG_H
|
||||
|
||||
#include "map.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void LCR_debugPrintCurrentMap()
|
||||
{
|
||||
puts("current map:");
|
||||
|
||||
for (int i = 0; i < LCR_currentMap.blockCount; ++i)
|
||||
{
|
||||
uint8_t x, y, z;
|
||||
|
||||
LCR_mapBlockGetCoords(LCR_currentMap.blocks + i * 4,&x,&y,&z);
|
||||
|
||||
printf(" block %d: type %d, coord %d (%d %d %d)\n",i,
|
||||
LCR_currentMap.blocks[i * 4],LCR_mapBlockGetCoordNumber(
|
||||
LCR_currentMap.blocks + i * 4),x,y,z);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue