mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-21 08:25:05 -05:00
Add comment
This commit is contained in:
parent
48780a539a
commit
e26511d390
6
game.h
6
game.h
@ -243,12 +243,12 @@ typedef struct
|
|||||||
#define SFG_SPRITE_SIZE(size0to3) \
|
#define SFG_SPRITE_SIZE(size0to3) \
|
||||||
(((size0to3 + 3) * SFG_BASE_SPRITE_SIZE) / 4)
|
(((size0to3 + 3) * SFG_BASE_SPRITE_SIZE) / 4)
|
||||||
|
|
||||||
#define SFG_SPRITE_SIZE_PIXELS(size0to3) \
|
|
||||||
((SFG_SPRITE_SIZE(size0to3) * SFG_SPRITE_MAX_SIZE) / RCL_UNITS_PER_SQUARE)
|
|
||||||
|
|
||||||
#define SFG_SPRITE_SIZE_TO_HEIGHT_ABOVE_GROUND(size0to3) \
|
#define SFG_SPRITE_SIZE_TO_HEIGHT_ABOVE_GROUND(size0to3) \
|
||||||
(SFG_SPRITE_SIZE(size0to3) / 2)
|
(SFG_SPRITE_SIZE(size0to3) / 2)
|
||||||
|
|
||||||
|
#define SFG_SPRITE_SIZE_PIXELS(size0to3) \
|
||||||
|
((SFG_SPRITE_SIZE(size0to3) * SFG_SPRITE_MAX_SIZE) / RCL_UNITS_PER_SQUARE)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Holds information about one instance of a level item (a type of level element,
|
Holds information about one instance of a level item (a type of level element,
|
||||||
e.g. pickable items, decorations etc.). The format is following:
|
e.g. pickable items, decorations etc.). The format is following:
|
||||||
|
@ -417,7 +417,8 @@
|
|||||||
/**
|
/**
|
||||||
Says the size, in pixels, of a sprite when it is closest to the camera, which
|
Says the size, in pixels, of a sprite when it is closest to the camera, which
|
||||||
is the maximum size that can be drawn. Sprites on "weird" aspect ratios can
|
is the maximum size that can be drawn. Sprites on "weird" aspect ratios can
|
||||||
look weirdly scaled, so this option can be used to fix that.
|
look weirdly scaled, so this option can be used to fix that (typically set
|
||||||
|
horizontal screen resolution instead of vertical).
|
||||||
*/
|
*/
|
||||||
#ifndef SFG_SPRITE_MAX_SIZE
|
#ifndef SFG_SPRITE_MAX_SIZE
|
||||||
#define SFG_SPRITE_MAX_SIZE \
|
#define SFG_SPRITE_MAX_SIZE \
|
||||||
|
Loading…
Reference in New Issue
Block a user