Class "Game"

Functions

AddDevilRoomDeal () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void AddDevilRoomDeal ( ) {: .copyable aria-label='Functions' }

AddEncounteredBoss () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void AddEncounteredBoss ( EntityTypearrow-up-right Boss, int Variant ) {: .copyable aria-label='Functions' }

AddPixelation () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void AddPixelation ( int Duration ) {: .copyable aria-label='Functions' }

Triggers the effect of the "retro vision" pill.

AddStageWithoutDamage () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void AddStageWithoutDamage ( ) {: .copyable aria-label='Functions' }

Increases the ingame counter, that keeps track of the stages you cleared without taking damage. (useful for Devil deal manipulations)

AddStageWithoutHeartsPicked () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void AddStageWithoutHeartsPicked ( ) {: .copyable aria-label='Functions' }

Increases the ingame counter, that keeps track of stages you cleared without picking up hearts.

AddTreasureRoomsVisited () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void AddTreasureRoomsVisited ( ) {: .copyable aria-label='Functions' }

BombDamage () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void BombDamage ( Vectorarrow-up-right Position, float Damage, float Radius, boolean LineCheck, Entityarrow-up-right Source, int TearFlags, int DamageFlags, boolean DamageSource ) {: .copyable aria-label='Functions' }

BombExplosionEffects () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void BombExplosionEffects ( Vectorarrow-up-right Position, float Damage, int TearFlags, Colorarrow-up-right Color, Entityarrow-up-right Source, float RadiusMult, boolean LineCheck, boolean DamageSource ) {: .copyable aria-label='Functions' }

The complete bomb explosion package: Do damage, spawn boomgraphics, and apply tearflag-based effects.

BombTearflagEffects () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void BombTearflagEffects ( Vectorarrow-up-right Position, float Radius, int TearFlags, Entityarrow-up-right Source ) {: .copyable aria-label='Functions' }

Does bomb-exclusive special effects.

ButterBeanFart () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void ButterBeanFart ( Vectorarrow-up-right Position, float Radius, Entityarrow-up-right Source, boolean ShowEffect ) {: .copyable aria-label='Functions' }

ChangeRoom () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void ChangeRoom ( int RoomIndex ) {: .copyable aria-label='Functions' }

CharmFart () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void CharmFart ( Vectorarrow-up-right Position, float Radius, Entityarrow-up-right Source ) {: .copyable aria-label='Functions' }

ClearDonationModAngel () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void ClearDonationModAngel ( ) {: .copyable aria-label='Functions' }

ClearDonationModGreed () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void ClearDonationModGreed ( ) {: .copyable aria-label='Functions' }

ClearStagesWithoutDamage () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void ClearStagesWithoutDamage ( ) {: .copyable aria-label='Functions' }

Sets the counter for stages cleared without damage to 0.

ClearStagesWithoutHeartsPicked () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void ClearStagesWithoutHeartsPicked ( ) {: .copyable aria-label='Functions' }

Sets the counter for stages cleared without picking up hearts to 0.

Darken () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void Darken ( float Darkness, int Timeout ) {: .copyable aria-label='Functions' }

DonateAngel () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void DonateAngel ( int Donate ) {: .copyable aria-label='Functions' }

DonateGreed () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void DonateGreed ( int Donate ) {: .copyable aria-label='Functions' }

End () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void End ( Ending Ending ) {: .copyable aria-label='Functions' }

remove entity from the update list (render only) void EnableEntity(Entity e); add entity back to the update list (update + render) void DisableEntity(Entity e);

Fadein () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void Fadein ( float Speed ) {: .copyable aria-label='Functions' }

Fadeout () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void Fadeout ( float Speed, FadeoutTarget Target ) {: .copyable aria-label='Functions' }

Fart () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void Fart ( Vectorarrow-up-right Position, float Radius, Entityarrow-up-right Source, float FartScale, int FartSubType ) {: .copyable aria-label='Functions' }

FinishChallenge () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void FinishChallenge ( ) {: .copyable aria-label='Functions' }

GetAmbush () {: aria-label='Functions' }

{: .abp .tooltip .badge }

Ambush GetAmbush ( ) {: .copyable aria-label='Functions' }

GetDarknessModifier () {: aria-label='Functions' }

