public bool OnLeftLedge(StageData stage) { if (Math.Abs(this.x - stage.LeftEdge.x) < 0.1) if (Math.Abs(this.y - stage.LeftEdge.y) < 0.1) return true; return false; }
public static void UpdateStage() { StageNum = Memory.ReadByte(0x804C6CAE); if (StageNum != PrevStageNum) { switch (StageNum) { case 7: Stage = new YoshisIsland(); break; case 8: Stage = new FountainOfDreams(); break; case 18: Stage = new PokemonStadium(); break; case 24: Stage = new Battlefield(); break; case 25: Stage = new FinalDestination(); break; case 26: Stage = new Dreamland(); break; } PrevStageNum = StageNum; } }
public bool OnLeftLedge(StageData stage) { if (Math.Abs(this.x - stage.LeftEdge.x) < 0.1) { if (Math.Abs(this.y - stage.LeftEdge.y) < 0.1) { return(true); } } return(false); }