From 2363c2b099271435fdcc6922a4d7fe0627860eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Tue, 11 Sep 2018 13:37:09 +0200 Subject: [PATCH] Apply a few fixes --- demo1.cpp | 4 +++- demo2.cpp | 4 ++-- general.hpp | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/demo1.cpp b/demo1.cpp index 555a494..ec6a58b 100644 --- a/demo1.cpp +++ b/demo1.cpp @@ -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); diff --git a/demo2.cpp b/demo2.cpp index 2b7e96f..4bb93cf 100644 --- a/demo2.cpp +++ b/demo2.cpp @@ -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); diff --git a/general.hpp b/general.hpp index e36d928..9052b75 100644 --- a/general.hpp +++ b/general.hpp @@ -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