mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-22 00:42:16 -05:00
Fix monster visbility
This commit is contained in:
parent
68285eebfa
commit
53301eca94
1
TODO.txt
1
TODO.txt
@ -184,6 +184,7 @@ done:
|
|||||||
- add universal corpse sprite?
|
- add universal corpse sprite?
|
||||||
- if space left, try blurring (lerp) the level background, see how it looks
|
- if space left, try blurring (lerp) the level background, see how it looks
|
||||||
- replace textures in distace with constant color for performance (setting)?
|
- replace textures in distace with constant color for performance (setting)?
|
||||||
|
- enemies close to a wall often don't get drawn
|
||||||
|
|
||||||
scratched:
|
scratched:
|
||||||
- try to make z-buffer 3 line instead of 1D, possibly like this (to keep
|
- try to make z-buffer 3 line instead of 1D, possibly like this (to keep
|
||||||
|
2
main.c
2
main.c
@ -199,7 +199,7 @@ typedef struct
|
|||||||
#define SFG_MR_TYPE(mr) \
|
#define SFG_MR_TYPE(mr) \
|
||||||
(SFG_MONSTER_INDEX_TO_TYPE(((mr).stateType & SFG_MONSTER_MASK_TYPE) >> 4))
|
(SFG_MONSTER_INDEX_TO_TYPE(((mr).stateType & SFG_MONSTER_MASK_TYPE) >> 4))
|
||||||
|
|
||||||
#define SFG_MONSTER_COORD_TO_RCL_UNITS(c) (c * 256)
|
#define SFG_MONSTER_COORD_TO_RCL_UNITS(c) ((RCL_UNITS_PER_SQUARE / 8) + c * 256)
|
||||||
#define SFG_MONSTER_COORD_TO_SQUARES(c) (c / 4)
|
#define SFG_MONSTER_COORD_TO_SQUARES(c) (c / 4)
|
||||||
|
|
||||||
#define SFG_ELEMENT_COORD_TO_RCL_UNITS(c) \
|
#define SFG_ELEMENT_COORD_TO_RCL_UNITS(c) \
|
||||||
|
Loading…
Reference in New Issue
Block a user