Apply a few fixes

This commit is contained in:
Miloslav Číž 2018-09-11 13:37:09 +02:00
parent d312cf1497
commit 2363c2b099
3 changed files with 6 additions and 4 deletions

View file

@ -784,7 +784,9 @@ int main()
{
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[1] = Sprite(sprite1,14,5,1,100);

View file

@ -852,7 +852,7 @@ int main()
player.setPositionSquare(6,5);
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 dt;
@ -891,7 +891,7 @@ int main()
)
shotFired = false;
}
else if (pokitto.cBtn())
else if (pokitto.bBtn())
{
shotPosition = player.mCamera.position;
shotDirection = angleToDirection(player.mCamera.direction);

View file

@ -12,7 +12,7 @@
#ifndef 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