Disable hitbox debug, prevent shadowing over stats area on right

This commit is contained in:
stevenhowes
2021-04-22 21:15:24 +01:00
parent 73981e35b8
commit 5d7724d7ed
3 changed files with 8 additions and 4 deletions
Binary file not shown.
+4 -3
View File
@@ -5,9 +5,10 @@
#include "Sound.h" #include "Sound.h"
#include "Graphics.h" #include "Graphics.h"
//#define SKIP_INTRO #define SKIP_INTRO
//#define SKIP_MISSION1 #define SKIP_MISSION1
//#define SKIP_MISSION2 #define SKIP_MISSION2
#define M2_DEBUG_HITBOXES
// SWI Registers // SWI Registers
_kernel_swi_regs inreg; _kernel_swi_regs inreg;
+4 -1
View File
@@ -310,7 +310,7 @@ void game2_tick_input()
if(input_readkey(121)) if(input_readkey(121))
{ {
TilePlayer.location.X += 3 * (tick - lasttick); TilePlayer.location.X += 3 * (tick - lasttick);
if(TilePlayer.location.X > (950)) if(TilePlayer.location.X > (930))
{ {
TilePlayer.location.X = 100; TilePlayer.location.X = 100;
TilePlayer.mapoffset.X += 10; TilePlayer.mapoffset.X += 10;
@@ -416,6 +416,8 @@ int game2_tick()
game2_tick_input(); game2_tick_input();
draw_sprite("man",TilePlayer.location.X,TilePlayer.location.Y); draw_sprite("man",TilePlayer.location.X,TilePlayer.location.Y);
#ifdef M2_DEBUG_HITBOXES
draw_rectangle( draw_rectangle(
(TilePlayer.location.X + TilePlayer.hitbox_bl.X), (TilePlayer.location.X + TilePlayer.hitbox_bl.X),
(TilePlayer.location.Y + TilePlayer.hitbox_bl.Y), (TilePlayer.location.Y + TilePlayer.hitbox_bl.Y),
@@ -428,6 +430,7 @@ int game2_tick()
(TilePlayer.location.X + TilePlayer.drawbox_tr.X), (TilePlayer.location.X + TilePlayer.drawbox_tr.X),
(TilePlayer.location.Y + TilePlayer.drawbox_tr.Y) (TilePlayer.location.Y + TilePlayer.drawbox_tr.Y)
); );
#endif
return 0; return 0;
}else{ }else{
/* screen_flipbuffer(); /* screen_flipbuffer();