Apply a few fixes
This commit is contained in:
parent
d312cf1497
commit
2363c2b099
3 changed files with 6 additions and 4 deletions
|
@ -784,7 +784,9 @@ int main()
|
||||||
{
|
{
|
||||||
initGeneral();
|
initGeneral();
|
||||||
|
|
||||||
player.setPositionSquare(4,5);
|
// player.setPositionSquare(4,5);
|
||||||
|
player.setPositionSquare(6,4);
|
||||||
|
player.mCamera.direction = 256;
|
||||||
|
|
||||||
sprites[0] = Sprite(sprite1,10,5,1,100);
|
sprites[0] = Sprite(sprite1,10,5,1,100);
|
||||||
sprites[1] = Sprite(sprite1,14,5,1,100);
|
sprites[1] = Sprite(sprite1,14,5,1,100);
|
||||||
|
|
|
@ -852,7 +852,7 @@ int main()
|
||||||
player.setPositionSquare(6,5);
|
player.setPositionSquare(6,5);
|
||||||
player.mCamera.height = CAMERA_COLL_HEIGHT_BELOW;
|
player.mCamera.height = CAMERA_COLL_HEIGHT_BELOW;
|
||||||
|
|
||||||
player.mCamera.resolution.y = INFO_BAR_START;
|
player.mCamera.resolution.y = INFO_BAR_START + 1;
|
||||||
|
|
||||||
uint32_t previousTime = 0;
|
uint32_t previousTime = 0;
|
||||||
uint32_t dt;
|
uint32_t dt;
|
||||||
|
@ -891,7 +891,7 @@ int main()
|
||||||
)
|
)
|
||||||
shotFired = false;
|
shotFired = false;
|
||||||
}
|
}
|
||||||
else if (pokitto.cBtn())
|
else if (pokitto.bBtn())
|
||||||
{
|
{
|
||||||
shotPosition = player.mCamera.position;
|
shotPosition = player.mCamera.position;
|
||||||
shotDirection = angleToDirection(player.mCamera.direction);
|
shotDirection = angleToDirection(player.mCamera.direction);
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef RAYCAST_DEMO_GENERAL_HPP
|
#ifndef RAYCAST_DEMO_GENERAL_HPP
|
||||||
#define RAYCAST_DEMO_GENERAL_HPP
|
#define RAYCAST_DEMO_GENERAL_HPP
|
||||||
|
|
||||||
//#include "stdio.h" // for debugging raycastlibg
|
#include "stdio.h" // for debugging raycastlibg
|
||||||
|
|
||||||
#define VERTICAL_FOV UNITS_PER_SQUARE // redefine camera vertical FOV
|
#define VERTICAL_FOV UNITS_PER_SQUARE // redefine camera vertical FOV
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue