mirror of
https://github.com/stevenhowes/CTheEscape.git
synced 2026-05-26 15:53:29 +01:00
Disable hitbox debug, prevent shadowing over stats area on right
This commit is contained in:
Binary file not shown.
@@ -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
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user