Start debug draw
This commit is contained in:
parent
56904cabab
commit
1c6666b377
3 changed files with 119 additions and 22 deletions
17
game.h
17
game.h
|
@ -119,10 +119,8 @@ void LCR_gameInit(void)
|
|||
LCR_keyStates[i] = 0;
|
||||
|
||||
LCR_mapLoad(map1);
|
||||
|
||||
LCR_rendererInit();
|
||||
|
||||
LCR_loadImage(0); // ???
|
||||
LCR_racingInit();
|
||||
}
|
||||
|
||||
void LCR_gameEnd(void)
|
||||
|
@ -138,11 +136,22 @@ uint8_t LCR_gameStep(uint32_t time)
|
|||
|
||||
if (time >= LCR_nextRenderFrameTime)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
LCR_rendererDraw();
|
||||
|
||||
|
||||
LCR_GameUnit sss[7];
|
||||
LCR_rendererGetCameraTransform(sss,sss + 3,sss + 6);
|
||||
LCR_physicsDebugDraw(sss,sss + 3,sss[6]);
|
||||
|
||||
|
||||
LCR_nextRenderFrameTime += 1000 / LCR_SETTING_FPS;
|
||||
|
||||
LCR_SpaceUnit offsets[5];
|
||||
LCR_GameUnit offsets[5];
|
||||
|
||||
for (int i = 0; i < 5; ++i)
|
||||
offsets[i] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue