Skip to content

Commit

Permalink
chore(*): increase max numb of objects and change velocity type
Browse files Browse the repository at this point in the history
  • Loading branch information
alekmaul committed Apr 7, 2024
1 parent 024b8e4 commit c9adc1a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pvsneslib/include/snes/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@

#include <snes/snestypes.h>

#define OB_MAX 64 // total number of objects in the game
#define OB_MAX 96 /*!< total number of objects in the game */

#define OB_TYPE_MAX 64 /*!< total number of type of objects in the game */

/*! \struct t_objs
\brief object definition (64 bytes)
Expand All @@ -63,8 +65,8 @@ typedef struct
u16 height; /*!< 28 height of the object (from the square 16x16 or 32x32) */
u16 xmin; /*!< 30 min x coordinate for action of object, depends of game (ex: revert direction) */
u16 xmax; /*!< 32 max x coordinate for action of object, depends of game (ex: revert direction) */
u16 xvel; /*!< 34 x velocity */
u16 yvel; /*!< 36 y velocity */
s16 xvel; /*!< 34 x velocity */
s16 yvel; /*!< 36 y velocity */
u16 tilestand; /*!< 38 tile number object is standing on */
u16 tileabove; /*!< 40 tile number above object */
u16 tilesprop; /*!< 42 tile property stand on */
Expand Down

0 comments on commit c9adc1a

Please sign in to comment.