GameMaker Touhou Engine   Home   Downloads   Documentation


A script that draws an unsigned integer using a given sprite.

Returns: Void


_DRAW_DIGIT_INTEGER(dx, dy, dg, dw, ds, n, ci, mx)


Name Value Significance
dx <integer> The X-coordinate to draw the leftmost digit at.
dy <integer> The Y-coordinate to draw the number at.
dg* <sprite> The sprite to use.
dw <integer> The width of a single digit in dg.
ds <integer> The space between each digit in dg.
n <integer(0-)> The number to draw.
ci <integer> The index of the comma in dg. (counted from 0)
mx <integer> The maximum number to draw. The final number displayed will be n modulo mx.

*Must be in the same format as the _DIGITS... sprites.


Draw each digit one by one using _DRAW_DIGIT_SINGLE(). After every 3, draw a comma.