{: .abp .tooltip .badge }

float GetDarknessModifier ( ) {: .copyable aria-label='Functions' }

GetDevilRoomDeals () {: aria-label='Functions' }

{: .abp .tooltip .badge }

int GetDevilRoomDeals ( ) {: .copyable aria-label='Functions' }

GetDonationModAngel () {: aria-label='Functions' }

{: .abp .tooltip .badge }

int GetDonationModAngel ( ) {: .copyable aria-label='Functions' }

Get the value that indicates the angel-counter of a shop-donation maschine. This Stat increases everytime you donate to a shop. A higher number grants a few advantages.

GetDonationModGreed () {: aria-label='Functions' }

{: .abp .tooltip .badge }

int GetDonationModGreed ( ) {: .copyable aria-label='Functions' }

GetFont () {: aria-label='Functions' }

{: .abp .tooltip .badge }

Fontarrow-up-right GetFont ( ) {: .copyable aria-label='Functions' }

GetFrameCount () {: aria-label='Functions' }

{: .abp .tooltip .badge }

int GetFrameCount ( ) {: .copyable aria-label='Functions' }

Returns the number of frames the gameplay is actively running. Pauses are therefore not included! 1 second equals 30 frames. This function therefore works drastically different than :::lua Isaac.GetFrameCount()

???- example "Example Code" This code returns hours, minutes, seconds, and milliseconds of the game running actively:

GetGreedBossWaveNum () {: aria-label='Functions' }

{: .abp .tooltip .badge }

int GetGreedBossWaveNum ( ) {: .copyable aria-label='Functions' }

GetGreedWavesNum () {: aria-label='Functions' }

{: .abp .tooltip .badge }

int GetGreedWavesNum ( ) {: .copyable aria-label='Functions' }

GetItemHistory () {: aria-label='Functions' }

{: .abp .tooltip .badge }

History GetItemHistory ( ) {: .copyable aria-label='Functions' }

GetItemOverlay () {: aria-label='Functions' }

{: .abp .tooltip .badge }

ItemOverlay GetItemOverlay ( ) {: .copyable aria-label='Functions' }

GetItemPool () {: aria-label='Functions' }

{: .abp .tooltip .badge }

ItemPoolarrow-up-right GetItemPool ( ) {: .copyable aria-label='Functions' }

LevelStagearrow-up-right () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void LevelStagearrow-up-right ( UserData) GetLastDevilRoomStage ( ) {: .copyable aria-label='Functions' }

???- note "Notes" Since it returns UserData, this function is unusable and therefore broken.

GetLastLevelWithDamage () {: aria-label='Functions' }

{: .abp .tooltip .badge }

LevelStagearrow-up-right GetLastLevelWithDamage ( ) {: .copyable aria-label='Functions' }

GetLastLevelWithoutHalfHp () {: aria-label='Functions' }

{: .abp .tooltip .badge }

LevelStagearrow-up-right GetLastLevelWithoutHalfHp ( ) {: .copyable aria-label='Functions' }

GetLevel () {: aria-label='Functions' }

{: .abp .tooltip .badge }

Levelarrow-up-right GetLevel ( ) {: .copyable aria-label='Functions' }

GetNearestPlayer () {: aria-label='Functions' }

{: .abp .tooltip .badge }

EntityPlayerarrow-up-right GetNearestPlayer ( Vectorarrow-up-right Pos ) {: .copyable aria-label='Functions' }

GetNumEncounteredBosses () {: aria-label='Functions' }

{: .abp .tooltip .badge }

int GetNumEncounteredBosses ( ) {: .copyable aria-label='Functions' }

GetNumPlayers () {: aria-label='Functions' }

{: .abp .tooltip .badge }

int GetNumPlayers ( ) {: .copyable aria-label='Functions' }

GetPlayer () {: aria-label='Functions' }

{: .abp .tooltip .badge }

EntityPlayerarrow-up-right GetPlayer ( int Index ) {: .copyable aria-label='Functions' }

GetRandomPlayer () {: aria-label='Functions' }

{: .abp .tooltip .badge }

EntityPlayerarrow-up-right GetRandomPlayer ( Vectorarrow-up-right Pos, float Radius ) {: .copyable aria-label='Functions' }

GetRoom () {: aria-label='Functions' }

{: .abp .tooltip .badge }

Roomarrow-up-right GetRoom ( ) {: .copyable aria-label='Functions' }

GetScreenShakeCountdown () {: aria-label='Functions' }

{: .abp .tooltip .badge }

int GetScreenShakeCountdown ( ) {: .copyable aria-label='Functions' }

GetSeeds () {: aria-label='Functions' }

{: .abp .tooltip .badge }

Seedsarrow-up-right GetSeeds ( ) {: .copyable aria-label='Functions' }

GetStagesWithoutDamage () {: aria-label='Functions' }

{: .abp .tooltip .badge }

int GetStagesWithoutDamage ( ) {: .copyable aria-label='Functions' }

GetStagesWithoutHeartsPicked () {: aria-label='Functions' }

{: .abp .tooltip .badge }

int GetStagesWithoutHeartsPicked ( ) {: .copyable aria-label='Functions' }

GetStateFlag () {: aria-label='Functions' }

{: .abp .tooltip .badge }

boolean GetStateFlag ( StateFlag StateFlag ) {: .copyable aria-label='Functions' }

GetTargetDarkness () {: aria-label='Functions' }

{: .abp .tooltip .badge }

float GetTargetDarkness ( ) {: .copyable aria-label='Functions' }

GetTreasureRoomVisitCount () {: aria-label='Functions' }

{: .abp .tooltip .badge }

int GetTreasureRoomVisitCount ( ) {: .copyable aria-label='Functions' }

GetVictoryLap () {: aria-label='Functions' }

{: .abp .tooltip .badge }

int GetVictoryLap ( ) {: .copyable aria-label='Functions' }

HasEncounteredBoss () {: aria-label='Functions' }

{: .abp .tooltip .badge }

boolean HasEncounteredBoss ( EntityTypearrow-up-right Boss, int Variant ) {: .copyable aria-label='Functions' }

HasHallucination () {: aria-label='Functions' }

{: .abp .tooltip .badge }

int HasHallucination ( ) {: .copyable aria-label='Functions' }

IsGreedMode () {: aria-label='Functions' }

{: .abp .tooltip .badge }

boolean IsGreedMode ( ) {: .copyable aria-label='Functions' }

IsPaused () {: aria-label='Functions' }

{: .abp .tooltip .badge }

boolean IsPaused ( ) {: .copyable aria-label='Functions' }

Returns true, if the game is in a state, where the player is unable to input any thing or the game logic is paused. This includes hiving the pause menu opened, being in room transitions/cutscenes or while displaying a "big book" animation.

MoveToRandomRoom () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void MoveToRandomRoom ( boolean IAmErrorRoom, int Seed ) {: .copyable aria-label='Functions' }

NextVictoryLap () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void NextVictoryLap ( ) {: .copyable aria-label='Functions' }

Render () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void Render ( ) {: .copyable aria-label='Functions' }

RerollEnemy () {: aria-label='Functions' }

{: .abp .tooltip .badge }

boolean RerollEnemy ( Entityarrow-up-right e ) {: .copyable aria-label='Functions' }

RerollLevelCollectibles () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void RerollLevelCollectibles ( ) {: .copyable aria-label='Functions' }

RerollLevelPickups () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void RerollLevelPickups ( int Seed ) {: .copyable aria-label='Functions' }

SetLastDevilRoomStage () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void SetLastDevilRoomStage ( LevelStagearrow-up-right Stage ) {: .copyable aria-label='Functions' }

SetLastLevelWithDamage () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void SetLastLevelWithDamage ( LevelStagearrow-up-right Stage ) {: .copyable aria-label='Functions' }

SetLastLevelWithoutHalfHp () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void SetLastLevelWithoutHalfHp ( LevelStagearrow-up-right Stage ) {: .copyable aria-label='Functions' }

SetStateFlag () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void SetStateFlag ( StateFlag StateFlag, boolean Val ) {: .copyable aria-label='Functions' }

ShakeScreen () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void ShakeScreen ( int Timeout ) {: .copyable aria-label='Functions' }

ShowFortune () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void ShowFortune ( ) {: .copyable aria-label='Functions' }

ShowHallucination () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void ShowHallucination ( int FrameCount, Backdrop::Backdrop HallucinationBackdrop ) {: .copyable aria-label='Functions' }

Plays the Delirium animation (Static noise intersected with past gameplay fotage), which will also change the background of the current room.

???- example "Example Code" This code emulated the effect of this function by hijacking the Delirious item effect

???+ bug "Bugs" This function does not work and will crash your game on use!

ShowRule () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void ShowRule ( ) {: .copyable aria-label='Functions' }

Spawn () {: aria-label='Functions' }

{: .abp .tooltip .badge }

Entityarrow-up-right Spawn ( EntityTypearrow-up-right Type, int Variant, Vectorarrow-up-right Position, Vectorarrow-up-right Velocity, Entityarrow-up-right Spawner, int SubType, int Seed ) {: .copyable aria-label='Functions' }

The game has two spawn functions, Game():Spawn() (this one) and Isaac.Spawn()arrow-up-right. If you need to spawn something with a specific seed, then you use Game():Spawn(). If you need to spawn something with a randomly generated seed, then use Isaac.Spawn()arrow-up-right. Most of the time, you will probably want to use Isaac.Spawn()arrow-up-right.

???- example "Example Code" This code spawns a Leech with specific seed.

SpawnEntityDesc () {: aria-label='Functions' }

{: .abp .tooltip .badge }

EntityNPCarrow-up-right SpawnEntityDesc ( Entity::EntityDesc desc, Vectorarrow-up-right Position, Entityarrow-up-right Spawner ) {: .copyable aria-label='Functions' }

SpawnParticles () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void SpawnParticles ( Vectorarrow-up-right Pos, EntityEffect::Variant ParticleType, int NumParticles, float Speed, Colorarrow-up-right Color, float Height ) {: .copyable aria-label='Functions' }

StartRoomTransition () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void StartRoomTransition ( int RoomIndex, Directionarrow-up-right Direction, RoomTransition::Animation Animation ) {: .copyable aria-label='Functions' }

???- note "Notes" Available Animation types (Discovered by "ilise rose" (@yatboim)):

???+ bug "Bugs" The Direction variable is completely ignored at all times, with the game instead calculating the direction between the two rooms itself for the animation. The two rooms are the current room and the room of the RoomIndex. It has no impact on the doors either.

StartStageTransition () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void StartStageTransition ( boolean SameStage, StageTransition::Animation Animation ) {: .copyable aria-label='Functions' }

Starts a transition animation like it`s playing when entering a trapdoor to switch between stages. Stage Transition types:

  • 0: Standard transition. Removes the playermodel before the pixel fadeout. Then plays the Stage Nightmare animation. The player starts in fetal position after the transition.

  • 1: Standard transition with pixel fadein/out, nightmare cutscene but the player model doesnt get removed and starts in the normal standing position after the transition.

  • >2: Same as 0

Update () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void Update ( ) {: .copyable aria-label='Functions' }

UpdateStrangeAttractor () {: aria-label='Functions' }

{: .abp .tooltip .badge }

void UpdateStrangeAttractor ( Vectorarrow-up-right Position ) {: .copyable aria-label='Functions' }

Variables

BlueWombParTime {: aria-label='Variables' }

{: .abp .tooltip .badge }

int BlueWombParTime {: .copyable aria-label='Variables' }

BossRushParTime {: aria-label='Variables' }

{: .abp .tooltip .badge }

int BossRushParTime {: .copyable aria-label='Variables' }

Number of frames of game time.

Challengearrow-up-right {: aria-label='Variables' }

{: .abp .tooltip .badge }

Challengearrow-up-right Challengearrow-up-right {: .copyable aria-label='Variables' }

Difficultyarrow-up-right {: aria-label='Variables' }

{: .abp .tooltip .badge }

Difficultyarrow-up-right Difficultyarrow-up-right {: .copyable aria-label='Variables' }

ScreenShakeOffset {: aria-label='Variables' }

{: .abp .tooltip .badge }

Vectorarrow-up-right ScreenShakeOffset {: .copyable aria-label='Variables' }

TimeCounter {: aria-label='Variables' }

{: .abp .tooltip .badge }

int TimeCounter {: .copyable aria-label='Variables' }

same as FrameCounter but can be modified, mostly used for timed events (bossrush, daily, ...) and not for timestepping

Last updated

Was this helpful?