Add comment

This commit is contained in:
Miloslav Číž 2020-11-19 17:16:53 +01:00
parent 48780a539a
commit e26511d390
2 changed files with 5 additions and 4 deletions

6
game.h
View File

@ -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:

View File

@ -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 \