Render
Functions
isReflectionRender
▸ isReflectionRender(): boolean
Helper function to see if the current render callback is rendering a water reflection.
When the player is in a room with water, things will be rendered twice: once for the normal rendering, and once for the reflecting rendering. Thus, any mod code in a render callback will run twice per frame in these situations, which may be unexpected or cause bugs.
This function is typically used to early return from a render function if it returns true.
Returns
boolean
Defined in
packages/isaacscript-common/src/functions/render.ts:13
renderScaledTextOnEntity
▸ renderScaledTextOnEntity(entity
, text
, scaleX
, scaleY
): void
Parameters
Name | Type |
---|---|
entity | Entity | GridEntity |
text | string |
scaleX | float |
scaleY | float |
Returns
void
Defined in
packages/isaacscript-common/src/functions/render.ts:19
renderTextOnEntity
▸ renderTextOnEntity(entity
, text
): void
Parameters
Name | Type |
---|---|
entity | Entity | GridEntity |
text | string |
Returns
void