Skip to content

Instantly share code, notes, and snippets.

@alessonforposterity
Created April 12, 2015 04:43
Show Gist options
  • Save alessonforposterity/832da4fab11e10609dad to your computer and use it in GitHub Desktop.
Save alessonforposterity/832da4fab11e10609dad to your computer and use it in GitHub Desktop.
Abandon all hope, ye who enter here
This file has been truncated, but you can view the full file.
//Dr. Seuss once wrote, "IF." He meant, "If you give a fuck, maybe,
//JUST MAYBE, you can change this shitty world in some small way for
//the better." I might've been an writer of children's books someday,
//but instead, I decided to make this. So in lieu of The Lorax,
//let's call this The Dragon, and have my word be, "DON'T." As in,
//"Don't do something stupid like this the way I did, you jackass."
//But the truth is humans are very stubborn creatures. You probably
//won't listen to my advice and, chances are, neither will I.
//This is just an excerpt of the source code for DRAGON: A Game About
//a Dragon: http://store.steampowered.com/app/351150
//The actual file is three to four times what is shown here. But it
//works, and isn't that what matters?
//I don't know why you would ever want to use this horrendous code,
//but it is logorrhea of my own creation notwitstanding, so:
//Copyright 2012-2015 Chris Albert
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.IsolatedStorage;
using System.Xml.Serialization;
using System.Runtime.InteropServices;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Storage;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
#region using Steamworks;
using Steamworks;
#endregion
namespace AGameAboutADragon
{
/// <summary>
/// This is the main type for your game
/// </summary>
///
public class Game1 : Microsoft.Xna.Framework.Game
{
GraphicsDeviceManager graphics;
SpriteBatch spriteBatch;
DrawStages drawStages;
DrawHome drawHome;
Draw2e1 draw2e1;
Draw2e4 draw2e4;
Draw4e2 draw4e2;
Draw5e1 draw5e1;
Draw6eB draw6eB;
DrawAbyss drawAbyss;
DrawSky drawSky;
DrawWorldMap drawWorldMap;
DrawStory drawStory;
DrawTitle drawTitle;
DrawCredits drawCredits;
DrawEndPage drawEndPage;
LoadDragon loadDragon;
LoadSquire loadSquire;
LoadSheep loadSheep;
LoadRam loadRam;
LoadArcher loadArcher;
LoadCD loadCD;
LoadStampede loadStampede;
LoadHandler loadHandler;
LoadSecurity loadSecurity;
LoadXbow loadXbow;
LoadSwordmaster loadSwordmaster;
LoadBone loadBone;
LoadSax loadSax;
LoadTuba loadTuba;
LoadHazmat loadHazmat;
LoadLancer loadLancer;
LoadPikeman loadPikeman;
LoadFiresoldier loadFiresoldier;
LoadFencer loadFencer;
LoadXX loadXX;
LoadSpymaster loadSpymaster;
LoadWalker loadWalker;
LoadFlier loadFlier;
LoadExplosion loadExplosion;
LoadLavaball loadLavaball;
LoadToxicball loadToxicball;
LoadNeckbird loadNeckbird;
LoadFirefloor loadFirefloor;
LoadTentacle loadTentacle;
LoadTM061 loadBoss1;
LoadCaptain loadCaptain;
LoadAlex loadAlex;
LoadBaldwin loadBaldwin;
LoadWarden loadWarden;
LoadNinja loadNinja;
LoadGeneral loadGeneral;
LoadMech loadMech;
LoadFlyss loadFlyss;
PuzzleTruck puzzleTruck;
PuzzleWater puzzleWater;
PuzzleHovercraft puzzleHovercraft;
PuzzleBoat puzzleBoat;
PuzzleFlamewall puzzleFlamewall;
PuzzleGate puzzleGate;
Puzzle4e3top puzzle4e3top;
PuzzleBramble puzzleBramble;
PuzzleCruise puzzleCruise;
PuzzleRock puzzleRock;
Puzzle5e2 puzzle5e2;
PuzzleTower puzzleTower;
LoadGust loadGust;
DrawTreasureText drawTreasureText;
DrawWater drawWater;
LoadOcean loadOcean;
LoadWaterfall loadWaterfall;
Npc1e2 npc1e2;
Npc1e3 npc1e3;
Npc2e1 npc2e1;
Npc2e2 npc2e2;
Npc2e3 npc2e3;
Npc2e4 npc2e4;
Npc3e1 npc3e1;
Npc3eB npc3eB;
Npc4e1 npc4e1;
Npc4e2 npc4e2;
Npc4e3 npc4e3;
Npc4e4 npc4e4;
Npc5e1 npc5e1;
Npc5e2 npc5e2;
PlayStageMusic playStageMusic;
PlayWorldMusic playWorldMusic;
Play5e2Top play5e2Top;
Play5e2Bottom play5e2Bottom;
PlayStoryHappy playStoryHappy;
PlayStoryEnemy playStoryEnemy;
PlayStoryWistful playStoryWistful;
PlayStoryEndingA playStoryEndingA;
PlayStoryEndingB playStoryEndingB;
PlayStoryCredits playStoryCredits;
PlayMusicBox playMusicBox;
PlayFireSFX playFireSFX;
PlayThunderSFX playThunderSFX;
PlayIceSFX playIceSFX;
PlayAcidSFX playAcidSFX;
PlayMagicSFX playMagicSFX;
PlayWaterSFX playWaterSFX;
PlayWings playWings;
LoopThunderBlast loopThunderBlast;
LoopFlame loopFlame;
LoopAcid loopAcid;
LoopFlameAtk loopFlameAtk;
LoopSpin loopSpin;
LoopLaser loopLaser;
LoopBurrow loopBurrow;
LoopFireBreathAlt loopFireBreathAlt;
LoopIceBreathAlt loopIceBreathAlt;
ContentManager stageManager;
ContentManager storyManager;
ContentManager mapManager;
ContentManager breathSFX;
ContentManager stageBGM;
ContentManager worldBGM;
ContentManager storyBGM;
Achievements achievements;
//TRACK LIST
#region SFX List
SoundEffect musicExit, musicDefeat, musicTreasure,
sfxToggle, sfxYes, sfxNo, sfxPageflip, sfxWarp, sfxCoin,
sfxJump, sfxWaterjump, sfxDamage, sfxSlash, sfxSplash,
sfxPlink, sfxEngine, sfxFreeze,
sfxSmoke,
sfxExplosion, sfxGunshot, sfxCannon, sfxThunk,
sfxThunderProj, sfxThunderBlast, sfxInvis,
sfxLaser, sfxLaserCharge, sfxChargeShort,
sfxFireball, sfxSpear, sfxNote,
sfxExpAlt, sfxArrow, sfxDash, sfxSteam, sfxThud;
#endregion
//SPRITE LIST
#region Sprite List
Texture2D hudHP, hpNumbers, hpSlash, hudBreath, breathHUD, HPBorder,
hudCurrency, optionsNumbers, //HUD sprites
campfireSS, smokeSS, //end of stage sprites
warpSS, //warp sprite
coinSS, puffSS, plinkSS, sparkleSS, keySS, splashSS, //system sprites
explosionOutSS, explosionUpSS,
allTreasureSS, acidTreasureSS,
titlePointer, //title screen sprites
whistle, hintBubble, guideBubble, guidePause,
pauseOn, pauseSwitch, pauseInstructions, exitInstructions,
breathDesc,
whiteMatteSS, blackMatteSS; //overlays
#endregion
SaveManager save;
bool titleLoad = false;
#region Title Options
int languageType = 0;
int controlType = 0;
int healthType = 0;
int optionsPointerLoc = 0;
int checkVolume = 10;
int checkSFX = 10;
int checkLanguage = 0;
int checkControl = 0;
int checkHealth = 0;
#endregion
#region All int
int hpOne, hpTen = 0;
int breathOne, breathTen = 0;
int clawOne, clawTen = 0;
int whistle1 = 0;
int whistle2 = 0;
int whistle3 = 0;
int helpOpacity = 0;
int helpCT = 0;
int jumpWait = 0;
int toggleTutorial = 0;
int tutorialPos = 0;
int pausePos = 0;
int worldMapPointerModX = 0;
int worldMapPointerModY = 0;
int saveRes = 0;
int resNow = 0;
int resMod = 0;
int fontSetting = 0;
int titleExtraCT = 0;
int titleExtraFrame = 0;
int boss1Clean = 0;
int boss2Clean = 0;
int boss3Clean = 0;
int boss4Clean = 0;
int boss5Clean = 0;
int questHPBonus = 0;
int endpageCT = 0;
int endpageFrameX = 0;
int endpageFrameY = 0;
int haveTreasure1 = 0;
int haveTreasure2 = 0;
int haveTreasure3 = 0;
int haveTreasure4 = 0;
int haveTreasure5 = 0;
int haveTreasure6 = 0;
int haveTreasure7 = 0;
int haveTreasure8 = 0;
int haveTreasure9 = 0;
int haveTreasure10 = 0;
int haveTreasure11 = 0;
int haveTreasure12 = 0;
int haveTreasure13 = 0;
int haveTreasure14 = 0;
int haveTreasure15 = 0;
int haveTreasure16 = 0;
int haveTreasure17 = 0;
int haveTreasure18 = 0;
int haveTreasure19 = 0;
int haveTreasure20 = 0;
int haveTreasure21 = 0;
int haveTreasure22 = 0;
int haveTreasure23 = 0;
int haveTreasure24 = 0;
int haveTreasure25 = 0;
int haveTreasure26 = 0;
int houseArrowCT = 0;
int houseArrowFrame = 0;
#region light
int light1X = 0;
int light2X = 0;
int light3X = 0;
int light4X = 0;
int light1Frame = 0;
int light2Frame = 0;
int light3Frame = 0;
int light4Frame = 0;
int light1CT = 0;
int light2CT = 0;
int light3CT = 0;
int light4CT = 0;
int light1Act = 0;
int light2Act = 0;
int light3Act = 0;
int light4Act = 0;
int light1Wait = 0;
int light2Wait = 0;
int light3Wait = 0;
int light4Wait = 0;
bool light1On = false;
bool light2On = false;
bool light3On = false;
bool light4On = false;
#endregion
#region 2-1 puzzle
int gateY = 0;
int gateX = 0;
int waterRisingHeight = 0;
int puzzleCT = 0;
#endregion
#region 2-2 puzzle
int fishermanCT = 0;
int fishermanFrame = 0;
int fishermanAct = 0;
int fishermanLoc = 0;
int hoverCT = 0;
int hoverFrame = 0;
int hoverAct = 0;
int hoverHP = 60;
int hoverY = 0;
int puzzleExplosionCT = 0;
int chestAct = 0;
int flyssCT = 0;
int flyssFrame = 0;
int flyssAct = 0;
int flyssWait = 0;
#endregion
#region 2-3 puzzle
int gustCT = 0;
int gustFrame = 0;
int gustAct = 0;
int gustTimer = 0;
int gustYVel = 0;
int gustYMod = 0;
int gustAttackFrame = 0;
int gustAttackCT = 0;
int defendTimer = 0;
int sheepYVel = 0;
int sheepXVel = 0;
int sheepYPos = 0;
int sheepXPos = 0;
int sheepCT = 0;
int sheepFrame = 0;
int sheepAct = 0;
#endregion
#region 2-4 puzzle
int door1CT = 0;
int door1Frame = 0;
int door2CT = 0;
int door2Frame = 0;
int fire1Wait = 0;
int fire1CT = 0;
int fire1Frame = 0;
int fire1Act = 0;
int fire1Freeze = 0;
int fire2Wait = 0;
int fire2CT = 0;
int fire2Frame = 0;
int fire2Act = 0;
int fire2Freeze = 0;
int fire3Wait = 0;
int fire3CT = 0;
int fire3Frame = 0;
int fire3Act = 0;
int fire3Freeze = 0;
int fire4Wait = 0;
int fire4CT = 0;
int fire4Frame = 0;
int fire4Act = 0;
int fire4Freeze = 0;
int fire5Wait = 0;
int fire5CT = 0;
int fire5Frame = 0;
int fire5Act = 0;
int fire5Freeze = 0;
#endregion
#region boat
int boat1X = 0;
int boat1Y = 0;
int boat2X = 0;
int boat2Y = 0;
int boat1Vel = 0;
int boat1VelCT = 0;
int boat2Vel = 0;
int boat2VelCT = 0;
#endregion
#region 3-2 puzzle
int flameWallX = 0;
int flameWallVel = 0;
int sprinklerCT = 0;
int sprinklerFrame = 0;
int sprinkler1Frozen = 0;
int sprinkler2Frozen = 0;
int sprinkler3Frozen = 0;
int sprinkler4Frozen = 0;
int sprinkler5Frozen = 0;
int sprinkler6Frozen = 0;
int sprinkler7Frozen = 0;
int sprinkler1HP = 60;
int sprinkler2HP = 60;
int sprinkler3HP = 60;
int sprinkler4HP = 60;
int sprinkler5HP = 60;
int sprinkler6HP = 60;
int sprinkler7HP = 60;
bool s3e2enemiesOn = false;
#endregion
#region 3-3 puzzles
int guardAct = 0;
int guardFrame = 0;
int guardCT = 0;
int doorYPos = 0;
int boulderHP = 420;
int boulderCT = 0;
int boulderFrame = 0;
#endregion
#region 4-1 puzzle
int gearCT = 0;
int gearFrame = 0;
int gearAct = 0;
int gearHP = 60;
int gate4e1Y = 0;
#endregion
#region 4-2 puzzle
int cannonFarFrame = 0;
int cannonFarAct = 0;
int cannonFarCT = 0;
int cannonNearFrame = 0;
int cannonNearAct = 0;
int cannonNearCT = 0;
int genAct = 0;
int wickCT = 0;
int wickFrame = 0;
int wickAct = 0;
int wickTimer = 0;
int enemyMissileFrame = 0;
int enemyMissileCT = 0;
int enemyMissileTimer = 0;
int enemyMissileX = 0;
int enemyMissileYNear = 0;
int enemyMissileYFar = 0;
int playerMissleCT = 0;
int playerMissileFrame = 0;
int playerMissileYNear = 0;
int playerMissileYFar = 0;
int starX = 0;
int starY = 0;
int starCT = 0;
int starFrame = 0;
#endregion
#region 4-3 Variables
int floor1CT = 0;
int floor1Frame = 0;
int floor1Wait = 0;
int floor1Dur = 0;
int floor1Act = 0;
int floor2CT = 0;
int floor2Frame = 0;
int floor2Wait = 0;
int floor2Dur = 0;
int floor2Act = 0;
int floor3CT = 0;
int floor3Frame = 0;
int floor3Wait = 0;
int floor3Dur = 0;
int floor3Act = 0;
int brambleHP = 180;
int brambleCT = 0;
int brambleFrame = 0;
int floodgateHP = 60;
int floodgateY = 0;
#endregion
#region 4-4 puzzle
int brambleAHP = 120;
int brambleAFreeze = 120;
int brambleACT = 0;
int brambleAFrame = 0;
int brambleBHP = 180;
int brambleBCT = 0;
int brambleBFrame = 0;
#endregion
#region 5-1
int barrierCT, barrierFrame = 0;
#endregion
#region 5-2 puzzle
int carHP = 0;
int carCT = 0;
int carFrame = 0;
int carAct = 0;
int carXVel = 0;
int carXPos = 0;
int defenderXPos = 0;
int defenderCT = 0;
int defenderFrame = 0;
int defenderAct = 0;
int defenderFreezeOpacity = 0;
int defenderFaceRMod = 0;
int spyCT = 0;
int spyFrame = 0;
int spyAct = 0;
int spyActMod = 0;
int spyHP = 1;
int spyTreasureLocMod = 0;
int spyWait = 0;
int daggerCT = 0;
int daggerFrame = 0;
int dagger1Act = 2;
int dagger2Act = 0;
int dagger3Act = 1;
int dagger1XPos = 0;
int dagger1YPos = 0;
int dagger1XVel = 0;
int dagger1YVel = 0;
int dagger2XPos = 0;
int dagger2YPos = 0;
int dagger2XVel = 0;
int dagger2YVel = 0;
int dagger3XPos = 0;
int dagger3YPos = 0;
int dagger3XVel = 0;
int dagger3YVel = 0;
bool e6Melee = false;
bool e7Melee = false;
bool e8Melee = false;
bool e6projA = false;
bool e7projA = false;
bool e8projA = false;
bool e6projB = false;
bool e7projB = false;
bool e8projB = false;
#endregion
#region 6-1 puzzle
int magicWallCT = 0;
int magicWallFrame = 0;
int wallOpacity1 = 255;
int wallOpacity2 = 255;
int wallOpacity3 = 255;
int wallColor1 = 0;
int wallColor2 = 0;
int wallColor3 = 0;
int statue1CT = 0;
int statue1Frame = 0;
int statue1HP = 120;
int statue2CT = 0;
int statue2Frame = 0;
int statue2HP = 0;
int statue3CT = 0;
int statue3Frame = 0;
int statue3HP = 0;
int torchCT = 0;
int torchFrame = 0;
int torch1Act = 0;
int torch2Act = 0;
int torch3Act = 0;
int torch4Act = 0;
int torch5Act = 0;
int torch6Act = 0;
int torch7Act = 0;
int torch8Act = 0;
int torch9Act = 0;
int torch10Act = 0;
int torch11Act = 0;
int torch12Act = 0;
int torch13Act = 0;
int torch14Act = 0;
int torch15Act = 0;
int torch16Act = 0;
int torch17Act = 0;
int waterTowerCT = 0;
int waterTowerFrame = 0;
int water1Act = 0;
int water2Act = 0;
int water1HP = 60;
int water2HP = 60;
#endregion
#region 6-B not boss
int foothold1Frame = 2;
int foothold2CT = 0;
int foothold2Frame = 0;
int foothold3CT = 0;
int foothold3Frame = 0;
int starlightCT = 0;
int starlightFrame = 0;
int starlightX = 0;
int starlightY = 0;
int alienCannon1CT = 0;
int alienCannon1Frame = 0;
int alienCannon1Act = 0;
int alienCannon1Facing = 0;
int alienCannon1Reload = 0;
int alienDolphinVelCT1 = 0;
int alienDolphinX1 = 0;
int alienDolphinY1 = 0;
int alienDolphinXVel1 = 0;
int alienDolphinYVel1 = 0;
int alienCannon2CT = 0;
int alienCannon2Frame = 0;
int alienCannon2Act = 0;
int alienCannon2Facing = 0;
int alienCannon2Reload = 0;
int alienDolphinVelCT2 = 0;
int alienDolphinX2 = 0;
int alienDolphinY2 = 0;
int alienDolphinXVel2 = 0;
int alienDolphinYVel2 = 0;
int alienCannon3CT = 0;
int alienCannon3Frame = 0;
int alienCannon3Act = 0;
int alienCannon3Facing = 0;
int alienCannon3Reload = 0;
int alienDolphinVelCT3 = 0;
int alienDolphinX3 = 0;
int alienDolphinY3 = 0;
int alienDolphinXVel3 = 0;
int alienDolphinYVel3 = 0;
int alienCannon4CT = 0;
int alienCannon4Frame = 0;
int alienCannon4Act = 0;
int alienCannon4Facing = 0;
int alienCannon4Reload = 0;
int alienDolphinVelCT4 = 0;
int alienDolphinX4 = 0;
int alienDolphinY4 = 0;
int alienDolphinXVel4 = 0;
int alienDolphinYVel4 = 0;
int dolphin1CT = 0;
int dolphin1Frame = 0;
int dolphin2CT = 0;
int dolphin2Frame = 0;
int dolphin3CT = 0;
int dolphin3Frame = 0;
int dolphin4CT = 0;
int dolphin4Frame = 0;
int dolphin1Act = 0;
int dolphin2Act = 0;
int dolphin3Act = 0;
int dolphin4Act = 0;
int e6projB_X = 0;
int e6projB_Y = 0;
int e6projBVel = 0;
int e6projC_X = 0;
int e6projC_Y = 0;
int e6projCVel = 0;
bool e6projectileB = false;
bool e6projectileC = false;
int e7projB_X = 0;
int e7projB_Y = 0;
int e7projBVel = 0;
int e7projC_X = 0;
int e7projC_Y = 0;
int e7projCVel = 0;
bool e7projectileB = false;
bool e7projectileC = false;
int e8projB_X = 0;
int e8projB_Y = 0;
int e8projBVel = 0;
int e8projC_X = 0;
int e8projC_Y = 0;
int e8projCVel = 0;
bool e8projectileB = false;
bool e8projectileC = false;
int e9projB_X = 0;
int e9projB_Y = 0;
int e9projBVel = 0;
int e9projC_X = 0;
int e9projC_Y = 0;
int e9projCVel = 0;
bool e9projectileB = false;
bool e9projectileC = false;
int e10projB_X = 0;
int e10projB_Y = 0;
int e10projBVel = 0;
int e10projC_X = 0;
int e10projC_Y = 0;
int e10projCVel = 0;
bool e10projectileB = false;
bool e10projectileC = false;
#endregion
#region Obstacles
int obs1X = 0;
int obs1Y = 0;
int obs1XVel = 0;
int obs1YVel = 0;
int obs1CT = 0;
int obs1Frame = 0;
int obs1Act = 0;
int obs1Wait = 0;
int obs1FreezeCT = 0;
int obs1FreezeColor = 0;
int obs2X = 0;
int obs2Y = 0;
int obs2XVel = 0;
int obs2YVel = 0;
int obs2CT = 0;
int obs2Frame = 0;
int obs2Act = 0;
int obs2Wait = 0;
int obs2FreezeCT = 0;
int obs2FreezeColor = 0;
int obs3X = 0;
int obs3Y = 0;
int obs3XVel = 0;
int obs3YVel = 0;
int obs3CT = 0;
int obs3Frame = 0;
int obs3Act = 0;
int obs3Wait = 0;
int obs3FreezeCT = 0;
int obs3FreezeColor = 0;
int obs4X = 0;
int obs4Y = 0;
int obs4XVel = 0;
int obs4YVel = 0;
int obs4CT = 0;
int obs4Frame = 0;
int obs4Act = 0;
int obs4Wait = 0;
int obs4FreezeCT = 0;
int obs4FreezeColor = 0;
int obs5X = 0;
int obs5Y = 0;
int obs5XVel = 0;
int obs5YVel = 0;
int obs5CT = 0;
int obs5Frame = 0;
int obs5Act = 0;
int obs5Wait = 0;
int obs5FreezeCT = 0;
int obs5FreezeColor = 0;
int obs6X = 0;
int obs6Y = 0;
int obs6XVel = 0;
int obs6YVel = 0;
int obs6CT = 0;
int obs6Frame = 0;
int obs6Act = 0;
int obs6Wait = 0;
int obs6FreezeCT = 0;
int obs6FreezeColor = 0;
int obs7X = 0;
int obs7Y = 0;
int obs7XVel = 0;
int obs7YVel = 0;
int obs7CT = 0;
int obs7Frame = 0;
int obs7Act = 0;
int obs7Wait = 0;
int obs7FreezeCT = 0;
int obs7FreezeColor = 0;
int obs8X = 0;
int obs8Y = 0;
int obs8XVel = 0;
int obs8YVel = 0;
int obs8CT = 0;
int obs8Frame = 0;
int obs8Act = 0;
int obs8Wait = 0;
int obs8FreezeCT = 0;
int obs8FreezeColor = 0;
int obs9X = 0;
int obs9Y = 0;
int obs9XVel = 0;
int obs9YVel = 0;
int obs9CT = 0;
int obs9Frame = 0;
int obs9Act = 0;
int obs9Wait = 0;
int obs9FreezeCT = 0;
int obs9FreezeColor = 0;
int obs10X = 0;
int obs10Y = 0;
int obs10XVel = 0;
int obs10YVel = 0;
int obs10CT = 0;
int obs10Frame = 0;
int obs10Act = 0;
int obs10Wait = 0;
int obs10FreezeCT = 0;
int obs10FreezeColor = 0;
#endregion
#region Wealth var
int oneNow = 0;
int tenNow = 0;
int hundNow = 0;
int thouNow = 0;
int tenkNow = 0;
int hundkNow = 0;
int oneTotal = 0;
int tenTotal = 0;
int hundTotal = 0;
int thouTotal = 0;
int tenkTotal = 0;
int hundkTotal = 0;
#endregion
#region whistle
int whistleRandom = -1;
int note1Measure = 0;
int note1Beat = 0;
int note1xPos = 0;
int note1yPos = 0;
int note1xVel = 0;
int note1yVel = -2;
int note2Measure = 0;
int note2Beat = 0;
int note2xPos = 0;
int note2yPos = 0;
int note2xVel = 0;
int note2yVel = -2;
int note3Measure = 0;
int note3Beat = 0;
int note3xPos = 0;
int note3yPos = 0;
int note3xVel = 0;
int note3yVel = -2;
int note4Measure = 0;
int note4Beat = 0;
int note4xPos = 0;
int note4yPos = 0;
int note4xVel = 0;
int note4yVel = -2;
int note1CT = 0;
int note2CT = 0;
int note3CT = 0;
int note4CT = 0;
#endregion
#region puzzle flash
int puzzle1Opacity = 255;
int puzzle2Opacity = 255;
int puzzle3Opacity = 255;
int puzzle4Opacity = 255;
int puzzle5Opacity = 255;
int puzzle6Opacity = 255;
int puzzle7Opacity = 255;
#endregion
Random generateRandom = new Random();
int floor1y, floor2y, floor3y, floor4y, floor5y, floor6y, floor7y, floor8y,
floor9y, floor10y, floor11y, floor12y, floor13y, floor14y, floor15y, floor16y,
floor17y, floor18y, floor19y, floor20y, floor21y, floor22y, floor23y, floor24y,
floor25y, floor26y, floor27y, floor28y, floor29y, floor30y, floor31y, floor32y,
floor33y, floor34y, floor35y, floor36y, floor37y, floor38y, floor39y, floor40y,
floor41y, floor42y, floor43y, floor44y, floor45y, floor46y, floor47y, floor48y,
floor49y, floor50y,
floor51y, floor52y, floor53y, floor54y, floor55y, floor56y, floor57y,
floor58y, floor59y, floor60y, floor61y, floor62y, floor63y, floor64y, floor65y,
floor66y, floor67y, floor68y, floor69y, floor70y, floor71y, floor72y, floor73y,
floor74y, floor75y, floor76y, floor77y, floor78y, floor79y, floor80y, floor81y,
floor82y, floor83y, floor84y, floor85y, floor86y, floor87y, floor88y, floor89y,
floor90y, floor91y, floor92y, floor93y, floor94y, floor95y, floor96y, floor97y,
floor98y, floor99y, floor100y,
floor101y, floor102y, floor103y, floor104y, floor105y, floor106y,
floor107y, floor108y, floor109y, floor110y, floor111y, floor112y, floor113y,
floor114y, floor115y, floor116y, floor117y, floor118y, floor119y, floor120y,
floor121y, floor122y, floor123y, floor124y, floor125y, floor126y, floor127y,
floor128y, floor129y, floor130y, floor131y, floor132y, floor133y, floor134y,
floor135y, floor136y, floor137y, floor138y, floor139y, floor140y, floor141y,
floor142y, floor143y, floor144y, floor145y, floor146y, floor147y, floor148y,
floor149y, floor150y,
floor151y, floor152y, floor153y, floor154y, floor155y, floor156y,
floor157y, floor158y, floor159y, floor160y, floor161y, floor162y, floor163y,
floor164y, floor165y, floor166y, floor167y, floor168y, floor169y, floor170y,
floor171y, floor172y, floor173y, floor174y, floor175y, floor176y, floor177y,
floor178y, floor179y, floor180y, floor181y, floor182y, floor183y, floor184y,
floor185y, floor186y, floor187y, floor188y, floor189y, floor190y, floor191y,
floor192y, floor193y, floor194y, floor195y, floor196y, floor197y, floor198y,
floor199y, floor200y = 0;
float volume = 1.0f;
float tempVolume = 1.0f;
float tempVolumeA = 1.0f;
float tempVolumeB = 1.0f;
float pauseVolume = 1.0f;
float sfxVolume = 1.0f;
int stageCT = 0;
int splashInLocX = 0;
int splashInLocY = 0;
int splashOutLocX = 0;
int splashOutLocY = 0;
int waveCT = 0;
int waveFrame = 0;
int acidFrame = 0;
int slowWaterFrame = 0;
int slowWaterCT = 0;
int spikeDamage = 0;
int splashInCT = 0;
int splashInFrame = 0;
int splashOutCT = 0;
int splashOutFrame = 0;
int independentBackgroundXY = 0;
int waterLimit1, waterLimit2 = 0;
int breathTypeSix = 0;
int waterRisingPos = 0;
int obstacle1x, obstacle2x, obstacle3x, obstacle4x, obstacle5x, obstacle6x,
obstacle7x, obstacle8x, obstacle9x, obstacle10x = 0;
int obstacle1y, obstacle2y, obstacle3y, obstacle4y, obstacle5y, obstacle6y,
obstacle7y, obstacle8y, obstacle9y, obstacle10y = 0;
int waterfallCT = 0;
int waterfallFrame = 0;
int waterfall1Act = 0;
int waterfall2Act = 0;
int poolCT = 0;
int poolFrame = 0;
int houseVarAct = 0;
int dkcFall = 0;
//Title screen int
#region Title Screen int
int logoWait = 0; //title screen timer
int pointerX = 250; //title screen pointer X loc
int pointerY = 285; //title screen point Y loc
int titleTimer = 0; //title frame CT
int titleFrame = 0; //title background frame
int pointerLoc = 0; //determines option highlighted on main menu
int titleY = -400;
int titleFrameX = 0;
int titleFrameY = 0;
int titleCT = 0;
int optionsPointerX = 550;
int optionsPointerY = 285;
#endregion
//World map int
#region World Map Position int
int mapGridX = 5; //pos on map - see notes
int mapGridY = 1; //pos on map - see notes
int recallMapPosX = 870; //area vector2 X + 20
int recallMapPosY = 285; //area vector2 Y + 35
int mapFrame = 0;
int mapCT = 0;
int exitFrame = 0;
int worldMapCT = 0;
int worldMapFrame = 0;
#endregion
//HUD int
#region HUD int
int hpPip1 = 1;
int hpPip2 = 1;
int hpPip3 = 1;
int hpPip4 = 1;
int hpPip5 = 1;
int hpPip6 = 1;
int breathPip1 = 0;
int breathPip2 = 0;
int breathPip3 = 0;
int breathPip4 = 0;
int breathPip5 = 0;
int breathPip6 = 0;
int breathPip7 = 0;
int breathPip8 = 0;
int breathPip9 = 0;
int breathPip10 = 0;
int breathPip11 = 0;
int breathPip12 = 0;
#endregion
//Stage end int
#region Stage End int
int smokeFrame = 0;
int smokeCT = 0;
int fireFrame = 0;
int fireCT = 0;
int stageEndCT = 0;
#endregion
//Dragon animation and player input
#region Animation System int
int drgnFrame = 0; //DRAGON frame of animation based on drgnCT
int drgnAction = 0; //DRAGON sprite action on Y axis
int drgnX = 0; //DRAGON X pos
int drgnY = 0; //DRAGON Y pos
int drgnCT = 0; //cycles DRAGON frame of animation when drgnCT=6 --> 10
animations per second
int drgnY_CT = 0; //negative Y velocity++ when Y_CT=6
int drgnXvel = 2; //DRAGON knockback speed
int drgnYvel = 0; //DRAGON current Y velocity
int drgnDashing = 1; //DRAGON running frame CT divisor
#endregion
#region Core Stat int
int drgnHPMax = 6; //DRAGON HP
int drgnHPNow = 6; //DRAGON current HP
int drgnHPBonus = 0; //+HP from gold
int drgnHPTreasure1 = 0; //+HP from treasure
int drgnHPTreasure2 = 0;
int drgnHPLV = 0; //+HP from XP
int drgnHPXP = 0; //increases drgnHPLV
int drgnFlyMax = 120; //duration of flight
int drgnFlyNow = 0; //current duration of flight
int drgnFlyBonus = 0; //+drgnFlyMax from gold
int drgnFlyTreasure1 = 0; //+drgnFlyMax from treasure
int drgnFlyTreasure2 = 0;
int drgnFlyTreasure3 = 0;
int drgnFlyTreasure4 = 0;
int drgnFlyLV = 0; //+drgnFlyMax from XP
int drgnFlyXP = 0; //increases drgnFlyLV
int breathFrame = 0;
int breathMax = 300; //duration of breath
int breathNow = 300; //current duration of breath
int breathMaxBonus = 0; //+breathMax from gold
int breathMaxTreasure1 = 0; //+breathMax from treasure
int breathMaxTreasure2 = 0;
int breathMaxTreasure3 = 0;
int breathMaxLV = 0; //+breathMax from XP
int breathMaxXP = 0; //increases breathmaxLV
int breathDmg = 1; //damage of breath on hitbox collision
int breathDmgBonus = 0; //+breath damage from gold
int breathDmgTreasure1 = 0; //+breath damage from treasure
int breathDmgTreasure2 = 0;
int breathLV = 0; //+breath damage from XP
int breathXP = 0; //increases breathLV
int breathX = 110; //x-pos of breath attack
int breathY = 0; //y-pos of breath attack
int breathType = 0; //breath element (0 = fire, 1 = thunder, 2 = ice, 3 =
acid, 4 = smoke)
int breathDir = 0; //direction breath facing L or R (5 = L)
int breathTimer = 0; //counts up to breathCycle
int breathCycleBonus = 0; //decreases wait time from gold
int breathCycleTreasure = 0; //decreases wait time from treasure
int clawFrame = 0; //claw frame of animation
int clawDmg = 3; //damage of claw on hitbox collision
int clawDmgBonus = 0; //+claw damage from gold
int clawDmgTreasure1 = 0; //+claw damage from treasure
int clawDmgTreasure2 = 0;
int clawLV = 0; //+claw damage from XP
int clawXP = 0; //increases clawLV
int clawTimer = 0; //claw repeat rate
int clawSize = 0; //determines claw size on sprite sheet
int clawDir = 0; //determines claw facing L or R (2 = L)
int clawX = 127; //x-pos of claw attack
int clawY = 0; //y-pos of claw attack
#endregion
#region Additional Treasure int
int freezeTreasure = 1; //doubles duration of freeze
int freezeTimeBonus = 0;
int breathCritBonus = 1;
int spikeDRBonus = 0;
int spikeDRTreasure = 0;
int drgnDRTreasure1 = 0; //decreases damage taken
int drgnDRTreasure2 = 0;
int drgnDRBonus = 0;
int preserveGP = 0;
int acidArmorRedBonus = 0;
int acidArmorRedTreasure = 0;
int EXPReducer = 1;
int treasureShineCT = 0;
int treasureShineFrame = 0;
int treasurePickUpCT = 0;
#endregion
//dragon sprite int: facingdir, waittimer, damage done, damage received,
etc.
#region Dragon Sprite System int
int drgnFacingDir = 0; //if DRAGON is facing right or left, increase y-pos
on sprite sheet
int drgnWaitTimer = 0; //if player touches nothing, DRAGON's idle animation
int drgnInvTimer = 0; //counts DRAGON's invincibility franes
int drgnInvOpacity = 255; //makes DRAGON blink while invincible
int drgnKnockbackTimer = 0;
int totalDamage = 0;
int drgnHitTimer = 0;
int drgnDamageTaken = 0;
int damageCheck = 0;
int ducking = 1;
int duckingYMod = 0;
int clawhitboxsize = 60;
int clawhitboxmod = 0;
int drgnFacingHitbox = 0;
int clawCT = 0;
#endregion
//GP int
#region GP int
int goldNow = 0;
int goldAvailable = 0;
int goldTotal = 0;
#endregion
//level variables
#region Level Up Menu int
int atkLevel = 0;
int defLevel = 0;
int sptLevel = 0;
int atkPrice = 500;
int defPrice = 500;
int sptPrice = 500;
int levelPointerX = 0;
int levelPointerY = 0;
#endregion
//menu int
#region Menu int
int menuPos = 0;
int menuFrameStr = 0;
int menuFrameDef = 0;
int menuFrameSpt = 0;
int menuFrameBack = 0;
#endregion
//storybook int
#region Storybook int
int page1Depth = 0;
int storyFGFrameX1 = 0;
int storyFGFrameY1 = 0;
int page2Depth = 0;
int storyFGFrameX2 = 0;
int storyFGFrameY2 = 0;
int page3Depth = 0;
int storyFGFrameX3 = 0;
int storyFGFrameY3 = 0;
int page4Depth = 0;
int storyFGFrameX4 = 0;
int storyFGFrameY4 = 0;
int page5Depth = 0;
int storyFGFrameX5 = 0;
int storyFGFrameY5 = 0;
int page6Depth = 0;
int storyFGFrameX6 = 0;
int storyFGFrameY6 = 0;
int page7Depth = 0;
int storyFGFrameX7 = 0;
int storyFGFrameY7 = 0;
int storyTextFrameX = 0;
int storyTextFrameY = 0;
int storyTextTotal = 0;
int storyFGFrameCT = 0;
int pageTurnSFXWait = 0;
#endregion
//NPC CT
#region NPC int
int npc1Act = 0;
int npc1Frame = 0;
int npc1CT = 0;
int npc1VarAct = 0;
int npc1Facing = 0;
bool npc1FaceR = false;
int npc2Act = 0;
int npc2Frame = 0;
int npc2CT = 0;
int npc2VarAct = 0;
bool npc2FaceR = false;
int npc3Act = 0;
int npc3Frame = 0;
int npc3CT = 0;
int npc3VarAct = 0;
bool npc3FaceR = false;
int npc4Act = 0;
int npc4Frame = 0;
int npc4CT = 0;
int npc4VarAct = 0;
bool npc4FaceR = false;
int npc5Act = 0;
int npc5Frame = 0;
int npc5CT = 0;
int npc5VarAct = 0;
int npc6Act = 0;
int npc6Frame = 0;
int npc6CT = 0;
int npc6VarAct = 0;
int npc7Act = 0;
int npc7Frame = 0;
int npc7CT = 0;
int npc7VarAct = 0;
int npc8Act = 0;
int npc8Frame = 0;
int npc8CT = 0;
int npc8VarAct = 0;
int npc9Act = 0;
int npc9Frame = 0;
int npc9CT = 0;
int npc9VarAct = 0;
int npcQuest = 0;
#endregion
//enemy HP, position, CT. etc.
#region Enemy int
int e1HP = 0; //enemy 1 HP
int e1arm = 0; //enemy 1 armor
int e1CT = 0; //enemy 1 frame counter
int e1Y_CT = 0; //enemy 1 velocity timer
int e1timer = 0; //enemy 1 action timer
int e1invTimer = 0; //enemy 1 invincibility timer
int e1X = 0; //enemy 1 X-pos
int e1Y = 0; //enemy 1 Y-pos
int e1Yvel = 0; //enemy 1 Y-velocity
int e1R = 0; //enemy 1 -R value
int e1G = 0; //enemy 1 -G value
int e1Opacity = 255; //enemy 1 opacity
int e1frame = 0; //determines frame of animation for enemy 1
int e1act = 0; //determines type of animation (move, wait, attack, etc.)
int e1facing = 0; //determines direction enemy 1 is facing
int e1projA_X = 0; //determines enemy 1's projectile A X-pos
int e1projA_Y = 0; //determines enemy 1's projectile A Y-pos
int e1projA_frame = 0; //determines e1 projectile A frame of animation
int e1projA_dir = 0; //determines e1 projectile A orientation
int e1invBlink = 255; //makes e1 blink when invulnerable
int e1knockbackTimer = 0;
int e1hitTimer = 0;
int e1Attack = 0;
int e1armor = 0;
int e1armorRed = 0;
int e1FreezeColor = 0;
int e1FreezeCT = 0;
int e1smokeCT = 0;
int e1smokeFrame = 0;
int e1coinValue = 0;
int e1coinCT = 0;
int e1coinFrame = 0;
int e1coinType = 0;
int e1FireVul = 0;
int e1BoltVul = 0;
int e1AcidVul = 0;
int e1altAnimCT = 0;
int e2HP = 0;
int e2arm = 0;
int e2CT = 0;
int e2Y_CT = 0;
int e2timer = 0;
int e2invTimer = 0;
int e2X = 0;
int e2Y = 0;
int e2Yvel = 0;
int e2R = 0;
int e2G = 0;
int e2Opacity = 255;
int e2frame = 0;
int e2act = 0;
int e2facing = 0;
int e2projA_X = 0;
int e2projA_Y = 0;
int e2projA_frame = 0;
int e2projA_dir = 0;
int e2invBlink = 255;
int e2knockbackTimer = 0;
int e2hitTimer = 0;
int e2Attack = 0;
int e2armor = 0;
int e2armorRed = 0;
int e2FreezeColor = 0;
int e2FreezeCT = 0;
int e2smokeCT = 0;
int e2smokeFrame = 0;
int e2coinValue = 0;
int e2coinCT = 0;
int e2coinFrame = 0;
int e2coinType = 0;
int e2FireVul = 0;
int e2BoltVul = 0;
int e2AcidVul = 0;
int e2altAnimCT = 0;
int e3HP = 0;
int e3arm = 0;
int e3CT = 0;
int e3Y_CT = 0;
int e3timer = 0;
int e3invTimer = 0;
int e3X = 0;
int e3Y = 0;
int e3Yvel = 0;
int e3R = 0;
int e3G = 0;
int e3Opacity = 255;
int e3frame = 0;
int e3act = 0;
int e3facing = 0;
int e3projA_X = 0;
int e3projA_Y = 0;
int e3projA_frame = 0;
int e3projA_dir = 0;
int e3invBlink = 255;
int e3knockbackTimer = 0;
int e3hitTimer = 0;
int e3Attack = 0;
int e3armor = 0;
int e3armorRed = 0;
int e3FreezeColor = 0;
int e3FreezeCT = 0;
int e3smokeCT = 0;
int e3smokeFrame = 0;
int e3coinValue = 0;
int e3coinCT = 0;
int e3coinFrame = 0;
int e3coinType = 0;
int e3FireVul = 0;
int e3BoltVul = 0;
int e3AcidVul = 0;
int e3altAnimCT = 0;
int e4HP = 0;
int e4arm = 0;
int e4CT = 0;
int e4Y_CT = 0;
int e4timer = 0;
int e4invTimer = 0;
int e4X = 0;
int e4Y = 0;
int e4Yvel = 0;
int e4R = 0;
int e4G = 0;
int e4Opacity = 255;
int e4frame = 0;
int e4act = 0;
int e4facing = 0;
int e4projA_X = 0;
int e4projA_Y = 0;
int e4projA_frame = 0;
int e4projA_dir = 0;
int e4invBlink = 255;
int e4knockbackTimer = 0;
int e4hitTimer = 0;
int e4Attack = 0;
int e4armor = 0;
int e4armorRed = 0;
int e4FreezeColor = 0;
int e4FreezeCT = 0;
int e4smokeCT = 0;
int e4smokeFrame = 0;
int e4coinValue = 0;
int e4coinCT = 0;
int e4coinFrame = 0;
int e4coinType = 0;
int e4FireVul = 0;
int e4BoltVul = 0;
int e4AcidVul = 0;
int e4altAnimCT = 0;
int e5HP = 0;
int e5arm = 0;
int e5CT = 0;
int e5Y_CT = 0;
int e5timer = 0;
int e5invTimer = 0;
int e5X = 0;
int e5Y = 0;
int e5Yvel = 0;
int e5R = 0;
int e5G = 0;
int e5Opacity = 255;
int e5frame = 0;
int e5act = 0;
int e5facing = 0;
int e5projA_X = 0;
int e5projA_Y = 0;
int e5projA_frame = 0;
int e5projA_dir = 0;
int e5invBlink = 255;
int e5knockbackTimer = 0;
int e5hitTimer = 0;
int e5Attack = 0;
int e5armor = 0;
int e5armorRed = 0;
int e5FreezeColor = 0;
int e5FreezeCT = 0;
int e5smokeCT = 0;
int e5smokeFrame = 0;
int e5coinValue = 0;
int e5coinCT = 0;
int e5coinFrame = 0;
int e5coinType = 0;
int e5FireVul = 0;
int e5BoltVul = 0;
int e5AcidVul = 0;
int e5altAnimCT = 0;
int e6HP = 0;
int e6arm = 0;
int e6CT = 0;
int e6Y_CT = 0;
int e6timer = 0;
int e6invTimer = 0;
int e6X = 0;
int e6Y = 0;
int e6Yvel = 0;
int e6R = 0;
int e6G = 0;
int e6Opacity = 255;
int e6frame = 0;
int e6act = 0;
int e6facing = 0;
int e6projA_X = 0;
int e6projA_Y = 0;
int e6projA_frame = 0;
int e6projA_dir = 0;
int e6invBlink = 255;
int e6knockbackTimer = 0;
int e6hitTimer = 0;
int e6Attack = 0;
int e6armor = 0;
int e6armorRed = 0;
int e6FreezeColor = 0;
int e6FreezeCT = 0;
int e6smokeCT = 0;
int e6smokeFrame = 0;
int e6coinValue = 0;
int e6coinCT = 0;
int e6coinFrame = 0;
int e6coinType = 0;
int e6FireVul = 0;
int e6BoltVul = 0;
int e6AcidVul = 0;
int e6altAnimCT = 0;
int e7HP = 0;
int e7arm = 0;
int e7CT = 0;
int e7Y_CT = 0;
int e7timer = 0;
int e7invTimer = 0;
int e7X = 0;
int e7Y = 0;
int e7Yvel = 0;
int e7R = 0;
int e7G = 0;
int e7Opacity = 255;
int e7frame = 0;
int e7act = 0;
int e7facing = 0;
int e7projA_X = 0;
int e7projA_Y = 0;
int e7projA_frame = 0;
int e7projA_dir = 0;
int e7invBlink = 255;
int e7knockbackTimer = 0;
int e7hitTimer = 0;
int e7Attack = 0;
int e7armor = 0;
int e7armorRed = 0;
int e7FreezeColor = 0;
int e7FreezeCT = 0;
int e7smokeCT = 0;
int e7smokeFrame = 0;
int e7coinValue = 0;
int e7coinCT = 0;
int e7coinFrame = 0;
int e7coinType = 0;
int e7FireVul = 0;
int e7BoltVul = 0;
int e7AcidVul = 0;
int e7altAnimCT = 0;
int e8HP = 0;
int e8arm = 0;
int e8CT = 0;
int e8Y_CT = 0;
int e8timer = 0;
int e8invTimer = 0;
int e8X = 0;
int e8Y = 0;
int e8Yvel = 0;
int e8R = 0;
int e8G = 0;
int e8Opacity = 255;
int e8frame = 0;
int e8act = 0;
int e8facing = 0;
int e8projA_X = 0;
int e8projA_Y = 0;
int e8projA_frame = 0;
int e8projA_dir = 0;
int e8invBlink = 255;
int e8knockbackTimer = 0;
int e8hitTimer = 0;
int e8Attack = 0;
int e8armor = 0;
int e8armorRed = 0;
int e8FreezeColor = 0;
int e8FreezeCT = 0;
int e8smokeCT = 0;
int e8smokeFrame = 0;
int e8coinValue = 0;
int e8coinCT = 0;
int e8coinFrame = 0;
int e8coinType = 0;
int e8FireVul = 0;
int e8BoltVul = 0;
int e8AcidVul = 0;
int e8altAnimCT = 0;
int e9HP = 0;
int e9arm = 0;
int e9CT = 0;
int e9Y_CT = 0;
int e9timer = 0;
int e9invTimer = 0;
int e9X = 0;
int e9Y = 0;
int e9Yvel = 0;
int e9R = 0;
int e9G = 0;
int e9Opacity = 255;
int e9frame = 0;
int e9act = 0;
int e9facing = 0;
int e9projA_X = 0;
int e9projA_Y = 0;
int e9projA_frame = 0;
int e9projA_dir = 0;
int e9invBlink = 255;
int e9knockbackTimer = 0;
int e9hitTimer = 0;
int e9Attack = 0;
int e9armor = 0;
int e9armorRed = 0;
int e9FreezeColor = 0;
int e9FreezeCT = 0;
int e9smokeCT = 0;
int e9smokeFrame = 0;
int e9coinValue = 0;
int e9coinCT = 0;
int e9coinFrame = 0;
int e9coinType = 0;
int e9FireVul = 0;
int e9BoltVul = 0;
int e9AcidVul = 0;
int e9altAnimCT = 0;
int e10HP = 0;
int e10arm = 0;
int e10CT = 0;
int e10Y_CT = 0;
int e10timer = 0;
int e10invTimer = 0;
int e10X = 0;
int e10Y = 0;
int e10Yvel = 0;
int e10R = 0;
int e10G = 0;
int e10Opacity = 255;
int e10frame = 0;
int e10act = 0;
int e10facing = 0;
int e10projA_X = 0;
int e10projA_Y = 0;
int e10projA_frame = 0;
int e10projA_dir = 0;
int e10invBlink = 255;
int e10knockbackTimer = 0;
int e10hitTimer = 0;
int e10Attack = 0;
int e10armor = 0;
int e10armorRed = 0;
int e10FreezeColor = 0;
int e10FreezeCT = 0;
int e10smokeCT = 0;
int e10smokeFrame = 0;
int e10coinValue = 0;
int e10coinCT = 0;
int e10coinFrame = 0;
int e10coinType = 0;
int e10FireVul = 0;
int e10BoltVul = 0;
int e10AcidVul = 0;
int e10altAnimCT = 0;
int e1sparkleFr = 0;
int e1sparkleCT = 0;
int e2sparkleFr = 0;
int e2sparkleCT = 0;
int e3sparkleFr = 0;
int e3sparkleCT = 0;
int e4sparkleFr = 0;
int e4sparkleCT = 0;
int e5sparkleFr = 0;
int e5sparkleCT = 0;
int e6sparkleFr = 0;
int e6sparkleCT = 0;
int e7sparkleFr = 0;
int e7sparkleCT = 0;
int e8sparkleFr = 0;
int e8sparkleCT = 0;
int e9sparkleFr = 0;
int e9sparkleCT = 0;
int e10sparkleFr = 0;
int e10sparkleCT = 0;
int e1sparkleCycle = 0;
int e2sparkleCycle = 0;
int e3sparkleCycle = 0;
int e4sparkleCycle = 0;
int e5sparkleCycle = 0;
int e6sparkleCycle = 0;
int e7sparkleCycle = 0;
int e8sparkleCycle = 0;
int e9sparkleCycle = 0;
int e10sparkleCycle = 0;
int e1plinkFr = 0;
int e1plinkCT = 0;
int e2plinkFr = 0;
int e2plinkCT = 0;
int e3plinkFr = 0;
int e3plinkCT = 0;
int e4plinkFr = 0;
int e4plinkCT = 0;
int e5plinkFr = 0;
int e5plinkCT = 0;
int e6plinkFr = 0;
int e6plinkCT = 0;
int e7plinkFr = 0;
int e7plinkCT = 0;
int e8plinkFr = 0;
int e8plinkCT = 0;
int e9plinkFr = 0;
int e9plinkCT = 0;
int e10plinkFr = 0;
int e10plinkCT = 0;
int e1plinkCycle = 0;
int e2plinkCycle = 0;
int e3plinkCycle = 0;
int e4plinkCycle = 0;
int e5plinkCycle = 0;
int e6plinkCycle = 0;
int e7plinkCycle = 0;
int e8plinkCycle = 0;
int e9plinkCycle = 0;
int e10plinkCycle = 0;
int e1reload = 0;
int e2reload = 0;
int e3reload = 0;
int e4reload = 0;
int e5reload = 0;
int e6reload = 0;
int e7reload = 0;
int e8reload = 0;
int e9reload = 0;
int e10reload = 0;
int e1FrameHalf = 1;
int e2FrameHalf = 1;
int e3FrameHalf = 1;
int e4FrameHalf = 1;
int e5FrameHalf = 1;
int e6FrameHalf = 1;
int e7FrameHalf = 1;
int e8FrameHalf = 1;
int e9FrameHalf = 1;
int e10FrameHalf = 1;
int e1projVelX = 0;
int e1projVelY = 0;
int e2projVelX = 0;
int e2projVelY = 0;
int e3projVelX = 0;
int e3projVelY = 0;
int e4projVelX = 0;
int e4projVelY = 0;
int e5projVelX = 0;
int e5projVelY = 0;
int e6projVelX = 0;
int e6projVelY = 0;
int e7projVelX = 0;
int e7projVelY = 0;
int e8projVelX = 0;
int e8projVelY = 0;
int e9projVelX = 0;
int e9projVelY = 0;
int e10projVelX = 0;
int e10projVelY = 0;
int e1burnTimer, e2burnTimer, e3burnTimer, e4burnTimer, e5burnTimer,
e6burnTimer, e7burnTimer, e8burnTimer, e9burnTimer, e10burnTimer = 0;
int e1burnCT, e2burnCT, e3burnCT, e4burnCT, e5burnCT, e6burnCT, e7burnCT,
e8burnCT, e9burnCT, e10burnCT = 0;
int e1burnFrame, e2burnFrame, e3burnFrame, e4burnFrame, e5burnFrame,
e6burnFrame, e7burnFrame, e8burnFrame, e9burnFrame, e10burnFrame = 0;
int e1shockTimer, e2shockTimer, e3shockTimer, e4shockTimer, e5shockTimer,
e6shockTimer, e7shockTimer, e8shockTimer, e9shockTimer, e10shockTimer = 0;
int e1shockCT, e2shockCT, e3shockCT, e4shockCT, e5shockCT, e6shockCT,
e7shockCT, e8shockCT, e9shockCT, e10shockCT = 0;
int e1shockFrame, e2shockFrame, e3shockFrame, e4shockFrame, e5shockFrame,
e6shockFrame, e7shockFrame, e8shockFrame, e9shockFrame, e10shockFrame = 0;
int e1projWidth = 0;
int e1projHeight = 0;
int e2projWidth = 0;
int e2projHeight = 0;
int e3projWidth = 0;
int e3projHeight = 0;
int e4projWidth = 0;
int e4projHeight = 0;
int e5projWidth = 0;
int e5projHeight = 0;
int e6projWidth = 0;
int e6projHeight = 0;
int e7projWidth = 0;
int e7projHeight = 0;
int e8projWidth = 0;
int e8projHeight = 0;
int e9projWidth = 0;
int e9projHeight = 0;
int e10projWidth = 0;
int e10projHeight = 0;
int e1projOrigX = 0;
int e1projOrigY = 0;
int e2projOrigX = 0;
int e2projOrigY = 0;
int e3projOrigX = 0;
int e3projOrigY = 0;
int e4projOrigX = 0;
int e4projOrigY = 0;
int e5projOrigX = 0;
int e5projOrigY = 0;
int e6projOrigX = 0;
int e6projOrigY = 0;
int e7projOrigX = 0;
int e7projOrigY = 0;
int e8projOrigX = 0;
int e8projOrigY = 0;
int e9projOrigX = 0;
int e9projOrigY = 0;
int e10projOrigX = 0;
int e10projOrigY = 0;
int e1projCT = 0;
int e2projCT = 0;
int e3projCT = 0;
int e4projCT = 0;
int e5projCT = 0;
int e6projCT = 0;
int e7projCT = 0;
int e8projCT = 0;
int e9projCT = 0;
int e10projCT = 0;
int e11projCT = 0;
int e12projCT = 0;
int e13projCT = 0;
int e14projCT = 0;
int e15projCT = 0;
int e16projCT = 0;
int e17projCT = 0;
int e18projCT = 0;
int e19projCT = 0;
int e20projCT = 0;
int e21projCT = 0;
int e22projCT = 0;
int e23projCT = 0;
int e24projCT = 0;
int e25projCT = 0;
int e26projCT = 0;
int e27projCT = 0;
int e28projCT = 0;
int e29projCT = 0;
int e30projCT = 0;
int e11HP = 0; //enemy 1 HP
int e11arm = 0; //enemy 1 armor
int e11CT = 0; //enemy 1 frame counter
int e11Y_CT = 0; //enemy 1 velocity timer
int e11timer = 0; //enemy 1 action timer
int e11invTimer = 0; //enemy 1 invincibility timer
int e11X = 0; //enemy 1 X-pos
int e11Y = 0; //enemy 1 Y-pos
int e11Yvel = 0; //enemy 1 Y-velocity
int e11R = 0; //enemy 1 -R value
int e11G = 0; //enemy 1 -G value
int e11Opacity = 255; //enemy 1 opacity
int e11frame = 0; //determines frame of animation for e1nemy 1
int e11act = 0; //determines type of animation (move, wait, attack, e1tc.)
int e11facing = 0; //determines direction e1nemy 1 is facing
int e11projA_X = 0; //determines e1nemy 1's projectile A X-pos
int e11projA_Y = 0; //determines e1nemy 1's projectile A Y-pos
int e11projA_frame = 0; //determines e11 projectile A frame of animation
int e11projA_dir = 0; //determines e11 projectile A orientation
int e11invBlink = 255; //makes e11 blink when invulnerable
int e11knockbackTimer = 0;
int e11hitTimer = 0;
int e11Attack = 0;
int e11armor = 0;
int e11armorRed = 0;
int e11FreezeColor = 0;
int e11FreezeCT = 0;
int e11smokeCT = 0;
int e11smokeFrame = 0;
int e11coinValue = 0;
int e11coinCT = 0;
int e11coinFrame = 0;
int e11coinType = 0;
int e11FireVul = 0;
int e11BoltVul = 0;
int e11AcidVul = 0;
int e11altAnimCT = 0;
int e12HP = 0;
int e12arm = 0;
int e12CT = 0;
int e12Y_CT = 0;
int e12timer = 0;
int e12invTimer = 0;
int e12X = 0;
int e12Y = 0;
int e12Yvel = 0;
int e12R = 0;
int e12G = 0;
int e12Opacity = 255;
int e12frame = 0;
int e12act = 0;
int e12facing = 0;
int e12projA_X = 0;
int e12projA_Y = 0;
int e12projA_frame = 0;
int e12projA_dir = 0;
int e12invBlink = 255;
int e12knockbackTimer = 0;
int e12hitTimer = 0;
int e12Attack = 0;
int e12armor = 0;
int e12armorRed = 0;
int e12FreezeColor = 0;
int e12FreezeCT = 0;
int e12smokeCT = 0;
int e12smokeFrame = 0;
int e12coinValue = 0;
int e12coinCT = 0;
int e12coinFrame = 0;
int e12coinType = 0;
int e12FireVul = 0;
int e12BoltVul = 0;
int e12AcidVul = 0;
int e12altAnimCT = 0;
int e13HP = 0;
int e13arm = 0;
int e13CT = 0;
int e13Y_CT = 0;
int e13timer = 0;
int e13invTimer = 0;
int e13X = 0;
int e13Y = 0;
int e13Yvel = 0;
int e13R = 0;
int e13G = 0;
int e13Opacity = 255;
int e13frame = 0;
int e13act = 0;
int e13facing = 0;
int e13projA_X = 0;
int e13projA_Y = 0;
int e13projA_frame = 0;
int e13projA_dir = 0;
int e13invBlink = 255;
int e13knockbackTimer = 0;
int e13hitTimer = 0;
int e13Attack = 0;
int e13armor = 0;
int e13armorRed = 0;
int e13FreezeColor = 0;
int e13FreezeCT = 0;
int e13smokeCT = 0;
int e13smokeFrame = 0;
int e13coinValue = 0;
int e13coinCT = 0;
int e13coinFrame = 0;
int e13coinType = 0;
int e13FireVul = 0;
int e13BoltVul = 0;
int e13AcidVul = 0;
int e13altAnimCT = 0;
int e14HP = 0;
int e14arm = 0;
int e14CT = 0;
int e14Y_CT = 0;
int e14timer = 0;
int e14invTimer = 0;
int e14X = 0;
int e14Y = 0;
int e14Yvel = 0;
int e14R = 0;
int e14G = 0;
int e14Opacity = 255;
int e14frame = 0;
int e14act = 0;
int e14facing = 0;
int e14projA_X = 0;
int e14projA_Y = 0;
int e14projA_frame = 0;
int e14projA_dir = 0;
int e14invBlink = 255;
int e14knockbackTimer = 0;
int e14hitTimer = 0;
int e14Attack = 0;
int e14armor = 0;
int e14armorRed = 0;
int e14FreezeColor = 0;
int e14FreezeCT = 0;
int e14smokeCT = 0;
int e14smokeFrame = 0;
int e14coinValue = 0;
int e14coinCT = 0;
int e14coinFrame = 0;
int e14coinType = 0;
int e14FireVul = 0;
int e14BoltVul = 0;
int e14AcidVul = 0;
int e14altAnimCT = 0;
int e15HP = 0;
int e15arm = 0;
int e15CT = 0;
int e15Y_CT = 0;
int e15timer = 0;
int e15invTimer = 0;
int e15X = 0;
int e15Y = 0;
int e15Yvel = 0;
int e15R = 0;
int e15G = 0;
int e15Opacity = 255;
int e15frame = 0;
int e15act = 0;
int e15facing = 0;
int e15projA_X = 0;
int e15projA_Y = 0;
int e15projA_frame = 0;
int e15projA_dir = 0;
int e15invBlink = 255;
int e15knockbackTimer = 0;
int e15hitTimer = 0;
int e15Attack = 0;
int e15armor = 0;
int e15armorRed = 0;
int e15FreezeColor = 0;
int e15FreezeCT = 0;
int e15smokeCT = 0;
int e15smokeFrame = 0;
int e15coinValue = 0;
int e15coinCT = 0;
int e15coinFrame = 0;
int e15coinType = 0;
int e15FireVul = 0;
int e15BoltVul = 0;
int e15AcidVul = 0;
int e15altAnimCT = 0;
int e16HP = 0;
int e16arm = 0;
int e16CT = 0;
int e16Y_CT = 0;
int e16timer = 0;
int e16invTimer = 0;
int e16X = 0;
int e16Y = 0;
int e16Yvel = 0;
int e16R = 0;
int e16G = 0;
int e16Opacity = 255;
int e16frame = 0;
int e16act = 0;
int e16facing = 0;
int e16projA_X = 0;
int e16projA_Y = 0;
int e16projA_frame = 0;
int e16projA_dir = 0;
int e16invBlink = 255;
int e16knockbackTimer = 0;
int e16hitTimer = 0;
int e16Attack = 0;
int e16armor = 0;
int e16armorRed = 0;
int e16FreezeColor = 0;
int e16FreezeCT = 0;
int e16smokeCT = 0;
int e16smokeFrame = 0;
int e16coinValue = 0;
int e16coinCT = 0;
int e16coinFrame = 0;
int e16coinType = 0;
int e16FireVul = 0;
int e16BoltVul = 0;
int e16AcidVul = 0;
int e16altAnimCT = 0;
int e17HP = 0;
int e17arm = 0;
int e17CT = 0;
int e17Y_CT = 0;
int e17timer = 0;
int e17invTimer = 0;
int e17X = 0;
int e17Y = 0;
int e17Yvel = 0;
int e17R = 0;
int e17G = 0;
int e17Opacity = 255;
int e17frame = 0;
int e17act = 0;
int e17facing = 0;
int e17projA_X = 0;
int e17projA_Y = 0;
int e17projA_frame = 0;
int e17projA_dir = 0;
int e17invBlink = 255;
int e17knockbackTimer = 0;
int e17hitTimer = 0;
int e17Attack = 0;
int e17armor = 0;
int e17armorRed = 0;
int e17FreezeColor = 0;
int e17FreezeCT = 0;
int e17smokeCT = 0;
int e17smokeFrame = 0;
int e17coinValue = 0;
int e17coinCT = 0;
int e17coinFrame = 0;
int e17coinType = 0;
int e17FireVul = 0;
int e17BoltVul = 0;
int e17AcidVul = 0;
int e17altAnimCT = 0;
int e18HP = 0;
int e18arm = 0;
int e18CT = 0;
int e18Y_CT = 0;
int e18timer = 0;
int e18invTimer = 0;
int e18X = 0;
int e18Y = 0;
int e18Yvel = 0;
int e18R = 0;
int e18G = 0;
int e18Opacity = 255;
int e18frame = 0;
int e18act = 0;
int e18facing = 0;
int e18projA_X = 0;
int e18projA_Y = 0;
int e18projA_frame = 0;
int e18projA_dir = 0;
int e18invBlink = 255;
int e18knockbackTimer = 0;
int e18hitTimer = 0;
int e18Attack = 0;
int e18armor = 0;
int e18armorRed = 0;
int e18FreezeColor = 0;
int e18FreezeCT = 0;
int e18smokeCT = 0;
int e18smokeFrame = 0;
int e18coinValue = 0;
int e18coinCT = 0;
int e18coinFrame = 0;
int e18coinType = 0;
int e18FireVul = 0;
int e18BoltVul = 0;
int e18AcidVul = 0;
int e18altAnimCT = 0;
int e19HP = 0;
int e19arm = 0;
int e19CT = 0;
int e19Y_CT = 0;
int e19timer = 0;
int e19invTimer = 0;
int e19X = 0;
int e19Y = 0;
int e19Yvel = 0;
int e19R = 0;
int e19G = 0;
int e19Opacity = 255;
int e19frame = 0;
int e19act = 0;
int e19facing = 0;
int e19projA_X = 0;
int e19projA_Y = 0;
int e19projA_frame = 0;
int e19projA_dir = 0;
int e19invBlink = 255;
int e19knockbackTimer = 0;
int e19hitTimer = 0;
int e19Attack = 0;
int e19armor = 0;
int e19armorRed = 0;
int e19FreezeColor = 0;
int e19FreezeCT = 0;
int e19smokeCT = 0;
int e19smokeFrame = 0;
int e19coinValue = 0;
int e19coinCT = 0;
int e19coinFrame = 0;
int e19coinType = 0;
int e19FireVul = 0;
int e19BoltVul = 0;
int e19AcidVul = 0;
int e19altAnimCT = 0;
int e20HP = 0;
int e20arm = 0;
int e20CT = 0;
int e20Y_CT = 0;
int e20timer = 0;
int e20invTimer = 0;
int e20X = 0;
int e20Y = 0;
int e20Yvel = 0;
int e20R = 0;
int e20G = 0;
int e20Opacity = 255;
int e20frame = 0;
int e20act = 0;
int e20facing = 0;
int e20projA_X = 0;
int e20projA_Y = 0;
int e20projA_frame = 0;
int e20projA_dir = 0;
int e20invBlink = 255;
int e20knockbackTimer = 0;
int e20hitTimer = 0;
int e20Attack = 0;
int e20armor = 0;
int e20armorRed = 0;
int e20FreezeColor = 0;
int e20FreezeCT = 0;
int e20smokeCT = 0;
int e20smokeFrame = 0;
int e20coinValue = 0;
int e20coinCT = 0;
int e20coinFrame = 0;
int e20coinType = 0;
int e20FireVul = 0;
int e20BoltVul = 0;
int e20AcidVul = 0;
int e20altAnimCT = 0;
int e11sparkleFr = 0;
int e11sparkleCT = 0;
int e12sparkleFr = 0;
int e12sparkleCT = 0;
int e13sparkleFr = 0;
int e13sparkleCT = 0;
int e14sparkleFr = 0;
int e14sparkleCT = 0;
int e15sparkleFr = 0;
int e15sparkleCT = 0;
int e16sparkleFr = 0;
int e16sparkleCT = 0;
int e17sparkleFr = 0;
int e17sparkleCT = 0;
int e18sparkleFr = 0;
int e18sparkleCT = 0;
int e19sparkleFr = 0;
int e19sparkleCT = 0;
int e20sparkleFr = 0;
int e20sparkleCT = 0;
int e11sparkleCycle = 0;
int e12sparkleCycle = 0;
int e13sparkleCycle = 0;
int e14sparkleCycle = 0;
int e15sparkleCycle = 0;
int e16sparkleCycle = 0;
int e17sparkleCycle = 0;
int e18sparkleCycle = 0;
int e19sparkleCycle = 0;
int e20sparkleCycle = 0;
int e11plinkFr = 0;
int e11plinkCT = 0;
int e12plinkFr = 0;
int e12plinkCT = 0;
int e13plinkFr = 0;
int e13plinkCT = 0;
int e14plinkFr = 0;
int e14plinkCT = 0;
int e15plinkFr = 0;
int e15plinkCT = 0;
int e16plinkFr = 0;
int e16plinkCT = 0;
int e17plinkFr = 0;
int e17plinkCT = 0;
int e18plinkFr = 0;
int e18plinkCT = 0;
int e19plinkFr = 0;
int e19plinkCT = 0;
int e20plinkFr = 0;
int e20plinkCT = 0;
int e11plinkCycle = 0;
int e12plinkCycle = 0;
int e13plinkCycle = 0;
int e14plinkCycle = 0;
int e15plinkCycle = 0;
int e16plinkCycle = 0;
int e17plinkCycle = 0;
int e18plinkCycle = 0;
int e19plinkCycle = 0;
int e20plinkCycle = 0;
int e11reload = 0;
int e12reload = 0;
int e13reload = 0;
int e14reload = 0;
int e15reload = 0;
int e16reload = 0;
int e17reload = 0;
int e18reload = 0;
int e19reload = 0;
int e20reload = 0;
int e11FrameHalf = 1;
int e12FrameHalf = 1;
int e13FrameHalf = 1;
int e14FrameHalf = 1;
int e15FrameHalf = 1;
int e16FrameHalf = 1;
int e17FrameHalf = 1;
int e18FrameHalf = 1;
int e19FrameHalf = 1;
int e20FrameHalf = 1;
int e11projVelX = 0;
int e11projVelY = 0;
int e12projVelX = 0;
int e12projVelY = 0;
int e13projVelX = 0;
int e13projVelY = 0;
int e14projVelX = 0;
int e14projVelY = 0;
int e15projVelX = 0;
int e15projVelY = 0;
int e16projVelX = 0;
int e16projVelY = 0;
int e17projVelX = 0;
int e17projVelY = 0;
int e18projVelX = 0;
int e18projVelY = 0;
int e19projVelX = 0;
int e19projVelY = 0;
int e20projVelX = 0;
int e20projVelY = 0;
int e11burnTimer, e12burnTimer, e13burnTimer, e14burnTimer, e15burnTimer,
e16burnTimer, e17burnTimer, e18burnTimer, e19burnTimer, e20burnTimer = 0;
int e11burnCT, e12burnCT, e13burnCT, e14burnCT, e15burnCT, e16burnCT,
e17burnCT, e18burnCT, e19burnCT, e20burnCT = 0;
int e11burnFrame, e12burnFrame, e13burnFrame, e14burnFrame, e15burnFrame,
e16burnFrame, e17burnFrame, e18burnFrame, e19burnFrame, e20burnFrame = 0;
int e11shockTimer, e12shockTimer, e13shockTimer, e14shockTimer,
e15shockTimer, e16shockTimer, e17shockTimer, e18shockTimer, e19shockTimer,
e20shockTimer = 0;
int e11shockCT, e12shockCT, e13shockCT, e14shockCT, e15shockCT, e16shockCT,
e17shockCT, e18shockCT, e19shockCT, e20shockCT = 0;
int e11shockFrame, e12shockFrame, e13shockFrame, e14shockFrame,
e15shockFrame, e16shockFrame, e17shockFrame, e18shockFrame, e19shockFrame,
e20shockFrame = 0;
int e11projWidth = 0;
int e11projHeight = 0;
int e12projWidth = 0;
int e12projHeight = 0;
int e13projWidth = 0;
int e13projHeight = 0;
int e14projWidth = 0;
int e14projHeight = 0;
int e15projWidth = 0;
int e15projHeight = 0;
int e16projWidth = 0;
int e16projHeight = 0;
int e17projWidth = 0;
int e17projHeight = 0;
int e18projWidth = 0;
int e18projHeight = 0;
int e19projWidth = 0;
int e19projHeight = 0;
int e20projWidth = 0;
int e20projHeight = 0;
int e11projOrigX = 0;
int e11projOrigY = 0;
int e12projOrigX = 0;
int e12projOrigY = 0;
int e13projOrigX = 0;
int e13projOrigY = 0;
int e14projOrigX = 0;
int e14projOrigY = 0;
int e15projOrigX = 0;
int e15projOrigY = 0;
int e16projOrigX = 0;
int e16projOrigY = 0;
int e17projOrigX = 0;
int e17projOrigY = 0;
int e18projOrigX = 0;
int e18projOrigY = 0;
int e19projOrigX = 0;
int e19projOrigY = 0;
int e20projOrigX = 0;
int e20projOrigY = 0;
#endregion
//camera position, fade, etc.
#region Camera int
int cameraX = 640; //camera base x-pos
int cameraY = 360; //camera base y-pos
int drgnCamX = 0; //camera x-pos modifier based on DRAGON's x position
int drgnCamY = 0; //camera y-pos modifier based on DRAGON's y position
int drgnCamVel = 0;
int cameraMaxX = 2000;
int cameraMaxY = 900;
int cameraMinY = 0;
int opacity = 0; //opacity of black matte for screen transitions
int fadeCT = 0;
#endregion
#region Level Up Data
int drgnDRTotal, drgnBreathTotal, drgnClawTotal, printHPMax = 0;
#endregion
#region explosion int
int exp1CT = 0;
int exp1Frame = 0;
int exp2CT = 0;
int exp2Frame = 0;
int exp3CT = 0;
int exp3Frame = 0;
int exp4CT = 0;
int exp4Frame = 0;
int exp5CT = 0;
int exp5Frame = 0;
int exp6CT = 0;
int exp6Frame = 0;
int exp1Wait = 0;
int exp2Wait = 0;
int exp3Wait = 0;
int exp4Wait = 0;
int exp5Wait = 0;
int exp6Wait = 0;
int exp1X = 0;
int exp1Y = 0;
int exp2X = 0;
int exp2Y = 0;
int exp3X = 0;
int exp3Y = 0;
int exp4X = 0;
int exp4Y = 0;
int exp5X = 0;
int exp5Y = 0;
int exp6X = 0;
int exp6Y = 0;
#endregion
int storyOpacity = 0;
int storyOpacityCT = 0;
int overlayOpacity = 0;
int overlayCT = 0;
int eventWait = 0;
int eventXVel = 0;
int eventYVel = 0;
int defeatCT = 0;
int warpCT = 0;
int warpFrame = 0;
int treasureWindowCT = 0;
int treasureWindowFrame = 0;
int treasureWindowX = -150;
int blackMatteOpacity = 0;
int whiteMatteOpacity = 0;
int hoardAmt = 0;
#endregion
#region All bool
bool steamAPIOn = false;
bool actionStagePause = false;
bool updateGold = false;
bool boss1NoDmg = false;
bool boss2NoDmg = false;
bool boss3NoDmg = false;
bool boss4NoDmg = false;
bool boss5NoDmg = false;
bool assignKey = false;
bool tutorialOn = false;
bool seenTutorial = false;
bool showPause = false;
bool fontTypeOn = false;
bool bonusOn = false;
bool skipStory = false;
bool hovercraftExplosion = false;
#region NPC bool
bool niaOn = false;
bool squireOn = false;
bool heavyOn = false;
bool bowOn = false;
#endregion
#region SFX bool
bool menuYesPlay, menuNoPlay, menuTogglePlay, pageTurnPlay, sfxWarpPlay =
false;
bool jumpPlay, waterjumpPlay, damagePlay, slashPlay, splashPlay = false;
bool plinkPlay, coinPlay, freezePlay, enginePlay = false;
bool smokePlay = false;
bool gunshotPlay, cannonPlay, explosionPlay, thunkPlay = false;
bool thunderProjPlay, thunderBlastPlay, invisPlay = false;
bool laserPlay, laserCharge, shortCharge = false;
bool teleportPlay = false;
bool fireballPlay = false;
bool spearPlay, notePlay = false;
bool steamPlay, arrowPlay, lancePlay, expAltPlay, thudPlay = false;
bool sprayProx1, sprayProx2, sprayProx3 = false;
bool spinProx1, spinProx2, spinProx3, spinProx4 = false;
bool flameProx1, flameProx2, flameProx3, flameProx4, flameProx5 = false;
bool laserProx1, laserProx2, laserProx3, laserProx4 = false;
bool playFlameWall = false;
bool acid1, acid2, acid3, acid4, flame1, flame2, flame3, flame4, flame5,
spin1, spin2, spin3, spin4, laser1, laser2, laser3, laser4, burrowOn, snowOn =
false;
#endregion
#region 2-1 puzzle
bool waterRisingOn = false;
bool waterPuzzleComplete = false;
#endregion
#region 2-2 puzzle
bool hovercraftOn = true;
bool hovercraftSink = false;
bool puzzleExplosion = false;
bool attackedFish = false;
#endregion
#region 2-3 puzzle
bool sheepOnGround = true;
bool capeReady = true;
#endregion
#region 2-4 puzzle
bool haveKey = true;
bool door1Open = false;
bool door2Open = false;
#endregion
#region 3-3 puzzle
bool doorOpen = false;
#endregion
#region 4-1 puzzle
bool machineryElectrified = false;
#endregion
#region 4-2 puzzle
bool cannonDefeated = false;
bool wickLit = false;
bool enemyCannonFire = false;
bool playerCannonFire = false;
#endregion
#region 4-3 var
bool floor1On = false;
bool floor2On = false;
bool floor3On = false;
#endregion
#region 5-2 puzzle
bool defenderFrozen = false;
bool spyFriendly = false;
bool spyMaskOff = false;
bool spyProj1On = false;
bool spyProj2On = false;
bool spyProj3On = false;
bool drgnOnCar = false;
bool spyFaceR = true;
bool daggerFaceR = true;
#endregion
#region 6-1 puzzle
bool puzzleCorrect = false;
bool puzzleSound = false;
bool alienProj1 = false;
bool alienProj2 = false;
bool alienProj3 = false;
bool alienProj4 = false;
#endregion
#region 6-B not boss
bool needStarPos = false;
#endregion
#region obstacles
bool obs1Up = false;
bool obs2Up = false;
bool obs3Up = false;
bool obs4Up = false;
bool obs5Up = false;
bool obs6Up = false;
bool obs7Up = false;
bool obs8Up = false;
bool obs9Up = false;
bool obs10Up = false;
#endregion
#region boat
bool boat1Left = false;
bool boat1Right = false;
bool boat2Left = false;
bool boat2Right = false;
bool boat1TouchL = false;
bool boat1TouchR = false;
bool boat2TouchL = false;
bool boat2TouchR = false;
bool onBoat1 = false;
bool onBoat2 = false;
#endregion
#region explosions
bool exp1On = false;
bool exp2On = false;
bool exp3On = false;
bool exp4On = false;
bool exp5On = false;
bool exp6On = false;
bool expSerial = false;
#endregion
bool fadedIn = true; //dictates fade in matte
bool whiteMatte, whiteMatteUp, whiteMatteDown = false;
bool blackMatte, blackMatteUp, blackMatteDown = false;
bool pressUp, lastDirUp = false;
bool optionsLook = false;
bool fromStory = false;
bool runEvent = false;
bool dragonDash = false;
bool drgnSpikeDamage = false;
//related to title screen
bool displayLogo = true; //display logo at startup
bool displayTitle = false; //display title after logo
bool titleInPlace = false;
bool treasureWindowUp, treasureWindowDown = false;
bool inMud = false;
bool waterRising = false;
bool from4e1 = false;
bool from4e2 = false;
bool stage2e4Left = false;
bool stage2e4Right = false;
bool waterfall1Frozen, waterfall2Frozen = false;
#region Water bool
bool drgnUnderwater = false;
bool underwaterBreath = false;
bool needSplashInLoc = false;
bool needSplashOutLoc = false;
bool splashIn = false;
bool splashOut = false;
#endregion
//related to world map
#region World Map bool
bool escMenu = false; //check if ESC is up
bool on1e2 = false;
bool on1e3 = false;
bool on1eB = false;
bool on2e1 = false;
bool on2e2 = false;
bool on2e3 = false;
bool on2eB = false;
bool on3e1 = false;
bool on3e2 = false;
bool on3e3 = false;
bool on3eB = false;
bool on4e1 = false;
bool on4e2 = false;
bool on4e3 = false;
bool on4e4 = false;
bool on4eB = false;
bool on5e1 = false;
bool on5e2 = false;
bool on5eB = false;
bool on6e1 = false;
bool on6eB = false;
bool on7eB = false;
bool mapArrowUp = false;
bool mapArrowRight = false;
bool mapArrowDown = false;
bool mapArrowLeft = false;
#endregion
//related to player sprite
#region Player Sprite bool
bool drgnWait = true; //if DRAGON isn't moving at all
bool drgnOnGround = false; //if DRAGON is touching solid ground
bool drgnFaceR = true; //if DRAGON is facing right
bool usingClaw = false; //to stagger claw usage
bool clawNoMove = false; //to prevent movement during claw animation
bool drgnFlight = false; //checks if DRAGON is flying
bool drgnIdle = false; //checks if DRAGON is doing idle animation
bool drgnFire = false; //checks if DRAGON is breathing fire
bool touchWallL = false;
bool touchWallR = false;
bool drgnKnockback = false;
bool drgnInvulnerable = false;
bool drgnHit = false;
bool waterfallKnockback = false;
bool duckStop = false;
bool touchLe1 = false;
bool touchRe1 = false;
bool touchLe2 = false;
bool touchRe2 = false;
bool touchLe3 = false;
bool touchRe3 = false;
bool touchLe4 = false;
bool touchRe4 = false;
bool touchLe5 = false;
bool touchRe5 = false;
bool touchLe6 = false;
bool touchRe6 = false;
bool touchLe7 = false;
bool touchRe7 = false;
bool touchLe8 = false;
bool touchRe8 = false;
bool touchLe9 = false;
bool touchRe9 = false;
bool touchLe10 = false;
bool touchRe10 = false;
bool touchLe11 = false;
bool touchRe11 = false;
bool touchLe12 = false;
bool touchRe12 = false;
bool touchLe13 = false;
bool touchRe13 = false;
bool touchLe14 = false;
bool touchRe14 = false;
bool touchLe15 = false;
bool touchRe15 = false;
bool touchLe16 = false;
bool touchRe16 = false;
bool touchLe17 = false;
bool touchRe17 = false;
bool touchLe18 = false;
bool touchRe18 = false;
bool touchLe19 = false;
bool touchRe19 = false;
bool touchLe20 = false;
bool touchRe20 = false;
bool e1stand = false;
bool e2stand = false;
bool e3stand = false;
bool e4stand = false;
bool e5stand = false;
bool e6stand = false;
bool e7stand = false;
bool e8stand = false;
bool e9stand = false;
bool e10stand = false;
bool e11stand = false;
bool e12stand = false;
bool e13stand = false;
bool e14stand = false;
bool e15stand = false;
bool e16stand = false;
bool e17stand = false;
bool e18stand = false;
bool e19stand = false;
bool e20stand = false;
#endregion
//related to breath attack
#region Breath bool
bool haveBolt = false;
bool haveFrost = false;
bool haveAcid = false;
bool haveGanja = false;
#endregion
//related to have treasure
#region Treasure bool
bool treasurePickUp = false;
bool pickUp1 = false;
bool pickUp2 = false;
bool pickUp3 = false;
bool pickUp4 = false;
bool pickUp5 = false;
bool pickUp6 = false;
bool pickUp7 = false;
bool pickUp8 = false;
bool pickUp9 = false;
bool pickUp10 = false;
bool pickUp11 = false;
bool pickUp12 = false;
bool pickUp13 = false;
bool pickUp14 = false;
bool pickUp15 = false;
bool pickUp16 = false;
bool pickUp17 = false;
bool pickUp18 = false;
bool pickUp19 = false;
bool pickUp20 = false;
bool pickUp21 = false;
bool pickUp22 = false;
bool pickUp23 = false;
bool pickUp24 = false;
bool pickUp25 = false;
bool pickUpAcid = false;
bool have01Hatchling = false;
bool have02Smile = false;
bool have03Crest = false;
bool have04Underpants = false;
bool have05Sollerets = false;
bool have06Scepter = false;
bool have07Momiji = false;
bool have08Ninjato = false;
bool have09Ring = false;
bool have10Sunset = false;
bool have11Dreihander = false;
bool have12Endeavour = false;
bool have13Doll = false;
bool have14Liqueur = false;
bool have15Penultima = false;
bool have16Leaf = false;
bool have17HTTYD = false;
bool have18Gust = false;
bool have19Shirt = false;
bool have20Deduction = false;
bool have21Topaz = false;
bool have22Sapphire = false;
bool have23Garnet = false;
bool have24Ruby = false;
bool have25Diamond = false;
#endregion
//related to enemy status
#region Enemy Status bool
bool e1spawn = false;
bool e1frozen = false;
bool e1shoot = false;
bool e1invulnerable = false;
bool e1faceR = false;
bool e1knockback = false;
bool e1knockbackRes = false;
bool e1onGround = true;
bool e1proximity = false;
bool e1touchWallR = false;
bool e1touchWallL = false;
bool e1breathhit = false;
bool e1clawhit = false;
bool e1hit = false;
bool e1peaceful = false;
bool e1frRes = false;
bool e1peaceRes = false;
bool e1coins = false;
bool e1smoke = false;
bool e1coinTouch = false;
bool e1BurnVul = false;
bool e1ShockVul = false;
bool e1altAnim = false;
bool e2spawn = false;
bool e2frozen = false;
bool e2shoot = false;
bool e2invulnerable = false;
bool e2faceR = false;
bool e2knockback = false;
bool e2knockbackRes = false;
bool e2onGround = true;
bool e2proximity = false;
bool e2touchWallR = false;
bool e2touchWallL = false;
bool e2breathhit = false;
bool e2clawhit = false;
bool e2hit = false;
bool e2peaceful = false;
bool e2frRes = false;
bool e2peaceRes = false;
bool e2coins = false;
bool e2smoke = false;
bool e2coinTouch = false;
bool e2BurnVul = false;
bool e2ShockVul = false;
bool e2altAnim = false;
bool e3spawn = false;
bool e3frozen = false;
bool e3shoot = false;
bool e3invulnerable = false;
bool e3faceR = false;
bool e3knockback = false;
bool e3knockbackRes = false;
bool e3onGround = true;
bool e3proximity = false;
bool e3touchWallR = false;
bool e3touchWallL = false;
bool e3breathhit = false;
bool e3clawhit = false;
bool e3hit = false;
bool e3peaceful = false;
bool e3frRes = false;
bool e3peaceRes = false;
bool e3coins = false;
bool e3smoke = false;
bool e3coinTouch = false;
bool e3BurnVul = false;
bool e3ShockVul = false;
bool e3altAnim = false;
bool e4spawn = false;
bool e4frozen = false;
bool e4shoot = false;
bool e4invulnerable = false;
bool e4faceR = false;
bool e4knockback = false;
bool e4knockbackRes = false;
bool e4onGround = true;
bool e4proximity = false;
bool e4touchWallR = false;
bool e4touchWallL = false;
bool e4breathhit = false;
bool e4clawhit = false;
bool e4hit = false;
bool e4peaceful = false;
bool e4frRes = false;
bool e4peaceRes = false;
bool e4coins = false;
bool e4smoke = false;
bool e4coinTouch = false;
bool e4BurnVul = false;
bool e4ShockVul = false;
bool e4altAnim = false;
bool e5spawn = false;
bool e5frozen = false;
bool e5shoot = false;
bool e5invulnerable = false;
bool e5faceR = false;
bool e5knockback = false;
bool e5knockbackRes = false;
bool e5onGround = true;
bool e5proximity = false;
bool e5touchWallR = false;
bool e5touchWallL = false;
bool e5breathhit = false;
bool e5clawhit = false;
bool e5hit = false;
bool e5peaceful = false;
bool e5frRes = false;
bool e5peaceRes = false;
bool e5coins = false;
bool e5smoke = false;
bool e5coinTouch = false;
bool e5BurnVul = false;
bool e5ShockVul = false;
bool e5altAnim = false;
bool e6spawn = false;
bool e6frozen = false;
bool e6shoot = false;
bool e6invulnerable = false;
bool e6faceR = false;
bool e6knockback = false;
bool e6knockbackRes = false;
bool e6onGround = true;
bool e6proximity = false;
bool e6touchWallR = false;
bool e6touchWallL = false;
bool e6breathhit = false;
bool e6clawhit = false;
bool e6hit = false;
bool e6peaceful = false;
bool e6frRes = false;
bool e6peaceRes = false;
bool e6coins = false;
bool e6smoke = false;
bool e6coinTouch = false;
bool e6BurnVul = false;
bool e6ShockVul = false;
bool e6altAnim = false;
bool e7spawn = false;
bool e7frozen = false;
bool e7shoot = false;
bool e7invulnerable = false;
bool e7faceR = false;
bool e7knockback = false;
bool e7knockbackRes = false;
bool e7onGround = true;
bool e7proximity = false;
bool e7touchWallR = false;
bool e7touchWallL = false;
bool e7breathhit = false;
bool e7clawhit = false;
bool e7hit = false;
bool e7peaceful = false;
bool e7frRes = false;
bool e7peaceRes = false;
bool e7coins = false;
bool e7smoke = false;
bool e7coinTouch = false;
bool e7BurnVul = false;
bool e7ShockVul = false;
bool e7altAnim = false;
bool e8spawn = false;
bool e8frozen = false;
bool e8shoot = false;
bool e8invulnerable = false;
bool e8faceR = false;
bool e8knockback = false;
bool e8knockbackRes = false;
bool e8onGround = true;
bool e8proximity = false;
bool e8touchWallR = false;
bool e8touchWallL = false;
bool e8breathhit = false;
bool e8clawhit = false;
bool e8hit = false;
bool e8peaceful = false;
bool e8frRes = false;
bool e8peaceRes = false;
bool e8coins = false;
bool e8smoke = false;
bool e8coinTouch = false;
bool e8BurnVul = false;
bool e8ShockVul = false;
bool e8altAnim = false;
bool e9spawn = false;
bool e9frozen = false;
bool e9shoot = false;
bool e9invulnerable = false;
bool e9faceR = false;
bool e9knockback = false;
bool e9knockbackRes = false;
bool e9onGround = true;
bool e9proximity = false;
bool e9touchWallR = false;
bool e9touchWallL = false;
bool e9breathhit = false;
bool e9clawhit = false;
bool e9hit = false;
bool e9peaceful = false;
bool e9frRes = false;
bool e9peaceRes = false;
bool e9coins = false;
bool e9smoke = false;
bool e9coinTouch = false;
bool e9BurnVul = false;
bool e9ShockVul = false;
bool e9altAnim = false;
bool e10spawn = false;
bool e10frozen = false;
bool e10shoot = false;
bool e10invulnerable = false;
bool e10faceR = false;
bool e10knockback = false;
bool e10knockbackRes = false;
bool e10onGround = true;
bool e10proximity = false;
bool e10touchWallR = false;
bool e10touchWallL = false;
bool e10breathhit = false;
bool e10clawhit = false;
bool e10hit = false;
bool e10peaceful = false;
bool e10frRes = false;
bool e10peaceRes = false;
bool e10coins = false;
bool e10smoke = false;
bool e10coinTouch = false;
bool e10BurnVul = false;
bool e10ShockVul = false;
bool e10altAnim = false;
bool e1sparkleOn = false;
bool e2sparkleOn = false;
bool e3sparkleOn = false;
bool e4sparkleOn = false;
bool e5sparkleOn = false;
bool e6sparkleOn = false;
bool e7sparkleOn = false;
bool e8sparkleOn = false;
bool e9sparkleOn = false;
bool e10sparkleOn = false;
bool e1plinkOn = false;
bool e2plinkOn = false;
bool e3plinkOn = false;
bool e4plinkOn = false;
bool e5plinkOn = false;
bool e6plinkOn = false;
bool e7plinkOn = false;
bool e8plinkOn = false;
bool e9plinkOn = false;
bool e10plinkOn = false;
bool e1projectile = false;
bool e2projectile = false;
bool e3projectile = false;
bool e4projectile = false;
bool e5projectile = false;
bool e6projectile = false;
bool e7projectile = false;
bool e8projectile = false;
bool e9projectile = false;
bool e10projectile = false;
bool e1projRef = false;
bool e2projRef = false;
bool e3projRef = false;
bool e4projRef = false;
bool e5projRef = false;
bool e6projRef = false;
bool e7projRef = false;
bool e8projRef = false;
bool e9projRef = false;
bool e10projRef = false;
bool e1projRefY, e2projRefY, e3projRefY, e4projRefY, e5projRefY, e6projRefY,
e7projRefY, e8projRefY, e9projRefY, e10projRefY = false;
bool e1burn, e2burn, e3burn, e4burn, e5burn, e6burn, e7burn, e8burn, e9burn,
e10burn = false;
bool e1shock, e2shock, e3shock, e4shock, e5shock, e6shock, e7shock, e8shock,
e9shock, e10shock = false;
bool e11spawn = false;
bool e11frozen = false;
bool e11shoot = false;
bool e11invulnerable = false;
bool e11faceR = false;
bool e11knockback = false;
bool e11knockbackRes = false;
bool e11onGround = true;
bool e11proximity = false;
bool e11touchWallR = false;
bool e11touchWallL = false;
bool e11breathhit = false;
bool e11clawhit = false;
bool e11hit = false;
bool e11peaceful = false;
bool e11frRes = false;
bool e11peaceRes = false;
bool e11coins = false;
bool e11smoke = false;
bool e11coinTouch = false;
bool e11BurnVul = false;
bool e11ShockVul = false;
bool e11altAnim = false;
bool e12spawn = false;
bool e12frozen = false;
bool e12shoot = false;
bool e12invulnerable = false;
bool e12faceR = false;
bool e12knockback = false;
bool e12knockbackRes = false;
bool e12onGround = true;
bool e12proximity = false;
bool e12touchWallR = false;
bool e12touchWallL = false;
bool e12breathhit = false;
bool e12clawhit = false;
bool e12hit = false;
bool e12peaceful = false;
bool e12frRes = false;
bool e12peaceRes = false;
bool e12coins = false;
bool e12smoke = false;
bool e12coinTouch = false;
bool e12BurnVul = false;
bool e12ShockVul = false;
bool e12altAnim = false;
bool e13spawn = false;
bool e13frozen = false;
bool e13shoot = false;
bool e13invulnerable = false;
bool e13faceR = false;
bool e13knockback = false;
bool e13knockbackRes = false;
bool e13onGround = true;
bool e13proximity = false;
bool e13touchWallR = false;
bool e13touchWallL = false;
bool e13breathhit = false;
bool e13clawhit = false;
bool e13hit = false;
bool e13peaceful = false;
bool e13frRes = false;
bool e13peaceRes = false;
bool e13coins = false;
bool e13smoke = false;
bool e13coinTouch = false;
bool e13BurnVul = false;
bool e13ShockVul = false;
bool e13altAnim = false;
bool e14spawn = false;
bool e14frozen = false;
bool e14shoot = false;
bool e14invulnerable = false;
bool e14faceR = false;
bool e14knockback = false;
bool e14knockbackRes = false;
bool e14onGround = true;
bool e14proximity = false;
bool e14touchWallR = false;
bool e14touchWallL = false;
bool e14breathhit = false;
bool e14clawhit = false;
bool e14hit = false;
bool e14peaceful = false;
bool e14frRes = false;
bool e14peaceRes = false;
bool e14coins = false;
bool e14smoke = false;
bool e14coinTouch = false;
bool e14BurnVul = false;
bool e14ShockVul = false;
bool e14altAnim = false;
bool e15spawn = false;
bool e15frozen = false;
bool e15shoot = false;
bool e15invulnerable = false;
bool e15faceR = false;
bool e15knockback = false;
bool e15knockbackRes = false;
bool e15onGround = true;
bool e15proximity = false;
bool e15touchWallR = false;
bool e15touchWallL = false;
bool e15breathhit = false;
bool e15clawhit = false;
bool e15hit = false;
bool e15peaceful = false;
bool e15frRes = false;
bool e15peaceRes = false;
bool e15coins = false;
bool e15smoke = false;
bool e15coinTouch = false;
bool e15BurnVul = false;
bool e15ShockVul = false;
bool e15altAnim = false;
bool e16spawn = false;
bool e16frozen = false;
bool e16shoot = false;
bool e16invulnerable = false;
bool e16faceR = false;
bool e16knockback = false;
bool e16knockbackRes = false;
bool e16onGround = true;
bool e16proximity = false;
bool e16touchWallR = false;
bool e16touchWallL = false;
bool e16breathhit = false;
bool e16clawhit = false;
bool e16hit = false;
bool e16peaceful = false;
bool e16frRes = false;
bool e16peaceRes = false;
bool e16coins = false;
bool e16smoke = false;
bool e16coinTouch = false;
bool e16BurnVul = false;
bool e16ShockVul = false;
bool e16altAnim = false;
bool e17spawn = false;
bool e17frozen = false;
bool e17shoot = false;
bool e17invulnerable = false;
bool e17faceR = false;
bool e17knockback = false;
bool e17knockbackRes = false;
bool e17onGround = true;
bool e17proximity = false;
bool e17touchWallR = false;
bool e17touchWallL = false;
bool e17breathhit = false;
bool e17clawhit = false;
bool e17hit = false;
bool e17peaceful = false;
bool e17frRes = false;
bool e17peaceRes = false;
bool e17coins = false;
bool e17smoke = false;
bool e17coinTouch = false;
bool e17BurnVul = false;
bool e17ShockVul = false;
bool e17altAnim = false;
bool e18spawn = false;
bool e18frozen = false;
bool e18shoot = false;
bool e18invulnerable = false;
bool e18faceR = false;
bool e18knockback = false;
bool e18knockbackRes = false;
bool e18onGround = true;
bool e18proximity = false;
bool e18touchWallR = false;
bool e18touchWallL = false;
bool e18breathhit = false;
bool e18clawhit = false;
bool e18hit = false;
bool e18peaceful = false;
bool e18frRes = false;
bool e18peaceRes = false;
bool e18coins = false;
bool e18smoke = false;
bool e18coinTouch = false;
bool e18BurnVul = false;
bool e18ShockVul = false;
bool e18altAnim = false;
bool e19spawn = false;
bool e19frozen = false;
bool e19shoot = false;
bool e19invulnerable = false;
bool e19faceR = false;
bool e19knockback = false;
bool e19knockbackRes = false;
bool e19onGround = true;
bool e19proximity = false;
bool e19touchWallR = false;
bool e19touchWallL = false;
bool e19breathhit = false;
bool e19clawhit = false;
bool e19hit = false;
bool e19peaceful = false;
bool e19frRes = false;
bool e19peaceRes = false;
bool e19coins = false;
bool e19smoke = false;
bool e19coinTouch = false;
bool e19BurnVul = false;
bool e19ShockVul = false;
bool e19altAnim = false;
bool e20spawn = false;
bool e20frozen = false;
bool e20shoot = false;
bool e20invulnerable = false;
bool e20faceR = false;
bool e20knockback = false;
bool e20knockbackRes = false;
bool e20onGround = true;
bool e20proximity = false;
bool e20touchWallR = false;
bool e20touchWallL = false;
bool e20breathhit = false;
bool e20clawhit = false;
bool e20hit = false;
bool e20peaceful = false;
bool e20frRes = false;
bool e20peaceRes = false;
bool e20coins = false;
bool e20smoke = false;
bool e20coinTouch = false;
bool e20BurnVul = false;
bool e20ShockVul = false;
bool e20altAnim = false;
bool e11sparkleOn = false;
bool e12sparkleOn = false;
bool e13sparkleOn = false;
bool e14sparkleOn = false;
bool e15sparkleOn = false;
bool e16sparkleOn = false;
bool e17sparkleOn = false;
bool e18sparkleOn = false;
bool e19sparkleOn = false;
bool e20sparkleOn = false;
bool e11plinkOn = false;
bool e12plinkOn = false;
bool e13plinkOn = false;
bool e14plinkOn = false;
bool e15plinkOn = false;
bool e16plinkOn = false;
bool e17plinkOn = false;
bool e18plinkOn = false;
bool e19plinkOn = false;
bool e20plinkOn = false;
bool e11projectile = false;
bool e12projectile = false;
bool e13projectile = false;
bool e14projectile = false;
bool e15projectile = false;
bool e16projectile = false;
bool e17projectile = false;
bool e18projectile = false;
bool e19projectile = false;
bool e20projectile = false;
bool e11projRef = false;
bool e12projRef = false;
bool e13projRef = false;
bool e14projRef = false;
bool e15projRef = false;
bool e16projRef = false;
bool e17projRef = false;
bool e18projRef = false;
bool e19projRef = false;
bool e20projRef = false;
bool e11projRefY, e12projRefY, e13projRefY, e14projRefY, e15projRefY,
e16projRefY, e17projRefY, e18projRefY, e19projRefY, e20projRefY = false;
bool e11burn, e12burn, e13burn, e14burn, e15burn, e16burn, e17burn, e18burn,
e19burn, e20burn = false;
bool e11shock, e12shock, e13shock, e14shock, e15shock, e16shock, e17shock,
e18shock, e19shock, e20shock = false;
#endregion
//last key pressed
#region Last Key Pressed bool
bool lastKeyDown = false; //last key pressed = down
bool lastKeyUp = false; //last key pressed = up
bool lastKeyRight = false; //last key pressed = right
bool lastKeyLeft = false; //last key pressed = left
bool lastKeyA = false; //used to reset breathFrame
bool lastKeyZ = false; //to prevent Z spam
bool lastKeyX = false; //to prevent X spam
bool lastKeyQ = false; //to prevent Q spam
bool lastKeyW = false; //to prevent W spam
bool lastKeyC = false; //to prevent C repeat
bool lastKeyEsc = false; //to prevent Esc repeat
bool xWhileJumping = false; //to prevent hopping
#endregion
//system bool
#region System bool
bool titleScreen = true;
bool extraOn = false;
bool worldMap = false;
bool actionStage = false;
bool toTitleScreen = false;
bool toWorldMap = false;
bool defeated = false;
bool toActionStage = false;
bool endOfStage = false;
bool stageExit = false;
bool fadeWait = false;
bool toBlack = false;
bool savingGame = false;
bool controlInput = true;
bool depositedGP = false;
bool worldMapMenu = false;
bool levelUpMenu = false;
bool musicFade = false;
#endregion
//level bool
#region Level bool
bool stageHome = false;
bool toHome = false;
bool stage1e1 = false;
bool toStage1e1 = false;
bool stage1e2 = false;
bool toStage1e2 = false;
bool stage1e3 = false;
bool toStage1e3 = false;
bool stage1eB = false;
bool toStage1eB = false;
bool stage2e1 = false;
bool toStage2e1 = false;
bool stage2e2 = false;
bool toStage2e2 = false;
bool stage2e3 = false;
bool toStage2e3 = false;
bool stage2e4 = false;
bool toStage2e4 = false;
bool stage2eB = false;
bool toStage2eB = false;
bool stage3e1 = false;
bool toStage3e1 = false;
bool stage3e2 = false;
bool toStage3e2 = false;
bool stage3e3 = false;
bool toStage3e3 = false;
bool stage3eB = false;
bool toStage3eB = false;
bool stage4e1 = false;
bool toStage4e1 = false;
bool stage4e2 = false;
bool toStage4e2 = false;
bool stage4e3 = false;
bool toStage4e3 = false;
bool stage4e4 = false;
bool toStage4e4 = false;
bool stage4eB = false;
bool toStage4eB = false;
bool stage5e1 = false;
bool toStage5e1 = false;
bool stage5e2 = false;
bool toStage5e2 = false;
bool stage5eB = false;
bool toStage5eB = false;
bool stage6e1 = false;
bool toStage6e1 = false;
bool stage6eB = false;
bool toStage6eB = false;
bool stage7eB = false;
bool toStage7eB_1 = false;
bool toStage7eB_2 = false;
#endregion
//storybook bool
#region Storybook bool
bool toStory = false;
bool storybook = false;
bool story1 = false;
bool story1_2pre = false;
bool story1_Bpre = false;
bool story1_Bpost = false;
bool story2_2post = false;
bool story2_Bpre = false;
bool story2_Bpost = false;
bool story3_Bpre = false;
bool story3_Bpost = false;
bool story4_4post = false;
bool story4_Bpre = false;
bool story4_Bpost = false;
bool story5_Bpre = false;
bool story5_Bpost = false;
bool story6_1post = false;
bool story7_Bpre = false;
bool story7_Bmid = false;
bool storybookEnding = false;
bool storybookCredits = false;
bool pg1turn = false;
bool pg2turn = false;
bool pg3turn = false;
bool pg4turn = false;
bool pg5turn = false;
bool pg6turn = false;
bool pg7turn = false;
bool textFadeOut = false;
bool textFadeIn = false;
bool seenStory1_2 = false;
bool seenStory1_B = false;
bool seenStory2_2 = false;
bool seenStory2_B = false;
bool seenStory3_B = false;
bool seenStory4_4 = false;
bool seenStory4_B = false;
bool seenStory5_B = false;
bool seenStory6_1 = false;
bool seenStory7_B = false;
bool pageTurnWait = false;
#endregion
//music bool
#region Music bool
bool storyHappy = false;
bool storyEnemy = false;
bool storyPulse = false;
bool storyEnd = false;
bool titleMusic = false;
bool worldMapMusic = false;
bool stageMusic = false;
bool creditsMusic = false;
bool playTitle = false;
bool playTreasure = false;
bool playDefeat = false;
bool playExit = false;
#endregion
bool overlayUp = false;
bool overlayDown = false;
bool drawOverlay = false;
bool seenEvent1 = false;
bool seenEvent2 = false;
bool levelPageOn = false;
bool levelPageOff = false;
bool home1F = true;
bool home2F = false;
#endregion
#region Rectangle
Rectangle talk2e3 = new Rectangle(0, 0, 0, 0);
Rectangle Clawframe = new Rectangle(0, 0, 0, 0);
Rectangle Breathframe = new Rectangle(0, 0, 0, 0);
Rectangle BreathHitbox = new Rectangle(0, 0, 0, 0);
Rectangle ClawHitbox = new Rectangle(0, 0, 0, 0);
Rectangle drgnpipDL = new Rectangle(0, 0, 0, 0);
Rectangle drgnpipDC = new Rectangle(0, 0, 0, 0);
Rectangle drgnpipDR = new Rectangle(0, 0, 0, 0);
Rectangle drgnpipCL = new Rectangle(0, 0, 0, 0);
Rectangle drgnpipCR = new Rectangle(0, 0, 0, 0);
Rectangle drgnpipUL = new Rectangle(0, 0, 0, 0);
Rectangle drgnpipUC = new Rectangle(0, 0, 0, 0);
Rectangle drgnpipUR = new Rectangle(0, 0, 0, 0);
Rectangle drgnhitboxHead = new Rectangle(0, 0, 0, 0);
Rectangle drgnhitbox = new Rectangle(0, 0, 0, 0);
#region floor
Rectangle floor1 = new Rectangle(3102, 200, 6098, 50);
Rectangle floor2 = new Rectangle(6202, 063, 453, 10);
Rectangle floor3 = new Rectangle(6759, 947, 418, 10);
Rectangle floor4 = new Rectangle(7315, 818, 352, 10);
Rectangle floor5 = new Rectangle(7847, 694, 175, 10);
Rectangle floor6 = new Rectangle(7518, 634, 147, 10);
Rectangle floor7 = new Rectangle(8117, 572, 173, 10);
Rectangle floor8 = new Rectangle(7775, 443, 198, 10);
Rectangle floor9 = new Rectangle(7205, 446, 294, 10);
Rectangle floor10 = new Rectangle(6962, 4328, 90, 10);
Rectangle floor11 = new Rectangle(6764, 4200, 53, 10);
Rectangle floor12 = new Rectangle(6563, 4076, 59, 10);
Rectangle floor13 = new Rectangle(6158, 4071, 193, 10);
Rectangle floor14 = new Rectangle(6735, 3949, 248, 10);
Rectangle floor15 = new Rectangle(7107, 3821, 770, 10);
Rectangle floor16 = new Rectangle(6974, 3700, 106, 10);
Rectangle floor17 = new Rectangle(7444, 3697, 94, 10);
Rectangle floor18 = new Rectangle(6575, 3572, 240, 10);
Rectangle floor19 = new Rectangle(7680, 3568, 56, 10);
Rectangle floor20 = new Rectangle(7935, 3560, 56, 10);
Rectangle floor21 = new Rectangle(8110, 3446, 185, 10);
Rectangle floor22 = new Rectangle(6242, 3445, 271, 10);
Rectangle floor23 = new Rectangle(6847, 3314, 43, 10);
Rectangle floor24 = new Rectangle(7060, 3317, 33, 10);
Rectangle floor25 = new Rectangle(7276, 3318, 40, 10);
Rectangle floor26 = new Rectangle(7441, 3318, 32, 10);
Rectangle floor27 = new Rectangle(7636, 3318, 49, 10);
Rectangle floor28 = new Rectangle(7890, 3311, 79, 10);
Rectangle floor29 = new Rectangle(6271, 3187, 432, 10);
Rectangle floor30 = new Rectangle(6851, 3066, 112, 10);
Rectangle floor31 = new Rectangle(7258, 3070, 50, 10);
Rectangle floor32 = new Rectangle(7401, 3070, 48, 10);
Rectangle floor33 = new Rectangle(7536, 3070, 49, 10);
Rectangle floor34 = new Rectangle(7681, 3072, 49, 10);
Rectangle floor35 = new Rectangle(7084, 2939, 59, 10);
Rectangle floor36 = new Rectangle(7773, 2940, 158, 10);
Rectangle floor37 = new Rectangle(7642, 2817, 54, 10);
Rectangle floor38 = new Rectangle(7302, 2689, 249, 10);
Rectangle floor39 = new Rectangle(7119, 2572, 89, 10);
Rectangle floor40 = new Rectangle(6820, 2440, 185, 10);
Rectangle floor41 = new Rectangle(6620, 2314, 47, 10);
Rectangle floor42 = new Rectangle(6466, 2188, 39, 10);
Rectangle floor43 = new Rectangle(6560, 2060, 43, 10);
Rectangle floor44 = new Rectangle(6459, 1939, 42, 10);
Rectangle floor45 = new Rectangle(6579, 1817, 42, 10);
Rectangle floor46 = new Rectangle(6757, 1816, 183, 10);
Rectangle floor47 = new Rectangle(6666, 1687, 43, 10);
Rectangle floor48 = new Rectangle(6760, 1568, 43, 10);
Rectangle floor49 = new Rectangle(6594, 1444, 85, 10);
Rectangle floor50 = new Rectangle(6916, 1449, 52, 10);
Rectangle floor51 = new Rectangle(7097, 1447, 80, 10);
Rectangle floor52 = new Rectangle(7288, 1448, 50, 10);
Rectangle floor53 = new Rectangle(7448, 1564, 34, 10);
Rectangle floor54 = new Rectangle(7518, 1690, 37, 10);
Rectangle floor55 = new Rectangle(7593, 1810, 31, 10);
Rectangle floor56 = new Rectangle(7661, 1934, 37, 10);
Rectangle floor57 = new Rectangle(7759, 2064, 56, 10);
Rectangle floor58 = new Rectangle(7826, 2192, 2091, 10);
Rectangle floor59 = new Rectangle(8032, 1944, 732, 10);
Rectangle floor60 = new Rectangle(3624, 3530, 2526, 10); //NO CHANGE
Rectangle floor61 = new Rectangle(5531, 3275, 197, 10);
Rectangle floor62 = new Rectangle(4433, 3149, 545, 10);
Rectangle floor63 = new Rectangle(5172, 3143, 263, 10);
Rectangle floor64 = new Rectangle(4225, 3017, 98, 10);
Rectangle floor65 = new Rectangle(5509, 3019, 123, 10);
Rectangle floor66 = new Rectangle(5780, 3014, 207, 10);
Rectangle floor67 = new Rectangle(4457, 2896, 948, 10);
Rectangle floor68 = new Rectangle(4228, 2768, 180, 10);
Rectangle floor69 = new Rectangle(4623, 2641, 313, 10);
Rectangle floor70 = new Rectangle(4215, 2525, 321, 10);
Rectangle floor71 = new Rectangle(5045, 2523, 63, 10);
Rectangle floor72 = new Rectangle(5200, 2520, 49, 10);
Rectangle floor73 = new Rectangle(5335, 2525, 250, 10);
Rectangle floor74 = new Rectangle(4372, 2390, 338, 10);
Rectangle floor75 = new Rectangle(5443, 2396, 44, 10);
Rectangle floor76 = new Rectangle(5643, 2397, 97, 10);
Rectangle floor77 = new Rectangle(4227, 2270, 68, 10);
Rectangle floor78 = new Rectangle(5146, 2276, 117, 10);
Rectangle floor79 = new Rectangle(5353, 2279, 42, 10);
Rectangle floor80 = new Rectangle(4358, 2143, 186, 10);
Rectangle floor81 = new Rectangle(4718, 2153, 324, 10);
Rectangle floor82 = new Rectangle(5110, 2153, 41, 10);
Rectangle floor83 = new Rectangle(5278, 2155, 45, 10);
Rectangle floor84 = new Rectangle(4608, 2021, 44, 10);
Rectangle floor85 = new Rectangle(5384, 2030, 43, 10);
Rectangle floor86 = new Rectangle(4405, 1900, 148, 10);
Rectangle floor87 = new Rectangle(4703, 1903, 43, 10);
Rectangle floor88 = new Rectangle(5472, 1897, 43, 10);
Rectangle floor89 = new Rectangle(4829, 1778, 38, 10);
Rectangle floor90 = new Rectangle(5373, 1777, 46, 10);
Rectangle floor91 = new Rectangle(4729, 1634, 47, 10);
Rectangle floor92 = new Rectangle(5295, 1646, 41, 10);
Rectangle floor93 = new Rectangle(4863, 1520, 371, 10);
Rectangle floor94 = new Rectangle(5403, 1517, 49, 10);
Rectangle floor95 = new Rectangle(5293, 1404, 33, 10);
Rectangle floor96 = new Rectangle(5187, 1278, 41, 10);
Rectangle floor97 = new Rectangle(5293, 1155, 48, 10);
Rectangle floor98 = new Rectangle(5366, 1030, 40, 10);
Rectangle floor99 = new Rectangle(5444, 907, 43, 10);
Rectangle floor100 = new Rectangle(5180, 1781, 121, 10);
Rectangle floor101 = new Rectangle(5105, 1652, 41, 10);
Rectangle floor102 = new Rectangle(5033, 2533, 46, 10);
Rectangle floor103 = new Rectangle(5125, 3405, 34, 10);
Rectangle floor104 = new Rectangle(5070, 4287, 27, 10);
Rectangle floor105 = new Rectangle(3394, 52331, 471, 10); //NO CHANGE
Rectangle floor106 = new Rectangle(3892, 2779, 35, 10); // NO CHANGE
Rectangle floor107 = new Rectangle(3926, 3059, 53, 10); //NO CHANGE
Rectangle floor108 = new Rectangle(3307, 2696, 166, 10); // NO CHANGE
Rectangle floor109 = new Rectangle(3229, 3227, 167, 10); // NO CHANGE
Rectangle floor110 = new Rectangle(3175, 3694, 99, 10); // NO CHANGE
Rectangle floor111 = new Rectangle(3115, 3921, 160, 10); //NO CHANGE
Rectangle floor112 = new Rectangle(3031, 4516, 177, 10); // NO CHANGE
Rectangle floor113 = new Rectangle(2988, 5112, 649, 10); // NO CHANGE
Rectangle floor114 = new Rectangle(2355, 369, 29, 10);
Rectangle floor115 = new Rectangle(2308, 500, 31, 10);
Rectangle floor116 = new Rectangle(2255, 625, 33, 10);
Rectangle floor117 = new Rectangle(2371, 624, 40, 10);
Rectangle floor118 = new Rectangle(2464, 621, 35, 10);
Rectangle floor119 = new Rectangle(1907, 750, 37, 10);
Rectangle floor120 = new Rectangle(2332, 750, 134, 10);
Rectangle floor121 = new Rectangle(1813, 1872, 30, 10);
Rectangle floor122 = new Rectangle(1772, 1004, 32, 10);
Rectangle floor123 = new Rectangle(2346, 3989, 33, 10);
Rectangle floor124 = new Rectangle(1733, 1123, 33, 10);
Rectangle floor125 = new Rectangle(2459, 1116, 138, 10);
Rectangle floor126 = new Rectangle(1787, 1252, 30, 10);
Rectangle floor127 = new Rectangle(2681, 1246, 50, 10);
Rectangle floor128 = new Rectangle(1719, 1367, 229, 10);
Rectangle floor129 = new Rectangle(2731, 1371, 33, 10);
Rectangle floor130 = new Rectangle(1982, 1486, 36, 10);
Rectangle floor131 = new Rectangle(2862, 1495, 49, 10);
Rectangle floor132 = new Rectangle(1926, 1618, 28, 10);
Rectangle floor133 = new Rectangle(2942, 1617, 66, 10);
Rectangle floor134 = new Rectangle(1980, 1742, 26, 10);
Rectangle floor135 = new Rectangle(2731, 1733, 156, 10);
Rectangle floor136 = new Rectangle(2055, 1866, 46, 10);
Rectangle floor137 = new Rectangle(2649, 1860, 37, 10);
Rectangle floor138 = new Rectangle(2141, 1989, 51, 10);
Rectangle floor139 = new Rectangle(2742, 1988, 39, 10);
Rectangle floor140 = new Rectangle(2209, 2106, 36, 10);
Rectangle floor141 = new Rectangle(2826, 2102, 34, 10);
Rectangle floor142 = new Rectangle(2251, 2233, 33, 10);
Rectangle floor143 = new Rectangle(2896, 2234, 40, 10);
Rectangle floor144 = new Rectangle(1756, 2356, 35, 10);
Rectangle floor145 = new Rectangle(2203, 2356, 39, 10);
Rectangle floor146 = new Rectangle(3017, 2355, 275, 10);
Rectangle floor147 = new Rectangle(1667, 2486, 37, 10);
Rectangle floor148 = new Rectangle(1886, 2485, 133, 10);
Rectangle floor149 = new Rectangle(2083, 2484, 22, 10);
Rectangle floor150 = new Rectangle(2610, 2482, 280, 10);
Rectangle floor151 = new Rectangle(1618, 2754, 106, 10);
Rectangle floor152 = new Rectangle(1853, 2749, 67, 10);
Rectangle floor153 = new Rectangle(2161, 2735, 375, 10);
Rectangle floor154 = new Rectangle(2987, 2726, 123, 10);
Rectangle floor155 = new Rectangle(2024, 2863, 55, 10);
Rectangle floor156 = new Rectangle(2688, 2981, 172, 10);
Rectangle floor157 = new Rectangle(2485, 3219, 137, 10);
Rectangle floor158 = new Rectangle(2977, 3223, 38, 10);
Rectangle floor159 = new Rectangle(2917, 3352, 25, 10);
Rectangle floor160 = new Rectangle(1797, 3473, 248, 10);
Rectangle floor161 = new Rectangle(2284, 3468, 134, 10);
Rectangle floor162 = new Rectangle(2989, 3469, 37, 10);
Rectangle floor163 = new Rectangle(1403, 3662, 37, 10);
Rectangle floor164 = new Rectangle(2400, 3660, 459, 10);
Rectangle floor165 = new Rectangle(1530, 3788, 98, 10);
Rectangle floor166 = new Rectangle(2043, 3781, 275, 10);
Rectangle floor167 = new Rectangle(1285, 3914, 37, 10);
Rectangle floor168 = new Rectangle(1443, 3909, 44, 10);
Rectangle floor169 = new Rectangle(1871, 3913, 114, 10);
Rectangle floor170 = new Rectangle(2895, 3912, 38, 10);
Rectangle floor171 = new Rectangle(1225, 4033, 254, 10);
Rectangle floor172 = new Rectangle(2884, 4021, 212, 10);
Rectangle floor173 = new Rectangle(1558, 4156, 279, 10);
Rectangle floor174 = new Rectangle(2710, 4153, 133, 10);
Rectangle floor175 = new Rectangle(1894, 4282, 708, 10);
Rectangle floor176 = new Rectangle(2632, 4401, 39, 10);
Rectangle floor177 = new Rectangle(1291, 4535, 48, 10);
Rectangle floor178 = new Rectangle(1370, 4532, 35, 10);
Rectangle floor179 = new Rectangle(1625, 4528, 151, 10);
Rectangle floor180 = new Rectangle(2710, 4523, 58, 10);
Rectangle floor181 = new Rectangle(1209, 4662, 381, 10);
Rectangle floor182 = new Rectangle(1836, 4662, 41, 10);
Rectangle floor183 = new Rectangle(2609, 4652, 41, 10);
Rectangle floor184 = new Rectangle(2343, 4781, 85, 10);
Rectangle floor185 = new Rectangle(2511, 4777, 43, 10);
Rectangle floor186 = new Rectangle(1832, 4916, 34, 10);
Rectangle floor187 = new Rectangle(2444, 4910, 39, 10);
Rectangle floor188 = new Rectangle(2093, 5033, 305, 10);
Rectangle floor189 = new Rectangle(2476, 5152, 303, 10);
Rectangle floor190 = new Rectangle(1610, 5280, 53, 10);
Rectangle floor191 = new Rectangle(1852, 5276, 199, 10);
Rectangle floor192 = new Rectangle(2914, 5284, 47, 10);
Rectangle floor193 = new Rectangle(0, 5416, 2997, 10); //NO CHANGE
Rectangle floor194 = new Rectangle(1753, 2613, 44, 10);
#endregion
#region temp wall L
Rectangle L1 = new Rectangle(0, 0, 0, 0);
Rectangle L2 = new Rectangle(0, 0, 0, 0);
Rectangle L3 = new Rectangle(0, 0, 0, 0);
Rectangle L4 = new Rectangle(0, 0, 0, 0);
Rectangle L5 = new Rectangle(0, 0, 0, 0);
Rectangle L6 = new Rectangle(0, 0, 0, 0);
Rectangle L7 = new Rectangle(0, 0, 0, 0);
Rectangle L8 = new Rectangle(0, 0, 0, 0);
Rectangle L9 = new Rectangle(0, 0, 0, 0);
Rectangle L10 = new Rectangle(0, 0, 0, 0);
Rectangle L11 = new Rectangle(0, 0, 0, 0);
Rectangle L12 = new Rectangle(0, 0, 0, 0);
Rectangle L13 = new Rectangle(0, 0, 0, 0);
Rectangle L14 = new Rectangle(0, 0, 0, 0);
Rectangle L15 = new Rectangle(0, 0, 0, 0);
Rectangle L16 = new Rectangle(0, 0, 0, 0);
Rectangle L17 = new Rectangle(0, 0, 0, 0);
Rectangle L18 = new Rectangle(0, 0, 0, 0);
Rectangle L19 = new Rectangle(0, 0, 0, 0);
Rectangle L20 = new Rectangle(0, 0, 0, 0);
Rectangle L21 = new Rectangle(0, 0, 0, 0);
Rectangle L22 = new Rectangle(0, 0, 0, 0);
Rectangle L23 = new Rectangle(0, 0, 0, 0);
Rectangle L24 = new Rectangle(0, 0, 0, 0);
Rectangle L25 = new Rectangle(0, 0, 0, 0);
Rectangle L26 = new Rectangle(0, 0, 0, 0);
Rectangle L27 = new Rectangle(0, 0, 0, 0);
Rectangle L28 = new Rectangle(0, 0, 0, 0);
Rectangle L29 = new Rectangle(0, 0, 0, 0);
Rectangle L30 = new Rectangle(0, 0, 0, 0);
Rectangle L31 = new Rectangle(0, 0, 0, 0);
Rectangle L32 = new Rectangle(0, 0, 0, 0);
Rectangle L33 = new Rectangle(0, 0, 0, 0);
Rectangle L34 = new Rectangle(0, 0, 0, 0);
Rectangle L35 = new Rectangle(0, 0, 0, 0);
Rectangle L36 = new Rectangle(0, 0, 0, 0);
Rectangle L37 = new Rectangle(0, 0, 0, 0);
Rectangle L38 = new Rectangle(0, 0, 0, 0);
Rectangle L39 = new Rectangle(0, 0, 0, 0);
Rectangle L40 = new Rectangle(0, 0, 0, 0);
Rectangle L41 = new Rectangle(0, 0, 0, 0);
Rectangle L42 = new Rectangle(0, 0, 0, 0);
Rectangle L43 = new Rectangle(0, 0, 0, 0);
Rectangle L44 = new Rectangle(0, 0, 0, 0);
Rectangle L45 = new Rectangle(0, 0, 0, 0);
Rectangle L46 = new Rectangle(0, 0, 0, 0);
Rectangle L47 = new Rectangle(0, 0, 0, 0);
Rectangle L48 = new Rectangle(0, 0, 0, 0);
Rectangle L49 = new Rectangle(0, 0, 0, 0);
Rectangle L50 = new Rectangle(0, 0, 0, 0);
Rectangle L51 = new Rectangle(0, 0, 0, 0);
Rectangle L52 = new Rectangle(0, 0, 0, 0);
Rectangle L53 = new Rectangle(0, 0, 0, 0);
Rectangle L54 = new Rectangle(0, 0, 0, 0);
Rectangle L55 = new Rectangle(0, 0, 0, 0);
Rectangle L56 = new Rectangle(0, 0, 0, 0);
Rectangle L57 = new Rectangle(0, 0, 0, 0);
Rectangle L58 = new Rectangle(0, 0, 0, 0);
Rectangle L59 = new Rectangle(0, 0, 0, 0);
Rectangle L60 = new Rectangle(0, 0, 0, 0);
Rectangle L61 = new Rectangle(0, 0, 0, 0);
Rectangle L62 = new Rectangle(0, 0, 0, 0);
Rectangle L63 = new Rectangle(0, 0, 0, 0);
Rectangle L64 = new Rectangle(0, 0, 0, 0);
Rectangle L65 = new Rectangle(0, 0, 0, 0);
Rectangle L66 = new Rectangle(0, 0, 0, 0);
Rectangle L67 = new Rectangle(0, 0, 0, 0);
Rectangle L68 = new Rectangle(0, 0, 0, 0);
Rectangle L69 = new Rectangle(0, 0, 0, 0);
Rectangle L70 = new Rectangle(0, 0, 0, 0);
Rectangle L71 = new Rectangle(0, 0, 0, 0);
Rectangle L72 = new Rectangle(0, 0, 0, 0);
Rectangle L73 = new Rectangle(0, 0, 0, 0);
Rectangle L74 = new Rectangle(0, 0, 0, 0);
Rectangle L75 = new Rectangle(0, 0, 0, 0);
Rectangle L76 = new Rectangle(0, 0, 0, 0);
Rectangle L77 = new Rectangle(0, 0, 0, 0);
Rectangle L78 = new Rectangle(0, 0, 0, 0);
Rectangle L79 = new Rectangle(0, 0, 0, 0);
Rectangle L80 = new Rectangle(0, 0, 0, 0);
Rectangle L81 = new Rectangle(0, 0, 0, 0);
Rectangle L82 = new Rectangle(0, 0, 0, 0);
Rectangle L83 = new Rectangle(0, 0, 0, 0);
Rectangle L84 = new Rectangle(0, 0, 0, 0);
Rectangle L85 = new Rectangle(0, 0, 0, 0);
Rectangle L86 = new Rectangle(0, 0, 0, 0);
Rectangle L87 = new Rectangle(0, 0, 0, 0);
Rectangle L88 = new Rectangle(0, 0, 0, 0);
Rectangle L89 = new Rectangle(0, 0, 0, 0);
Rectangle L90 = new Rectangle(0, 0, 0, 0);
Rectangle L91 = new Rectangle(0, 0, 0, 0);
Rectangle L92 = new Rectangle(0, 0, 0, 0);
Rectangle L93 = new Rectangle(0, 0, 0, 0);
Rectangle L94 = new Rectangle(0, 0, 0, 0);
Rectangle L95 = new Rectangle(0, 0, 0, 0);
Rectangle L96 = new Rectangle(0, 0, 0, 0);
Rectangle L97 = new Rectangle(0, 0, 0, 0);
Rectangle L98 = new Rectangle(0, 0, 0, 0);
Rectangle L99 = new Rectangle(0, 0, 0, 0);
Rectangle L100 = new Rectangle(0, 0, 0, 0);
Rectangle L101 = new Rectangle(0, 0, 0, 0);
Rectangle L102 = new Rectangle(0, 0, 0, 0);
Rectangle L103 = new Rectangle(0, 0, 0, 0);
Rectangle L104 = new Rectangle(0, 0, 0, 0);
Rectangle L105 = new Rectangle(0, 0, 0, 0);
Rectangle L106 = new Rectangle(0, 0, 0, 0);
Rectangle L107 = new Rectangle(0, 0, 0, 0);
Rectangle L108 = new Rectangle(0, 0, 0, 0);
Rectangle L109 = new Rectangle(0, 0, 0, 0);
Rectangle L110 = new Rectangle(0, 0, 0, 0);
Rectangle L111 = new Rectangle(0, 0, 0, 0);
Rectangle L112 = new Rectangle(0, 0, 0, 0);
Rectangle L113 = new Rectangle(0, 0, 0, 0);
Rectangle L114 = new Rectangle(0, 0, 0, 0);
Rectangle L115 = new Rectangle(0, 0, 0, 0);
Rectangle L116 = new Rectangle(0, 0, 0, 0);
Rectangle L117 = new Rectangle(0, 0, 0, 0);
Rectangle L118 = new Rectangle(0, 0, 0, 0);
Rectangle L119 = new Rectangle(0, 0, 0, 0);
Rectangle L120 = new Rectangle(0, 0, 0, 0);
Rectangle L121 = new Rectangle(0, 0, 0, 0);
Rectangle L122 = new Rectangle(0, 0, 0, 0);
Rectangle L123 = new Rectangle(0, 0, 0, 0);
Rectangle L124 = new Rectangle(0, 0, 0, 0);
Rectangle L125 = new Rectangle(0, 0, 0, 0);
Rectangle L126 = new Rectangle(0, 0, 0, 0);
Rectangle L127 = new Rectangle(0, 0, 0, 0);
Rectangle L128 = new Rectangle(0, 0, 0, 0);
Rectangle L129 = new Rectangle(0, 0, 0, 0);
Rectangle L130 = new Rectangle(0, 0, 0, 0);
Rectangle L131 = new Rectangle(0, 0, 0, 0);
#endregion
#region temp wall R
Rectangle R1 = new Rectangle(0, 0, 0, 0);
Rectangle R2 = new Rectangle(0, 0, 0, 0);
Rectangle R3 = new Rectangle(0, 0, 0, 0);
Rectangle R4 = new Rectangle(0, 0, 0, 0);
Rectangle R5 = new Rectangle(0, 0, 0, 0);
Rectangle R6 = new Rectangle(0, 0, 0, 0);
Rectangle R7 = new Rectangle(0, 0, 0, 0);
Rectangle R8 = new Rectangle(0, 0, 0, 0);
Rectangle R9 = new Rectangle(0, 0, 0, 0);
Rectangle R10 = new Rectangle(0, 0, 0, 0);
Rectangle R11 = new Rectangle(0, 0, 0, 0);
Rectangle R12 = new Rectangle(0, 0, 0, 0);
Rectangle R13 = new Rectangle(0, 0, 0, 0);
Rectangle R14 = new Rectangle(0, 0, 0, 0);
Rectangle R15 = new Rectangle(0, 0, 0, 0);
Rectangle R16 = new Rectangle(0, 0, 0, 0);
Rectangle R17 = new Rectangle(0, 0, 0, 0);
Rectangle R18 = new Rectangle(0, 0, 0, 0);
Rectangle R19 = new Rectangle(0, 0, 0, 0);
Rectangle R20 = new Rectangle(0, 0, 0, 0);
Rectangle R21 = new Rectangle(0, 0, 0, 0);
Rectangle R22 = new Rectangle(0, 0, 0, 0);
Rectangle R23 = new Rectangle(0, 0, 0, 0);
Rectangle R24 = new Rectangle(0, 0, 0, 0);
Rectangle R25 = new Rectangle(0, 0, 0, 0);
Rectangle R26 = new Rectangle(0, 0, 0, 0);
Rectangle R27 = new Rectangle(0, 0, 0, 0);
Rectangle R28 = new Rectangle(0, 0, 0, 0);
Rectangle R29 = new Rectangle(0, 0, 0, 0);
Rectangle R30 = new Rectangle(0, 0, 0, 0);
Rectangle R31 = new Rectangle(0, 0, 0, 0);
Rectangle R32 = new Rectangle(0, 0, 0, 0);
Rectangle R33 = new Rectangle(0, 0, 0, 0);
Rectangle R34 = new Rectangle(0, 0, 0, 0);
Rectangle R35 = new Rectangle(0, 0, 0, 0);
Rectangle R36 = new Rectangle(0, 0, 0, 0);
Rectangle R37 = new Rectangle(0, 0, 0, 0);
Rectangle R38 = new Rectangle(0, 0, 0, 0);
Rectangle R39 = new Rectangle(0, 0, 0, 0);
Rectangle R40 = new Rectangle(0, 0, 0, 0);
Rectangle R41 = new Rectangle(0, 0, 0, 0);
Rectangle R42 = new Rectangle(0, 0, 0, 0);
Rectangle R43 = new Rectangle(0, 0, 0, 0);
Rectangle R44 = new Rectangle(0, 0, 0, 0);
Rectangle R45 = new Rectangle(0, 0, 0, 0);
Rectangle R46 = new Rectangle(0, 0, 0, 0);
Rectangle R47 = new Rectangle(0, 0, 0, 0);
Rectangle R48 = new Rectangle(0, 0, 0, 0);
Rectangle R49 = new Rectangle(0, 0, 0, 0);
Rectangle R50 = new Rectangle(0, 0, 0, 0);
Rectangle R51 = new Rectangle(0, 0, 0, 0);
Rectangle R52 = new Rectangle(0, 0, 0, 0);
Rectangle R53 = new Rectangle(0, 0, 0, 0);
Rectangle R54 = new Rectangle(0, 0, 0, 0);
Rectangle R55 = new Rectangle(0, 0, 0, 0);
Rectangle R56 = new Rectangle(0, 0, 0, 0);
Rectangle R57 = new Rectangle(0, 0, 0, 0);
Rectangle R58 = new Rectangle(0, 0, 0, 0);
Rectangle R59 = new Rectangle(0, 0, 0, 0);
Rectangle R60 = new Rectangle(0, 0, 0, 0);
Rectangle R61 = new Rectangle(0, 0, 0, 0);
Rectangle R62 = new Rectangle(0, 0, 0, 0);
Rectangle R63 = new Rectangle(0, 0, 0, 0);
Rectangle R64 = new Rectangle(0, 0, 0, 0);
Rectangle R65 = new Rectangle(0, 0, 0, 0);
Rectangle R66 = new Rectangle(0, 0, 0, 0);
Rectangle R67 = new Rectangle(0, 0, 0, 0);
Rectangle R68 = new Rectangle(0, 0, 0, 0);
Rectangle R69 = new Rectangle(0, 0, 0, 0);
Rectangle R70 = new Rectangle(0, 0, 0, 0);
Rectangle R71 = new Rectangle(0, 0, 0, 0);
Rectangle R72 = new Rectangle(0, 0, 0, 0);
Rectangle R73 = new Rectangle(0, 0, 0, 0);
Rectangle R74 = new Rectangle(0, 0, 0, 0);
Rectangle R75 = new Rectangle(0, 0, 0, 0);
Rectangle R76 = new Rectangle(0, 0, 0, 0);
Rectangle R77 = new Rectangle(0, 0, 0, 0);
Rectangle R78 = new Rectangle(0, 0, 0, 0);
Rectangle R79 = new Rectangle(0, 0, 0, 0);
Rectangle R80 = new Rectangle(0, 0, 0, 0);
Rectangle R81 = new Rectangle(0, 0, 0, 0);
Rectangle R82 = new Rectangle(0, 0, 0, 0);
Rectangle R83 = new Rectangle(0, 0, 0, 0);
Rectangle R84 = new Rectangle(0, 0, 0, 0);
Rectangle R85 = new Rectangle(0, 0, 0, 0);
Rectangle R86 = new Rectangle(0, 0, 0, 0);
Rectangle R87 = new Rectangle(0, 0, 0, 0);
Rectangle R88 = new Rectangle(0, 0, 0, 0);
Rectangle R89 = new Rectangle(0, 0, 0, 0);
Rectangle R90 = new Rectangle(0, 0, 0, 0);
Rectangle R91 = new Rectangle(0, 0, 0, 0);
Rectangle R92 = new Rectangle(0, 0, 0, 0);
Rectangle R93 = new Rectangle(0, 0, 0, 0);
Rectangle R94 = new Rectangle(0, 0, 0, 0);
Rectangle R95 = new Rectangle(0, 0, 0, 0);
Rectangle R96 = new Rectangle(0, 0, 0, 0);
Rectangle R97 = new Rectangle(0, 0, 0, 0);
Rectangle R98 = new Rectangle(0, 0, 0, 0);
Rectangle R99 = new Rectangle(0, 0, 0, 0);
Rectangle R100 = new Rectangle(0, 0, 0, 0);
Rectangle R101 = new Rectangle(0, 0, 0, 0);
Rectangle R102 = new Rectangle(0, 0, 0, 0);
Rectangle R103 = new Rectangle(0, 0, 0, 0);
Rectangle R104 = new Rectangle(0, 0, 0, 0);
Rectangle R105 = new Rectangle(0, 0, 0, 0);
Rectangle R106 = new Rectangle(0, 0, 0, 0);
Rectangle R107 = new Rectangle(0, 0, 0, 0);
Rectangle R108 = new Rectangle(0, 0, 0, 0);
Rectangle R109 = new Rectangle(0, 0, 0, 0);
Rectangle R110 = new Rectangle(0, 0, 0, 0);
Rectangle R111 = new Rectangle(0, 0, 0, 0);
Rectangle R112 = new Rectangle(0, 0, 0, 0);
Rectangle R113 = new Rectangle(0, 0, 0, 0);
Rectangle R114 = new Rectangle(0, 0, 0, 0);
Rectangle R115 = new Rectangle(0, 0, 0, 0);
Rectangle R116 = new Rectangle(0, 0, 0, 0);
Rectangle R117 = new Rectangle(0, 0, 0, 0);
Rectangle R118 = new Rectangle(0, 0, 0, 0);
Rectangle R119 = new Rectangle(0, 0, 0, 0);
Rectangle R120 = new Rectangle(0, 0, 0, 0);
Rectangle R121 = new Rectangle(0, 0, 0, 0);
Rectangle R122 = new Rectangle(0, 0, 0, 0);
Rectangle R123 = new Rectangle(0, 0, 0, 0);
Rectangle R124 = new Rectangle(0, 0, 0, 0);
Rectangle R125 = new Rectangle(0, 0, 0, 0);
Rectangle R126 = new Rectangle(0, 0, 0, 0);
Rectangle R127 = new Rectangle(0, 0, 0, 0);
Rectangle R128 = new Rectangle(0, 0, 0, 0);
Rectangle R129 = new Rectangle(0, 0, 0, 0);
Rectangle R130 = new Rectangle(0, 0, 0, 0);
Rectangle R131 = new Rectangle(0, 0, 0, 0);
#endregion
#region permanent wall
Rectangle wall1 = new Rectangle(0, 0, 0, 0);
Rectangle wall2 = new Rectangle(0, 0, 0, 0);
Rectangle wall3 = new Rectangle(0, 0, 0, 0);
Rectangle wall4 = new Rectangle(0, 0, 0, 0);
Rectangle wall5 = new Rectangle(0, 0, 0, 0);
Rectangle wall6 = new Rectangle(0, 0, 0, 0);
Rectangle wall7 = new Rectangle(0, 0, 0, 0);
Rectangle wall8 = new Rectangle(0, 0, 0, 0);
Rectangle wall9 = new Rectangle(0, 0, 0, 0);
Rectangle wall10 = new Rectangle(0, 0, 0, 0);
Rectangle wall11 = new Rectangle(0, 0, 0, 0);
Rectangle wall12 = new Rectangle(0, 0, 0, 0);
Rectangle wall13 = new Rectangle(0, 0, 0, 0);
Rectangle wall14 = new Rectangle(0, 0, 0, 0);
Rectangle wall15 = new Rectangle(0, 0, 0, 0);
Rectangle wall16 = new Rectangle(0, 0, 0, 0);
Rectangle wall17 = new Rectangle(0, 0, 0, 0);
Rectangle wall18 = new Rectangle(0, 0, 0, 0);
Rectangle wall19 = new Rectangle(0, 0, 0, 0);
Rectangle wall20 = new Rectangle(0, 0, 0, 0);
Rectangle wall21 = new Rectangle(0, 0, 0, 0);
Rectangle wall22 = new Rectangle(0, 0, 0, 0);
Rectangle wall23 = new Rectangle(0, 0, 0, 0);
Rectangle wall24 = new Rectangle(0, 0, 0, 0);
Rectangle wall25 = new Rectangle(0, 0, 0, 0);
Rectangle wall26 = new Rectangle(0, 0, 0, 0);
Rectangle wall27 = new Rectangle(0, 0, 0, 0);
Rectangle wall28 = new Rectangle(0, 0, 0, 0);
Rectangle wall29 = new Rectangle(0, 0, 0, 0);
Rectangle wall30 = new Rectangle(0, 0, 0, 0);
Rectangle wall31 = new Rectangle(0, 0, 0, 0);
Rectangle wall32 = new Rectangle(0, 0, 0, 0);
Rectangle wall33 = new Rectangle(0, 0, 0, 0);
Rectangle wall34 = new Rectangle(0, 0, 0, 0);
Rectangle wall35 = new Rectangle(0, 0, 0, 0);
Rectangle wall36 = new Rectangle(0, 0, 0, 0);
Rectangle wall37 = new Rectangle(0, 0, 0, 0);
Rectangle wall38 = new Rectangle(0, 0, 0, 0);
Rectangle wall39 = new Rectangle(0, 0, 0, 0);
Rectangle wall40 = new Rectangle(0, 0, 0, 0);
Rectangle wall41 = new Rectangle(0, 0, 0, 0);
Rectangle wall42 = new Rectangle(0, 0, 0, 0);
Rectangle wall43 = new Rectangle(0, 0, 0, 0);
Rectangle wall44 = new Rectangle(0, 0, 0, 0);
Rectangle wall45 = new Rectangle(0, 0, 0, 0);
Rectangle wall46 = new Rectangle(0, 0, 0, 0);
Rectangle wall47 = new Rectangle(0, 0, 0, 0);
Rectangle wall48 = new Rectangle(0, 0, 0, 0);
Rectangle wall49 = new Rectangle(0, 0, 0, 0);
Rectangle wall50 = new Rectangle(0, 0, 0, 0);
Rectangle wall51 = new Rectangle(0, 0, 0, 0);
Rectangle wall52 = new Rectangle(0, 0, 0, 0);
Rectangle wall53 = new Rectangle(0, 0, 0, 0);
Rectangle wall54 = new Rectangle(0, 0, 0, 0);
Rectangle wall55 = new Rectangle(0, 0, 0, 0);
Rectangle wall56 = new Rectangle(0, 0, 0, 0);
Rectangle wall57 = new Rectangle(0, 0, 0, 0);
Rectangle wall58 = new Rectangle(0, 0, 0, 0);
Rectangle wall59 = new Rectangle(0, 0, 0, 0);
Rectangle wall60 = new Rectangle(0, 0, 0, 0);
Rectangle wall61 = new Rectangle(0, 0, 0, 0);
Rectangle wall62 = new Rectangle(0, 0, 0, 0);
Rectangle wall63 = new Rectangle(0, 0, 0, 0);
Rectangle wall64 = new Rectangle(0, 0, 0, 0);
Rectangle wall65 = new Rectangle(0, 0, 0, 0);
Rectangle wall66 = new Rectangle(0, 0, 0, 0);
Rectangle wall67 = new Rectangle(0, 0, 0, 0);
Rectangle wall68 = new Rectangle(0, 0, 0, 0);
Rectangle wall69 = new Rectangle(0, 0, 0, 0);
Rectangle wall70 = new Rectangle(0, 0, 0, 0);
Rectangle wall71 = new Rectangle(0, 0, 0, 0);
Rectangle wall72 = new Rectangle(0, 0, 0, 0);
Rectangle wall73 = new Rectangle(0, 0, 0, 0);
Rectangle wall74 = new Rectangle(0, 0, 0, 0);
Rectangle wall75 = new Rectangle(0, 0, 0, 0);
Rectangle wall76 = new Rectangle(0, 0, 0, 0);
#endregion
#region roof
Rectangle roof1 = new Rectangle(0, 0, 0, 0);
Rectangle roof2 = new Rectangle(0, 0, 0, 0);
Rectangle roof3 = new Rectangle(0, 0, 0, 0);
Rectangle roof4 = new Rectangle(0, 0, 0, 0);
Rectangle roof5 = new Rectangle(0, 0, 0, 0);
Rectangle roof6 = new Rectangle(0, 0, 0, 0);
Rectangle roof7 = new Rectangle(0, 0, 0, 0);
Rectangle roof8 = new Rectangle(0, 0, 0, 0);
Rectangle roof9 = new Rectangle(0, 0, 0, 0);
Rectangle roof10 = new Rectangle(0, 0, 0, 0);
Rectangle roof11 = new Rectangle(0, 0, 0, 0);
Rectangle roof12 = new Rectangle(0, 0, 0, 0);
Rectangle roof13 = new Rectangle(0, 0, 0, 0);
Rectangle roof14 = new Rectangle(0, 0, 0, 0);
Rectangle roof15 = new Rectangle(0, 0, 0, 0);
Rectangle roof16 = new Rectangle(0, 0, 0, 0);
Rectangle roof17 = new Rectangle(0, 0, 0, 0);
Rectangle roof18 = new Rectangle(0, 0, 0, 0);
Rectangle roof19 = new Rectangle(0, 0, 0, 0);
Rectangle roof20 = new Rectangle(0, 0, 0, 0);
Rectangle roof21 = new Rectangle(0, 0, 0, 0);
Rectangle roof22 = new Rectangle(0, 0, 0, 0);
Rectangle roof23 = new Rectangle(0, 0, 0, 0);
Rectangle roof24 = new Rectangle(0, 0, 0, 0);
Rectangle roof25 = new Rectangle(0, 0, 0, 0);
Rectangle roof26 = new Rectangle(0, 0, 0, 0);
Rectangle roof27 = new Rectangle(0, 0, 0, 0);
Rectangle roof28 = new Rectangle(0, 0, 0, 0);
Rectangle roof29 = new Rectangle(0, 0, 0, 0);
Rectangle roof30 = new Rectangle(0, 0, 0, 0);
Rectangle roof31 = new Rectangle(0, 0, 0, 0);
Rectangle roof32 = new Rectangle(0, 0, 0, 0);
Rectangle roof33 = new Rectangle(0, 0, 0, 0);
Rectangle roof34 = new Rectangle(0, 0, 0, 0);
Rectangle roof35 = new Rectangle(0, 0, 0, 0);
Rectangle roof36 = new Rectangle(0, 0, 0, 0);
Rectangle roof37 = new Rectangle(0, 0, 0, 0);
Rectangle roof38 = new Rectangle(0, 0, 0, 0);
Rectangle roof39 = new Rectangle(0, 0, 0, 0);
Rectangle roof40 = new Rectangle(0, 0, 0, 0);
Rectangle roof41 = new Rectangle(0, 0, 0, 0);
Rectangle roof42 = new Rectangle(0, 0, 0, 0);
Rectangle roof43 = new Rectangle(0, 0, 0, 0);
Rectangle roof44 = new Rectangle(0, 0, 0, 0);
Rectangle roof45 = new Rectangle(0, 0, 0, 0);
#endregion
#region 5-2
Rectangle dagger1Box = new Rectangle(0, 0, 0, 0);
Rectangle dagger2Box = new Rectangle(0, 0, 0, 0);
Rectangle dagger3Box = new Rectangle(0, 0, 0, 0);
#endregion
#endregion
#region alt controls
bool controlsLook = false;
int controlsMenuPos = 0;
#region commands
int jumpVal = 27;
bool jumpTrue = false;
bool jumpAssign = false;
int clawVal = 26;
bool clawTrue = false;
bool clawAssign = false;
int breathVal = 15;
bool breathTrue = false;
bool breathAssign = false;
int confVal = 28;
bool confTrue = false;
bool confAssign = false;
int swlVal = 16;
bool swlTrue = false;
bool swlAssign = false;
int swrVal = 17;
bool swrTrue = false;
bool swrAssign = false;
int leftVal = 49;
bool leftTrue = false;
bool leftAssign = false;
int rightVal = 50;
bool rightTrue = false;
bool rightAssign = false;
int upVal = 51;
bool upTrue = false;
bool upAssign = false;
int downVal = 52;
bool downTrue = false;
bool downAssign = false;
#endregion
#region display
int jumpControlX = 2;
int jumpControlY = 1;
int clawControlX = 0;
int clawControlY = 2;
int breathControlX = 0;
int breathControlY = 1;
int confControlX = 2;
int confControlY = 2;
int swlControlX = 1;
int swlControlY = 1;
int swrControlX = 2;
int swrControlY = 1;
int leftControlX = 0;
int leftControlY = 5;
int rightControlX = 1;
int rightControlY = 5;
int upControlX = 2;
int upControlY = 5;
int downControlX = 3;
int downControlY = 5;
#endregion
#endregion
//related to bosses
#region All Boss Variables
bool boss1Clear, boss2Clear, boss3Clear, boss4Clear, boss5Clear, boss6Clear;
#region Boss 1 Variables
int boss1HP = 20;
int boss1X = 0;
int boss1Y = 0;
int boss1Stamina = 10;
int boss1CT = 0;
int boss1Frame = 0;
int boss1Act = 0;
int boss1Facing = 0; //flip 13
int boss1AttackTimer = 0;
int boss1WaitTimer = 0;
int boss1AttackCT = 0;
int boss1ProjFrameCT = 0;
int boss1AttackFrame = 0;
int boss1AttackAct = 0;
int boss1Opacity = 255;
int boss1invTimer = 0;
int boss1knockbackTimer = 0;
int boss1hitTimer = 0;
int boss1invBlink = 255;
int boss1Disappear = 255;
int boss1FireVul = 2;
int boss1ExhaustedRecharge = 0;
int bossCounterCooldown = 0;
bool needRand, haveRand = false;
int checkRand = 0;
bool boss1Knockback, boss1ClawHit, boss1BreathHit = false;
bool boss1Counter = false;
bool boss1FaceL = false;
bool attackThunderbolt = false;
bool attackThunderblast = false;
bool attackThundercloud = false;
bool attackThundercloudMove = false;
bool attackThundercloudShock = false;
bool attackThunderslash = false;
bool boltUp, boltDn = false;
bool slash1, slash2, slash3, slash4, slash5, slash6, slash7, slash8 = false;
int slash1CT, slash2CT, slash3CT, slash4CT, slash5CT, slash6CT, slash7CT,
slash8CT, slash1Frame, slash2Frame, slash3Frame, slash4Frame, slash5Frame,
slash6Frame, slash7Frame, slash8Frame = 0;
int slashFacing, blastFacing = 0;
int slashEvenY, slashOddY = 0;
int boltUpX = 0;
int boltUpY = 482;
int boltDnX = 0;
int boltDnY = 605;
int cloud1X, cloud2X, cloud3X, cloud4X, cloudY, cloud1XMax, cloud2XMax,
cloud3XMax, cloud4XMax = 0;
int attackFrame = 0;
int attackAct = 0;
int attackFacing = 0;
int counterFrame = 0;
int thunderBlastX = 0;
bool boss1Exhausted = false;
bool dragonLook = false;
int dragonLookCT, dragonLookWait, dragonLookY = 0;
bool mogLook = false;
int mogLookCT, mogLookWait, mogLookX = 0;
bool ninjaLook = false;
int ninjaLookCT, ninjaLookWait, ninjaLookY = 0;
#endregion
#region Boss 2 Variables
int captainCT = 0;
int captainFrame = 0;
int captainAct = 0;
int captainInvBlink = 0;
int captainInvCounter = 0;
float rocket1Z = 0;
float rocket2Z = 0;
float rocket3Z = 0;
float rocket4Z = 0;
int shipHP = 60;
bool captainAttackSide = false;
bool captainAttackTop = false;
bool captainAttackLaser = false;
bool standOnRocket = false;
int rocketStandVel = 0;
int captainReload = 0;
int captainRNG = 0;
int smoke1CT = 0;
int smoke1Frame = 0;
int smoke1Act = 0;
int rocketDiag1X = 0;
int rocketDiag1Y = 0;
bool smoke1On = false;
bool rocketDiag1On = false;
int smoke2CT = 0;
int smoke2Frame = 0;
int smoke2Act = 0;
int rocketDiag2X = 0;
int rocketDiag2Y = 0;
bool smoke2On = false;
bool rocketDiag2On = false;
int smoke3CT = 0;
int smoke3Frame = 0;
int smoke3Act = 0;
int rocketDiag3X = 0;
int rocketDiag3Y = 0;
bool smoke3On = false;
bool rocketDiag3On = false;
int smoke4CT = 0;
int smoke4Frame = 0;
int smoke4Act = 0;
int rocketDiag4X = 0;
int rocketDiag4Y = 0;
bool smoke4On = false;
bool rocketDiag4On = false;
int rocket1Atk = 2;
int rocket1CT = 0;
int rocket1Frame = 0;
int rocket1Act = 0;
int rocket1Vel = 0;
int rocket1VelTimer = 0;
bool rocket1On = false;
bool rocket1Move = false;
int rocket2Atk = 2;
int rocket2CT = 0;
int rocket2Frame = 0;
int rocket2Act = 0;
int rocket2Vel = 0;
int rocket2VelTimer = 0;
bool rocket2On = false;
bool rocket2Move = false;
int rocket3Atk = 2;
int rocket3CT = 0;
int rocket3Frame = 0;
int rocket3Act = 0;
int rocket3Vel = 0;
int rocket3VelTimer = 0;
bool rocket3On = false;
bool rocket3Move = false;
int rocket4Atk = 2;
int rocket4CT = 0;
int rocket4Frame = 0;
int rocket4Act = 0;
int rocket4Vel = 0;
int rocket4VelTimer = 0;
bool rocket4On = false;
bool rocket4Move = false;
int rocket1X = 0;
int rocket1Y = 0;
int rocket2X = 0;
int rocket2Y = 0;
int rocket3X = 0;
int rocket3Y = 0;
int rocket4X = 0;
int rocket4Y = 0;
int scanAtk = 8;
int scanCounter = 0;
int scanLaserCT = 0;
int scanLaserFrame = 0;
int scanLaserX = 0;
int scanLaserY = 0;
bool scanLaserOn = false;
int trackLaserCT = 0;
int trackLaserOpacity = 0;
int trackerCT = 0;
int trackerFrame = 0;
int trackerVerticalX = 0;
int trackerVerticalY = 0;
int trackerHorizontalX = 0;
int trackerHorizontalY = 0;
bool trackerOn = false;
int shipExplosionCT = 0;
#endregion
#region Boss 3 Variables
int boss3Wait = 0;
int boss3ActFirst = 0;
bool boss3Start = false;
bool hitBySuper = false;
int boss3ClearCT = 0;
int baldwinInvTimer = 0;
int alexInvTimer = 0;
int baldwinKnockbackCT = 0;
int alexKnockbackCT = 0;
bool baldwinEscape = false;
bool alexEscape = false;
#region baldwin
int baldwinHP = 50;
int baldwinShockCT = 0;
bool baldwinShock = false;
bool baldwinOnGround = true;
int baldwinX = 1000;
int baldwinY = 504;
bool baldwinFaceR = false;
int baldwinCT = 0;
int baldwinFrame = 0;
int baldwinAct = 0;
int jetX = 0;
int jetCT = 0;
int jetFrame = 0;
int jetAct = 0;
bool jetOn = false;
int baldwinProjSequence = 0;
bool baldwinProjOn = false;
int baldwinProj1CT = 0;
int baldwinProj1Frame = 0;
int baldwinProj1Act = 0;
int baldwinProj1X = 0;
int baldwinProj1Y = 0;
int baldwinProj1YVel = 0;
int baldwinProj1Wait = 0;
bool baldwinProj1On = false;
int baldwinProj2CT = 0;
int baldwinProj2Frame = 0;
int baldwinProj2Act = 0;
int baldwinProj2X = 0;
int baldwinProj2Y = 0;
int baldwinProj2YVel = 0;
int baldwinProj2Wait = 0;
bool baldwinProj2On = false;
int baldwinProj3CT = 0;
int baldwinProj3Frame = 0;
int baldwinProj3Act = 0;
int baldwinProj3X = 0;
int baldwinProj3Y = 0;
int baldwinProj3YVel = 0;
int baldwinProj3Wait = 0;
bool baldwinProj3On = false;
int baldwinProj4CT = 0;
int baldwinProj4Frame = 0;
int baldwinProj4Act = 0;
int baldwinProj4X = 0;
int baldwinProj4Y = 0;
int baldwinProj4YVel = 0;
int baldwinProj4Wait = 0;
bool baldwinProj4On = false;
int baldwinProj5CT = 0;
int baldwinProj5Frame = 0;
int baldwinProj5Act = 0;
int baldwinProj5X = 0;
int baldwinProj5Y = 0;
int baldwinProj5YVel = 0;
int baldwinProj5Wait = 0;
bool baldwinProj5On = false;
int baldwinReload = 0;
int baldwinRNG = 0;
int baldwinSuperCounter = 0;
int baldwinSuperCharge = 0;
int baldwinSuperCT = 0;
int baldwinSuperFrame = 0;
int baldwinSuperAct = 0;
int baldwinSuperWait = 0;
int baldwinSuperPost = 0;
bool baldwinSuperOn = false;
int baldwinBurnerCT = 0;
int baldwinBurnerFrame = 0;
int baldwinBurnerAct = 0;
int baldwinBurnerWait = 0;
int baldwinBurnerReload = 0;
bool baldwinBurnerOn = false;
int baldwinInvBlink = 255;
int baldwinHitTimer = 0;
bool baldwinInvulnerable = false;
bool baldwinBreathHit = false;
bool baldwinClawHit = false;
bool baldwinKnockback = false;
#endregion
#region alex
int alexHP = 50;
int alexShockCT = 0;
bool alexShock = false;
bool alexOnGround = true;
bool alexWarp = false;
int alexWarpWait = 0;
int alexX = 141;
int alexY = 504;
bool alexFaceR = true;
int alexFacing = 0;
int alexCT = 0;
int alexFrame = 0;
int alexAct = 0;
int alexVoiceX = 0;
int alexVoiceY = 0;
int alexVoiceType = 4;
bool alexVoiceOn = false;
int alexSlashCT = 0;
int alexSlashFrame = 0;
bool alexSlashOn = false;
bool alexSlashFinished = false;
int alexReload = 0;
int alexRNG = 0;
int alexSuperCounter = 0;
int alexSuperCharge = 0;
int alexSuperCT = 0;
int alexSuperFrame = 0;
int alexSuperAct = 0;
int alexSuperWait = 0;
int alexSuperPost = 0;
bool alexSuperOn = false;
int alexLaserX = 0;
int alexLaserY = 0;
int alexLaserCT = 0;
int alexLaserFrame = 0;
bool alexLaserOn = false;
int alexInvBlink = 255;
int alexHitTimer = 0;
bool alexInvulnerable = false;
bool alexBreathHit = false;
bool alexClawHit = false;
bool alexKnockback = false;
#endregion
#endregion
#region Boss 4 Variables
int wardenHP = 30;
int entHP = 60;
int rootsHP = 40;
int boss4ClearCT = 0;
bool rootsOn = true;
bool entOn = true;
int entHeadYPos = 1;
int entHeadYVel = 0;
int entHeadVelCT = 0;
bool rootsClawHit = false;
bool rootsBreathHit = false;
int rootsHitWait = 0;
bool entClawHit = false;
bool entBreathHit = false;
int entHitWait = 0;
bool wardenHit = false;
int wardenHitWait = 0;
int wardenFrame = 0;
int wardenCT = 0;
int wardenAct = 0;
int wardenBlink = 255;
int wardenInvTimer = 0;
int entArmFrame = 0;
int entArmCT = 0;
int entArmAct = 0;
int entBodyFrame = 0;
int entBodyCT = 0;
int entBodyBlink = 255;
int entBodyInvTimer = 0;
int entRootFrame = 0;
int entRootCT = 0;
int entRootAct = 0;
int entRootBlink = 255;
int entRootInvTimer = 0;
int sweepReload = 0;
int hairshotReload = 0;
int wardenReload = 0;
int wardenRNG = 0;
int hairshotSerial = 0;
int sweepX = 0;
int sweepFrame = 0;
int sweepCT = 0;
bool sweepOn = false;
int hair1X = 0;
int hair1Y = 0;
int hair1Frame = 0;
int hair1CT = 0;
int hair1Act = 0;
int hair1Vel = 0;
bool hair1On = false;
int hair2X = 0;
int hair2Y = 0;
int hair2Frame = 0;
int hair2CT = 0;
int hair2Act = 0;
int hair2Vel = 0;
bool hair2On = false;
int hair3X = 0;
int hair3Y = 0;
int hair3Frame = 0;
int hair3CT = 0;
int hair3Act = 0;
int hair3Vel = 0;
bool hair3On = false;
int hair4X = 0;
int hair4Y = 0;
int hair4Frame = 0;
int hair4CT = 0;
int hair4Act = 0;
int hair4Vel = 0;
bool hair4On = false;
int hair5X = 0;
int hair5Y = 0;
int hair5Frame = 0;
int hair5CT = 0;
int hair5Act = 0;
int hair5Vel = 0;
bool hair5On = false;
int grabX = 0;
int grabY = 0;
int grabFrame = 0;
int grabCT = 0;
int grabXVel = 0;
int grabYVel = 0;
int grabVelCT = 0;
int grabWait = 0;
bool drgnGrab = false;
bool grabOn = false;
bool grabSlam = false;
bool grabOff = false;
int spikesDuration = 0;
bool spikesAttackOn = false;
int spikes1Type = 0;
int spikes1X = 0;
int spikes1Frame = 0;
int spikes1CT = 0;
int spikes1Act = 0;
bool spikes1On = false;
int spikes2Type = 0;
int spikes2X = 0;
int spikes2Frame = 0;
int spikes2CT = 0;
int spikes2Act = 0;
bool spikes2On = false;
int spikes3Type = 0;
int spikes3X = 0;
int spikes3Frame = 0;
int spikes3CT = 0;
int spikes3Act = 0;
bool spikes3On = false;
int spikes4Type = 0;
int spikes4X = 0;
int spikes4Frame = 0;
int spikes4CT = 0;
int spikes4Act = 0;
bool spikes4On = false;
int spikes5Type = 0;
int spikes5X = 0;
int spikes5Frame = 0;
int spikes5CT = 0;
int spikes5Act = 0;
bool spikes5On = false;
int spikes6Type = 0;
int spikes6X = 0;
int spikes6Frame = 0;
int spikes6CT = 0;
int spikes6Act = 0;
bool spikes6On = false;
int spikes7Type = 0;
int spikes7X = 0;
int spikes7Frame = 0;
int spikes7CT = 0;
int spikes7Act = 0;
bool spikes7On = false;
int spikes8Type = 0;
int spikes8X = 0;
int spikes8Frame = 0;
int spikes8CT = 0;
int spikes8Act = 0;
bool spikes8On = false;
int spikeTele1CT = 0;
int spikeTele1Frame = 0;
int spikeTele1Wait = 0;
bool spikeTele1On = false;
int spikeTele2CT = 0;
int spikeTele2Frame = 0;
int spikeTele2Wait = 0;
bool spikeTele2On = false;
int spikeTele3CT = 0;
int spikeTele3Frame = 0;
int spikeTele3Wait = 0;
bool spikeTele3On = false;
int spikeTele4CT = 0;
int spikeTele4Frame = 0;
int spikeTele4Wait = 0;
bool spikeTele4On = false;
int spikeTele5CT = 0;
int spikeTele5Frame = 0;
int spikeTele5Wait = 0;
bool spikeTele5On = false;
int spikeTele6CT = 0;
int spikeTele6Frame = 0;
int spikeTele6Wait = 0;
bool spikeTele6On = false;
int spikeTele7CT = 0;
int spikeTele7Frame = 0;
int spikeTele7Wait = 0;
bool spikeTele7On = false;
int spikeTele8CT = 0;
int spikeTele8Frame = 0;
int spikeTele8Wait = 0;
bool spikeTele8On = false;
int spikes1Wait = 0;
int spikes2Wait = 0;
int spikes3Wait = 0;
int spikes4Wait = 0;
int spikes5Wait = 0;
int spikes6Wait = 0;
int spikes7Wait = 0;
int spikes8Wait = 0;
#endregion
#region Boss 5 variables
bool boss5Phase1 = false;
bool boss5Phase2 = false;
bool boss5Transition = false;
bool kingAngry = false;
bool kingTantrum = false;
bool greenSmoke = false;
bool yellowSmoke = false;
bool redSmoke = false;
bool purpleSmoke = false;
bool yellowPlayedSound = false;
bool redPlayedSound = false;
bool purplePlayedSound = false;
bool e1Escape = false;
bool e1Dodge = false;
bool e1Throw = false;
bool e1ProjHit = false;
bool e2Escape = false;
bool e2Dodge = false;
bool e2Throw = false;
bool e2ProjHit = false;
bool e3Escape = false;
bool e3Dodge = false;
bool e3Throw = false;
bool e3ProjHit = false;
bool e3PillarOn = false;
bool e4Escape = false;
bool e4Dodge = false;
bool e4Throw = false;
bool e4ProjHit = false;
bool e4GasOn = false;
int e1ScarecrowFrame = 0;
int e1EscapeFrame = 0;
int thunderCall1X, thunderCall2X, thunderCall3X = 0;
int e2ScarecrowFrame = 0;
int e2EscapeFrame = 0;
int satlaser1X, satlaser2X, satlaser3X = 0;
int e3ScarecrowFrame = 0;
int e3EscapeFrame = 0;
int e3attackTimer = 0;
int e3projOrientation = 0;
int spark1X, spark1Y, spark2X, spark2Y, spark3X, spark3Y = 0;
int sparkvelX1, sparkvelX2, sparkvelX3 = 0;
int pillar1X, pillar2X, pillar3X = 0;
int e3projectileVel = 0;
int e3YvelCT = 0;
int pillarAct = 0;
int pillarDuration = 0;
int e4ScarecrowFrame = 0;
int e4EscapeFrame = 0;
int orb1X, orb1Y, orb2X, orb2Y, orb3X, orb3Y = 0;
int orbVelX1, orbVelX2, orbVelX3 = 0;
int gas1X, gas2X, gas3X = 0;
int e4projectileVel = 0;
int e4YvelCT = 0;
int kingCT = 0;
int kingAct = 0;
int kingFrame = 0;
int crownX = 0;
int crownY = 0;
int crownYvel = 0;
int greenAttackAlt, purpleAttackAlt, redAttackAlt, yellowAttackAlt = 0;
#endregion
#region Boss 6
int boss6CT = 0;
int boss6Frame = 0;
int boss6Opacity = 0;
int boss6Blink = 0;
int boss6Hide = 0;
int boss6HP = 60;
int computerCT = 0;
int computerFrame = 0;
int probe1Wait = 0;
int probe2Wait = 0;
int boss6ProjCT = 0;
int boss6ProjFrame = 0;
int boss6Reload = 0;
int boss6AttackCT = 0;
int boss6Proj1X = 0;
int boss6Proj1Y = 0;
int boss6Proj1Vel = 0;
bool boss6Proj1On = false;
int boss6Proj2X = 0;
int boss6Proj2Y = 0;
int boss6Proj2Vel = 0;
bool boss6Proj2On = false;
int boss6Proj3X = 0;
int boss6Proj3Y = 0;
int boss6Proj3Vel = 0;
bool boss6Proj3On = false;
int boss6Proj4X = 0;
int boss6Proj4Y = 0;
int boss6Proj4Vel = 0;
bool boss6Proj4On = false;
int boss6Proj5X = 0;
int boss6Proj5Y = 0;
int boss6Proj5Vel = 0;
bool boss6Proj5On = false;
int boss6Proj6X = 0;
int boss6Proj6Y = 0;
int boss6Proj6Vel = 0;
bool boss6Proj6On = false;
int boss6Proj7X = 0;
int boss6Proj7Y = 0;
int boss6Proj7Vel = 0;
bool boss6Proj7On = false;
int boss6Proj8X = 0;
int boss6Proj8Y = 0;
int boss6Proj8Vel = 0;
bool boss6Proj8On = false;
int boss6Proj9X = 0;
int boss6Proj9Y = 0;
int boss6Proj9Vel = 0;
bool boss6Proj9On = false;
int boss6Proj10X = 0;
int boss6Proj10Y = 0;
int boss6Proj10Vel = 0;
bool boss6Proj10On = false;
int boss6Proj11X = 0;
int boss6Proj11Y = 0;
int boss6Proj11Vel = 0;
bool boss6Proj11On = false;
int boss6Proj12X = 0;
int boss6Proj12Y = 0;
int boss6Proj12Vel = 0;
bool boss6Proj12On = false;
int boss6Proj13X = 0;
int boss6Proj13Y = 0;
int boss6Proj13Vel = 0;
bool boss6Proj13On = false;
int boss6Proj14X = 0;
int boss6Proj14Y = 0;
int boss6Proj14Vel = 0;
bool boss6Proj14On = false;
int boss6Proj15X = 0;
int boss6Proj15Y = 0;
int boss6Proj15Vel = 0;
bool boss6Proj15On = false;
int boss6Proj16X = 0;
int boss6Proj16Y = 0;
int boss6Proj16Vel = 0;
bool boss6Proj16On = false;
int boss6Proj17X = 0;
int boss6Proj17Y = 0;
int boss6Proj17Vel = 0;
bool boss6Proj17On = false;
int boss6Proj18X = 0;
int boss6Proj18Y = 0;
int boss6Proj18Vel = 0;
bool boss6Proj18On = false;
int boss6Proj19X = 0;
int boss6Proj19Y = 0;
int boss6Proj19Vel = 0;
bool boss6Proj19On = false;
int boss6Proj20X = 0;
int boss6Proj20Y = 0;
int boss6Proj20Vel = 0;
bool boss6Proj20On = false;
bool boss6BreathHit = false;
bool boss6ClawHit = false;
bool boss6Invulnerable = false;
int boss6InvTimer = 0;
int boss6HitTimer = 0;
bool boss6On = true;
#endregion
#region Boss 7 variables
bool boss7Phase1 = false;
bool boss7Phase2 = false;
int generalXPos = 0;
int generalHP = 0;
int generalCT = 0;
int generalFrame = 0;
int generalAct = 0;
bool exhaustSmoke = false;
int mechThunderSpeedCap = 0;
int mechThunderCTDelay = 0;
int mechKingCT = 0;
int mechKingFrame = 0;
int mechKingAct = 0;
bool mechThunderSFX = false;
int mechHeadHitWait = 0;
int mechStaffHitWait = 0;
int mechSwordHitWait = 0;
int mechBroochHitWait = 0;
int mechFistHitWait = 0;
int mechExhaustHitWait = 0;
int drgnThunderFrame = 0;
int drgnThunderCT = 0;
int drgnThunderCharge = 0;
int mechThunderWait = 0;
int thunderStrikeFrame = 0;
int thunderStrikeCT = 0;
bool drgnThunderStrike = false;
int mechFistHP = 40;
int mechStaffHP = 40;
int mechSwordHP = 40;
int mechBroochHP = 40;
int mechHeadHP = 200;
int mechExhaustHP = 40;
int mechFistDamage = 0;
int mechStaffDamage = 0;
int mechSwordDamage = 0;
int mechBroochDamage = 0;
int mechExhaustDamage = 0;
int mechHeadXPos = 0;
int mechHeadYPos = 0;
int mechHeadCT = 0;
int mechHeadFrame = 0;
int mechHeadAct = 0;
int mechHeadRNG = 0;
int mechHeadVel = 0;
int mechHeadSerial = 0;
int mechHeadRest = 0;
int mechExhaustCT = 0;
int mechExhaustFrame = 0;
int mechIntakeCT = 0;
int mechIntakeFrame = 0;
int mechExhaustInvBlink = 255;
int mechLaserCharge = 0;
int mechLaserCT = 0;
int mechLaserFrame = 0;
int mechLaserAct = 0;
int mechLaserShockCT = 0;
int mechLaserShockFrame = 0;
bool mechHeadLaserOn = false;
bool mechHeadChargeOn = false;
int mechLaserWait = 0;
int mechFistCharge = 0;
int mechFistCT = 0;
int mechFistFrame = 0;
int mechFistAct = 0;
int mechFistX = 0;
int mechFistFarX = 0;
int mechFistNearX = 0;
int mechFistWait = 0;
int mechHandStatus = 0;
int mechFistVelCT = 0;
int mechFistVel = 1;
int mechBroochFrame = 0;
int mechBroochAct = 0;
int mechBroochCT = 0;
int mechThunderCharge = 0;
int mechThunderVel = 0;
int mechThunderX = 0;
int mechThunderCT = 0;
int mechThunderFrame = 0;
int mechThunderAct = 0;
int mechThunderVelCT = 0;
int mechCloudsFwdX1 = 0;
int mechCloudsFwdX2 = 0;
int mechCloudsFwdX3 = 0;
int mechCloudsBackX1 = 0;
int mechCloudsBackX2 = 0;
int mechCloudsBackX3 = 0;
int mechTeslaFrame = 0;
int mechTeslaCT = 0;
int mechTeslaAct = 0;
int mechTeslaY = 0;
bool mechTeslaOn = false;
int mechFeedbackCT = 0;
int mechFeedbackFrame = 0;
bool mechFeedbackOn = false;
int mechSwordFrame = 0;
int mechFireCharge = 0;
int mechFireCT = 0;
int mechFireFrame = 0;
int mechFireWait = 0;
int mechFireChargeFrame = 0;
int mechFireChargeCT = 0;
int mechIceCharge = 0;
int mechIceFormation = 0;
int mechIceCT1 = 0;
int mechIceFrame1 = 0;
int mechIceX1 = 0;
int mechIceY1 = 0;
int mechIceCT2 = 0;
int mechIceFrame2 = 0;
int mechIceX2 = 0;
int mechIceY2 = 0;
int mechIceCT3 = 0;
int mechIceFrame3 = 0;
int mechIceX3 = 0;
int mechIceY3 = 0;
int mechIceCT4 = 0;
int mechIceFrame4 = 0;
int mechIceX4 = 0;
int mechIceY4 = 0;
int mechIceCT5 = 0;
int mechIceFrame5 = 0;
int mechIceX5 = 0;
int mechIceY5 = 0;
int mechIceCT6 = 0;
int mechIceFrame6 = 0;
int mechIceX6 = 0;
int mechIceY6 = 0;
int mechIceCT7 = 0;
int mechIceFrame7 = 0;
int mechIceX7 = 0;
int mechIceY7 = 0;
int mechIceCT8 = 0;
int mechIceFrame8 = 0;
int mechIceX8 = 0;
int mechIceY8 = 0;
int mechScepterFrame = 0;
int mechScepterAct = 0;
int mechScepterCT = 0;
int mechExplosionCT1 = 0;
int mechExplosionFrame1 = 0;
int mechExplosionX1 = 0;
int mechExplosionY1 = 0;
int mechExplosionCT2 = 0;
int mechExplosionFrame2 = 0;
int mechExplosionX2 = 0;
int mechExplosionY2 = 0;
int mechExplosionCT3 = 0;
int mechExplosionFrame3 = 0;
int mechExplosionX3 = 0;
int mechExplosionY3 = 0;
int mechExplosionCT4 = 0;
int mechExplosionFrame4 = 0;
int mechExplosionX4 = 0;
int mechExplosionY4 = 0;
int mechExplosionCT5 = 0;
int mechExplosionFrame5 = 0;
int mechExplosionX5 = 0;
int mechExplosionY5 = 0;
bool mechThunderAttack = false;
bool mechLaserAttack = false;
bool mechFireAttack = false;
bool mechIceAttack = false;
bool mechPunchAttack = false;
bool mechFistBroken = false;
bool mechBroochBroken = false;
bool mechStaffBroken = false;
bool mechSwordBroken = false;
bool mechExhaustBroken = false;
bool generalHit = false;
bool mechFistHit = false;
bool mechBroochHit = false;
bool mechStaffHit = false;
bool mechSwordHit = false;
bool mechExhaust = false;
int generalInvCT = 0;
int mechFistInvCT = 0;
int mechStaffInvCT = 0;
int mechSwordInvCT = 0;
int mechHeadInvCT = 0;
int mechExhaustInvCT = 0;
int mechBroochInvCT = 0;
int generalInvBlink = 255;
int mechFistInvBlink = 255;
int mechStaffInvBlink = 255;
int mechSwordInvBlink = 255;
int mechBroochInvBlink = 255;
int mechHeadInvBlink = 255;
int mechCloudOpacity = 0;
int mechProgramDelay = 0;
int mechLaserDuration = 0;
int mechThunderDuration = 0;
bool mechHeadClawHit = false;
bool mechStaffClawHit = false;
bool mechFistClawHit = false;
bool mechHeadFireHit = false;
bool mechStaffFireHit = false;
bool mechFistFireHit = false;
bool mechSwordDamaged = false;
bool mechBroochDamaged = false;
bool mechExhaustDamaged = false;
bool mechStaffDamaged = false;
bool mechHeadHit = false;
bool mechExhaustHit = false;
int mechDefeatExplosionCT = 0;
bool broochExplosion = false;
bool staffExplosion = false;
bool fistExplosion = false;
bool exhaustExplosion = false;
bool swordExplosion = false;
#endregion
#region inv variables
int alexHitDelay = 0;
int baldwinHitDelay = 0;
int rootHitDelay = 0;
int bodyHitDelay = 0;
int redHitDelay = 0;
int greenHitDelay = 0;
int purpleHitDelay = 0;
int headHitDelay = 0;
#endregion
#endregion
#region Event Variables
int truckX, truckFrame, truckAct, truckCT, truckSmokeFrame, truckCharge = 0;
bool truckSpawn = false;
#endregion
#region Steamworks Var
bool zeroException = false;
#endregion
#region Ending variables
int endingTextTimer = 0;
int endingOverlayFrame = 0;
int endingFlightCT = 0;
int endingFlightFrame = 0;
int endingFlightAct = 0;
int endingFlightXPos = 0;
int endingFlightCycle = 0;
int creditsMonsterCT = 0;
int creditsMonsterFrame = 0;
int creditsBackgroundX1 = 0;
int creditsBackgroundX2 = 0;
int creditsBackgroundX3 = 0;
int creditsBackgroundY1 = 0;
int creditsBackgroundY2 = 0;
int creditsBackgroundY3 = 0;
int creditsBackgroundCycle = 0;
int credits1Y, credits2Y, credits3Y, credits4Y, credits5Y, credits6Y,
credits7Y, credits8Y, credits9Y, credits10Y, credits11Y, credits12Y = 0;
int creditsDragonCT = 0;
int creditsDragonFrame = 0;
int creditsDragonX = 0;
int creditsPrincessCT = 0;
int creditsPrincessFrame = 0;
int creditsPrincessX = 0;
int creditsGirlCT = 0;
int creditsGirlFrame = 0;
int creditsGirlX = 0;
int creditsBoyCT = 0;
int creditsBoyFrame = 0;
int creditsBoyX = 0;
int creditsMusicWait = 0;
int creditsMusicBox = 0;
#endregion
public Game1()
{
graphics = new GraphicsDeviceManager(this);
Resolution.Init(ref graphics);
Content.RootDirectory = "Content";
string saveFolder = "A Game About a Dragon";
string saveFile = "Dragon.sav";
save = new StorageDeviceSaveManager(saveFolder, saveFile);
}
/// <summary>
/// Allows the game to perform any initialization it needs to before
starting to run.
/// This is where it can query for any required services and load any non-
graphic
/// related content. Calling base.Initialize will enumerate through any
components
/// and initialize them as well.
/// </summary>
protected override void Initialize()
{
base.Initialize();
MediaPlayer.IsRepeating = true;
}
protected override void LoadContent()
{
stageManager = new ContentManager(Services, "Content");
storyManager = new ContentManager(Services, "Content");
mapManager = new ContentManager(Services, "Content");
breathSFX = new ContentManager(Services, "Content");
stageBGM = new ContentManager(Services, "Content");
worldBGM = new ContentManager(Services, "Content");
storyBGM = new ContentManager(Services, "Content");
spriteBatch = new SpriteBatch(GraphicsDevice);
achievements = new Achievements();
achievements.Initialize();
//m_GameOverlayActivated == Callback<GameOverlayActivated_t>.Create
(dispatchdelegatefunction);
if (titleLoad == false)
{
titleLoad = true;
save.Load();
}
#region Resolution
saveRes = save.Data.resSetting;
if (saveRes > 3 || saveRes < 0)
{
saveRes = 0;
}
if (saveRes <= 0)
{
Resolution.SetVirtualResolution(1280, 800);
Resolution.SetResolution(1280, 800, false);
graphics.PreferredBackBufferWidth = 1280;
graphics.PreferredBackBufferHeight = 800;
resMod = 0;
resNow = 0;
}
else if (saveRes == 1)
{
Resolution.SetVirtualResolution(1280, 720);
Resolution.SetResolution(1280, 720, false);
graphics.PreferredBackBufferWidth = 1280;
graphics.PreferredBackBufferHeight = 720;
resMod = 40;
resNow = 1;
}
else if (saveRes == 2)
{
Resolution.SetVirtualResolution(1280, 800);
Resolution.SetResolution(1280, 720, true);
graphics.PreferredBackBufferWidth = 1280;
graphics.PreferredBackBufferHeight = 720;
resMod = 40;
resNow = 1;
}
else if (saveRes >= 3)
{
Resolution.SetVirtualResolution(1280, 720);
Resolution.SetResolution(1280, 720, true);
graphics.PreferredBackBufferWidth = 1280;
graphics.PreferredBackBufferHeight = 720;
resMod = 40;
resNow = 1;
}
graphics.ApplyChanges();
#endregion
#region Always Load
blackMatteSS = Content.Load<Texture2D>("System/matteblack");
whiteMatteSS = Content.Load<Texture2D>("System/mattewhite");
optionsNumbers = this.Content.Load<Texture2D>("Title/volume_list");
campfireSS = this.Content.Load<Texture2D>
("Player/campfire_spritesheet");
smokeSS = this.Content.Load<Texture2D>("Player/smoke_spritesheet");
warpSS = this.Content.Load<Texture2D>("Player/warp_spritesheet");
splashSS = this.Content.Load<Texture2D>("Player/splash_spritesheet");
hudHP = this.Content.Load<Texture2D>("HUD/spritesheet_HP");
hpNumbers = this.Content.Load<Texture2D>("HUD/hp_numbers");
hpSlash = this.Content.Load<Texture2D>("HUD/hp_slash");
hudBreath = this.Content.Load<Texture2D>("HUD/breathpips");
breathHUD = this.Content.Load<Texture2D>("HUD/breathtype");
hudCurrency = this.Content.Load<Texture2D>("HUD/currency");
HPBorder = this.Content.Load<Texture2D>("HUD/HP_Bar_Sm");
coinSS = this.Content.Load<Texture2D>("Monsters/coin_spritesheet");
keySS = this.Content.Load<Texture2D>("Stages/s2e4/key_spritesheet");
puffSS = this.Content.Load<Texture2D>("Monsters/smoke_spritesheet");
sparkleSS = this.Content.Load<Texture2D>
("Monsters/sparkle_spritesheet");
plinkSS = this.Content.Load<Texture2D>("Monsters/plink_spritesheet");
allTreasureSS = this.Content.Load<Texture2D>
("Treasure/treasure_spritesheet");
acidTreasureSS = this.Content.Load<Texture2D>
("Treasure/acidheart_spritesheet");
explosionOutSS = this.Content.Load<Texture2D>
("Monsters/explosion_a_spritesheet");
explosionUpSS = this.Content.Load<Texture2D>
("Monsters/explosion_b_spritesheet");
hintBubble = this.Content.Load<Texture2D>("Player/hint_spritesheet");
guideBubble = this.Content.Load<Texture2D>("Player/guide_spritesheet");
guidePause = this.Content.Load<Texture2D>("HUD/pause_spritesheet");
pauseOn = this.Content.Load<Texture2D>("HUD/pause");
pauseSwitch = this.Content.Load<Texture2D>("HUD/switch_spritesheet");
pauseInstructions = this.Content.Load<Texture2D>
("HUD/unpause_spritesheet");
exitInstructions = this.Content.Load<Texture2D>("HUD/exit_spritesheet");
breathDesc = this.Content.Load<Texture2D>("Text/breathdesc");
whistle = this.Content.Load<Texture2D>("Player/whistle");
musicExit = Content.Load<SoundEffect>("AllSounds/DragonSysLevelClear");
musicDefeat = Content.Load<SoundEffect>("AllSounds/DragonSysDefeat");
musicTreasure = Content.Load<SoundEffect>
("AllSounds/DragonSysTreasure");
sfxToggle = Content.Load<SoundEffect>("AllSounds/toggle4");
sfxYes = Content.Load<SoundEffect>("AllSounds/confirm5");
sfxNo = Content.Load<SoundEffect>("AllSounds/negative4");
sfxPageflip = Content.Load<SoundEffect>("AllSounds/PageTurn1");
sfxWarp = Content.Load<SoundEffect>("AllSounds/Warp4");
sfxPlink = Content.Load<SoundEffect>("AllSounds/nodamage8");
sfxEngine = Content.Load<SoundEffect>("AllSounds/synthengine4");
sfxFreeze = Content.Load<SoundEffect>("AllSounds/icebreathhit");
sfxCoin = Content.Load<SoundEffect>("AllSounds/coinget4");
sfxSmoke = Content.Load<SoundEffect>("AllSounds/smoke1");
sfxGunshot = Content.Load<SoundEffect>("AllSounds/Boom1");
sfxCannon = Content.Load<SoundEffect>("AllSounds/boom2Boss");
sfxThunderProj = Content.Load<SoundEffect>
("AllSounds/LightningProjectile3");
sfxThunderBlast = Content.Load<SoundEffect>
("AllSounds/HeavyLightningOneShot1");
sfxInvis = Content.Load<SoundEffect>("AllSounds/invisible2");
sfxLaser = Content.Load<SoundEffect>("AllSounds/skylaser4");
sfxLaserCharge = Content.Load<SoundEffect>("AllSounds/LaserBuildUp3");
sfxChargeShort = Content.Load<SoundEffect>("AllSounds/LaserShort");
sfxJump = Content.Load<SoundEffect>("AllSounds/jump1");
sfxWaterjump = Content.Load<SoundEffect>("AllSounds/underwaterjump1");
sfxDamage = Content.Load<SoundEffect>("AllSounds/damage3");
sfxSlash = Content.Load<SoundEffect>("AllSounds/claw9");
sfxSplash = Content.Load<SoundEffect>("AllSounds/Splash5");
sfxThunk = Content.Load<SoundEffect>("AllSounds/Thunk1");
sfxDash = Content.Load<SoundEffect>("AllSounds/Dash");
sfxFireball = Content.Load<SoundEffect>("AllSounds/FireBall3");
sfxSpear = Content.Load<SoundEffect>("AllSounds/Spear3");
sfxNote = Content.Load<SoundEffect>("AllSounds/BrassFall4");
sfxArrow = Content.Load<SoundEffect>("AllSounds/Arrow1");
sfxExpAlt = Content.Load<SoundEffect>("AllSounds/Explode9");
sfxThud = Content.Load<SoundEffect>("AllSounds/Thud");
sfxSteam = Content.Load<SoundEffect>("AllSounds/Steam4");
//CHANGE THIS
sfxExplosion = Content.Load<SoundEffect>("AllSounds/boom2Boss");
//FUCKING CHANGE THIS
//CHANGE THIS HOLY SHIT
playStageMusic = new PlayStageMusic(1, stageBGM);
drawTitle = new DrawTitle(true, stageManager);
#endregion
}
protected override void UnloadContent()
{
// TODO: Unload any non ContentManager content here
}
protected override void Update(GameTime gameTime)
{
KeyboardState kbState = Keyboard.GetState();
GamePadState gpState = GamePad.GetState(PlayerIndex.One);
achievements.Update();
#region SFX Timers
#region loops
#region acid
if (stage3e1 == true || stage3e2 == true || stage3e3 == true || stage4e1
== true)
{
if ((((acid1 == true && sprayProx1 == true) || (acid2 == true &&
sprayProx2 == true) || (acid3 == true && sprayProx3 == true))) && actionStagePause
== false && stageExit == false && endOfStage == false)
{
loopAcid.playSFX(sfxVolume, tempVolume, pauseVolume);
}
else if ((acid1 == false && acid2 == false && acid3 == false) ||
(sprayProx1 == false && sprayProx2 == false && sprayProx3 == false) ||
actionStagePause == true || stageExit == true || endOfStage == true)
{
loopAcid.pauseSFX();
}
}
#endregion
#region flame
if (stage3e2 == true || stage3eB == true || stage4e3 == true || stage4e4
== true || stage5e2 == true || stage5eB == true)
{
if (stage4e3 == false)
{
if (((flame1 == true && flameProx1 == true) || (flame2 == true
&& flameProx2 == true)) && actionStagePause == false && stageExit == false &&
endOfStage == false)
{
loopFireBreathAlt.playSFX(sfxVolume, tempVolume,
pauseVolume);
}
else if ((flame1 == false && flame2 == false) || (flameProx1 ==
false && flameProx2 == false) || actionStagePause == true || stageExit == true ||
endOfStage == true)
{
loopFireBreathAlt.pauseSFX();
}
}
if (stage4e3 == true)
{
if (((flame1 == true && flameProx1 == true) || (flame2 == true
&& flameProx2 == true) || playFlameWall == true) && actionStagePause == false &&
stageExit == false & endOfStage == false)
{
if (drgnX < 3000)
{
if (playFlameWall == true)
{
if (drgnX < 1063)
{
loopFireBreathAlt.playSFX(sfxVolume, tempVolume,
pauseVolume);
}
if (drgnX >= 1063 && drgnX < 1180)
{
loopFireBreathAlt.playSFX((float)(sfxVolume *
0.66), tempVolume, pauseVolume);
}
if (drgnX >= 1180 && drgnX < 1674)
{
loopFireBreathAlt.playSFX((float)(sfxVolume *
0.33), tempVolume, pauseVolume);
}
}
}
else
{
loopFireBreathAlt.playSFX(sfxVolume, tempVolume,
pauseVolume);
}
}
else if ((flame1 == false && flame2 == false && playFlameWall ==
false) || (flameProx1 == false && flameProx2 == false) || actionStagePause == true
|| stageExit == true || endOfStage == true)
{
loopFireBreathAlt.pauseSFX();
}
}
}
#endregion
#region flame 2e4
if (stage2e4 == true)
{
if (((flame1 == true && flameProx1 == true) || (flame2 == true &&
flameProx2 == true) || (flame3 == true && flameProx3 == true) || (flame4 == true &&
flameProx4 == true) || (flame5 == true && flameProx5 == true)) && actionStagePause
== false && stageExit == false && endOfStage == false)
{
loopFireBreathAlt.playSFX(sfxVolume, tempVolume, pauseVolume);
}
else if ((flame1 == false && flame2 == false && flame3 == false &&
flame4 == false && flame5 == false) || (flameProx1 == false && flameProx2 == false
&& flameProx3 == false && flameProx4 == false && flameProx5 == false) ||
actionStagePause == true || stageExit == true || endOfStage == true)
{
loopFireBreathAlt.pauseSFX();
}
}
#endregion
#region flamewall
if (stage7eB == true)
{
if (((flame1 == true && flameProx1 == true) || (flame2 == true &&
flameProx2 == true)) && actionStagePause == false && stageExit == false &&
endOfStage == false)
{
loopFlameAtk.playSFX(sfxVolume, tempVolume, pauseVolume);
}
else if ((flame1 == false && flame2 == false) || (flameProx1 ==
false && flameProx2 == false) || actionStagePause == true || stageExit == true ||
endOfStage == true)
{
loopFlameAtk.pauseSFX();
}
}
#endregion
#region spin
if (stage2e1 == true || stage2e2 == true || stage2e3 == true || stage2e4
== true || stage3e2 == true || stage4e1 == true || stage4e2 == true || stage4e3 ==
true || stage4e4 == true || stage5e2 == true)
{
if (((spin1 == true && spinProx1 == true) || (spin2 == true &&
spinProx2 == true) || (spin3 == true && spinProx3 == true) || (spin4 == true &&
spinProx4 == true)) && actionStagePause == false && stageExit == false && endOfStage
== false)
{
loopSpin.playSFX(sfxVolume, tempVolume, pauseVolume);
}
else if ((spin1 == false && spin2 == false && spin3 == false &&
spin4 == false) || (spinProx1 == false && spinProx2 == false && spinProx3 == false
&& spinProx4 == false) || actionStagePause == true || stageExit == true ||
endOfStage == true)
{
loopSpin.pauseSFX();
}
}
#endregion
#region laser
if (stage1eB == true || stage3eB == true)
{
if ((laser1 == true || laser2 == true || laser3 == true || laser4 ==
true) && actionStagePause == false && stageExit == false && endOfStage == false)
{
loopLaser.playSFX(sfxVolume, tempVolume, pauseVolume);
}
else if ((laser1 == false && laser2 == false && laser3 == false &&
laser4 == false) || actionStagePause == false || stageExit == true || endOfStage ==
true)
{
loopLaser.pauseSFX();
}
}
if (stage7eB == true)
{
if (laser1 == true || laser2 == true || laser3 == true || laser4 ==
true)
{
loopLaser.playSFX((float)(sfxVolume * 0.7), tempVolume,
pauseVolume);
}
else if (laser1 == false && laser2 == false && laser3 == false &&
laser4 == false)
{
loopLaser.pauseSFX();
}
}
#endregion
#region spear laser
if (stage4e1 == true || stage4e2 == true || stage4e3 == true || stage4e4
== true || stage5e2 == true)
{
if (((laser1 == true && laserProx1 == true) || (laser2 == true &&
laserProx2 == true) || (laser3 == true && laserProx3 == true) || (laser4 == true &&
laserProx4 == true)) && actionStagePause == false && stageExit == false &&
endOfStage == false)
{
loopLaser.playSFX((float)(sfxVolume * 0.5f), tempVolume,
pauseVolume);
}
else if ((laser1 == false && laser2 == false && laser3 == false &&
laser4 == false) || (laserProx1 == false && laserProx2 == false && laserProx3 ==
false && laserProx4 == false) || actionStagePause == true || stageExit == true ||
endOfStage == true)
{
loopLaser.pauseSFX();
}
}
#endregion
#region burrow
if (stage4eB == true)
{
if (burrowOn == true && actionStagePause == false && stageExit ==
false && endOfStage == false)
{
loopBurrow.playSFX(sfxVolume, tempVolume, pauseVolume);
}
else if (burrowOn == false || actionStagePause == true || stageExit
== true || endOfStage == true)
{
loopBurrow.pauseSFX();
}
}
#endregion
#region wings
if (actionStage == true)
{
if (drgnFlight == true & drgnFlyNow > 0 && endOfStage == false &&
actionStagePause == false && stageExit == false)
{
playWings.playSFX(sfxVolume, tempVolume, pauseVolume);
}
else if (drgnFlight == false || drgnFlyNow <= 0 || endOfStage ==
true || stageExit == true || actionStagePause == true)
{
playWings.pauseSFX();
}
}
#endregion
#endregion
#region menuYes
if (menuYesPlay == true)
{
sfxYes.Play((float)(sfxVolume * 0.25 * tempVolume * pauseVolume), 0,
0);
menuYesPlay = false;
}
#endregion
#region menuNo
if (menuNoPlay == true)
{
sfxNo.Play((float)(sfxVolume * 0.4 * tempVolume * pauseVolume), 0,
0);
menuNoPlay = false;
}
#endregion
#region menuToggle
if (menuTogglePlay == true)
{
sfxToggle.Play((float)(sfxVolume * 0.4 * tempVolume * pauseVolume),
0, 0);
menuTogglePlay = false;
}
#endregion
#region pageTurn
if (pageTurnPlay == true)
{
sfxPageflip.Play((float)(sfxVolume * 0.6), 0, 0);
pageTurnPlay = false;
}
#endregion
#region warp
if (sfxWarpPlay == true)
{
sfxWarp.Play((float)(sfxVolume * 0.6 * tempVolume * pauseVolume), 0,
0);
sfxWarpPlay = false;
}
#endregion
#region jump
if (jumpPlay == true)
{
sfxJump.Play((float)(sfxVolume * 0.6 * tempVolume * pauseVolume), 0,
0);
jumpPlay = false;
}
#endregion
#region underwater jump
if (waterjumpPlay == true)
{
sfxWaterjump.Play((float)(sfxVolume * 0.9 * tempVolume *
pauseVolume), 0, 0);
waterjumpPlay = false;
}
#endregion
#region damage
if (damagePlay == true)
{
sfxDamage.Play((float)(sfxVolume * 0.6 * tempVolume * pauseVolume),
0, 0);
damagePlay = false;
}
#endregion
#region slash
if (slashPlay == true)
{
sfxSlash.Play((float)(sfxVolume * 0.5 * tempVolume * pauseVolume),
0, 0);
slashPlay = false;
}
#endregion
#region plink
if (plinkPlay == true)
{
sfxPlink.Play((float)(sfxVolume * 0.6 * tempVolume * pauseVolume),
0, 0);
plinkPlay = false;
}
#endregion
#region freeze
if (freezePlay == true)
{
sfxFreeze.Play((float)(sfxVolume * 0.6 * tempVolume * pauseVolume),
0, 0);
freezePlay = false;
}
#endregion
#region coin
if (coinPlay == true)
{
sfxCoin.Play((float)(sfxVolume * 0.5 * tempVolume * pauseVolume), 0,
0);
coinPlay = false;
}
#endregion
#region splash
if (splashPlay == true)
{
sfxSplash.Play((float)(sfxVolume * 0.45 * tempVolume * pauseVolume),
0, 0);
splashPlay = false;
}
#endregion
#region engine
if (enginePlay == true)
{
sfxEngine.Play((float)(sfxVolume * 0.6 * tempVolume * pauseVolume),
0, 0);
enginePlay = false;
}
#endregion
#region smoke
if (smokePlay == true)
{
sfxSmoke.Play((float)(sfxVolume * 0.8 * tempVolume * pauseVolume),
0, 0);
smokePlay = false;
}
#endregion
#region gunshot
if (gunshotPlay == true)
{
sfxGunshot.Play((float)(sfxVolume * 0.5 * tempVolume * pauseVolume),
0, 0);
gunshotPlay = false;
}
#endregion
#region cannon
if (cannonPlay == true)
{
sfxCannon.Play((float)(sfxVolume * 0.6 * tempVolume * pauseVolume),
0, 0);
cannonPlay = false;
}
#endregion
#region explosion
if (explosionPlay == true)
{
sfxExplosion.Play((float)(sfxVolume * 0.6 * tempVolume *
pauseVolume), 0, 0);
explosionPlay = false;
}
#endregion
#region explosion alt
if (expAltPlay == true)
{
sfxExpAlt.Play((float)(sfxVolume * tempVolume * pauseVolume), 0, 0);
expAltPlay = false;
}
#endregion
#region thunder projectile
if (thunderProjPlay == true)
{
sfxThunderProj.Play((float)(sfxVolume * 0.5 * tempVolume *
pauseVolume), 0, 0);
thunderProjPlay = false;
}
#endregion
#region thunder blast
if (thunderBlastPlay == true)
{
sfxThunderBlast.Play((float)(sfxVolume * 0.5 * tempVolume *
pauseVolume), 0, 0);
thunderBlastPlay = false;
}
#endregion
#region invis
if (invisPlay == true)
{
sfxInvis.Play((float)(sfxVolume * 0.6 * tempVolume * pauseVolume),
0, 0);
invisPlay = false;
}
#endregion
#region teleport
if (teleportPlay == true)
{
sfxLaser.Play((float)(sfxVolume * 0.3 * tempVolume * pauseVolume),
0, 0);
teleportPlay = false;
}
#endregion
#region skylaser
if (laserPlay == true)
{
sfxLaser.Play((float)(sfxVolume * 0.6 * tempVolume * pauseVolume),
0, 0);
laserPlay = false;
}
#endregion
#region charge laser
if (laserCharge == true)
{
sfxLaserCharge.Play((float)(sfxVolume * 0.6 * tempVolume *
pauseVolume), 0, 0);
laserCharge = false;
}
#endregion
#region short laser
if (shortCharge == true)
{
shortCharge = false;
sfxChargeShort.Play((float)(sfxVolume * 0.6 * tempVolume *
pauseVolume), 0, 0);
}
#endregion
#region thunk
if (thunkPlay == true)
{
sfxThunk.Play((float)(sfxVolume * 0.6 * tempVolume * pauseVolume),
0, 0);
thunkPlay = false;
}
#endregion
#region fireball
if (fireballPlay == true)
{
fireballPlay = false;
sfxFireball.Play((float)(sfxVolume * 0.5 * tempVolume *
pauseVolume), 0, 0);
}
#endregion
#region note
if (notePlay == true)
{
notePlay = false;
sfxNote.Play((float)(sfxVolume * 0.7 * tempVolume * pauseVolume), 0,
0);
}
#endregion
#region spear
if (spearPlay == true)
{
spearPlay = false;
sfxSpear.Play((float)(sfxVolume * 0.8 * tempVolume * pauseVolume),
0, 0);
}
#endregion
#region steam
if (steamPlay == true)
{
steamPlay = false;
sfxSteam.Play((float)(sfxVolume * 0.7 * tempVolume * pauseVolume),
0, 0);
}
#endregion
#region thud
if (thudPlay == true)
{
thudPlay = false;
sfxThud.Play((float)(sfxVolume * tempVolume * pauseVolume), 0, 0);
}
#endregion
#region arrow
if (arrowPlay == true)
{
arrowPlay = false;
sfxArrow.Play((float)(sfxVolume * 0.8 * tempVolume * pauseVolume),
0, 0);
}
#endregion
#region dash
if (lancePlay == true)
{
sfxDash.Play((float)(sfxVolume * 0.8 * tempVolume * pauseVolume), 0,
0);
lancePlay = false;
}
#endregion
#endregion
#region alt controls
if (controlType == 1)
{
#region line 1 / 1-14
#region Tab
if (kbState.IsKeyDown(Keys.Tab) && (jumpVal == 1 || clawVal == 1 ||
breathVal == 1 || confVal == 1 || swlVal == 1 || swrVal == 1 || leftVal == 1 ||
rightVal == 1 || upVal == 1 || downVal == 1))
{
if (jumpVal == 1)
{
jumpTrue = true;
}
if (clawVal == 1)
{
clawTrue = true;
}
if (breathVal == 1)
{
breathTrue = true;
}
if (confVal == 1)
{
confTrue = true;
}
if (swlVal == 1)
{
swlTrue = true;
}
if (swrVal == 1)
{
swrTrue = true;
}
if (leftVal == 1)
{
leftTrue = true;
}
if (rightVal == 1)
{
rightTrue = true;
}
if (upVal == 1)
{
upTrue = true;
}
if (downVal == 1)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.Tab) && (jumpVal == 1 || clawVal == 1
|| breathVal == 1 || confVal == 1 || swlVal == 1 || swrVal == 1 || leftVal == 1 ||
rightVal == 1 || upVal == 1 || downVal == 1))
{
if (jumpVal == 1 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 1 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 1 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 1 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 1 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 1 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 1 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 1 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 1 && upTrue == true)
{
upTrue = false;
}
if (downVal == 1 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region Q
if (kbState.IsKeyDown(Keys.Q) && (jumpVal == 2 || clawVal == 2 ||
breathVal == 2 || confVal == 2 || swlVal == 2 || swrVal == 2 || leftVal == 2 ||
rightVal == 2 || upVal == 2 || downVal == 2))
{
if (jumpVal == 2)
{
jumpTrue = true;
}
if (clawVal == 2)
{
clawTrue = true;
}
if (breathVal == 2)
{
breathTrue = true;
}
if (confVal == 2)
{
confTrue = true;
}
if (swlVal == 2)
{
swlTrue = true;
}
if (swrVal == 2)
{
swrTrue = true;
}
if (leftVal == 2)
{
leftTrue = true;
}
if (rightVal == 2)
{
rightTrue = true;
}
if (upVal == 2)
{
upTrue = true;
}
if (downVal == 2)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.Q) && (jumpVal == 2 || clawVal == 2 ||
breathVal == 2 || confVal == 2 || swlVal == 2 || swrVal == 2 || leftVal == 2 ||
rightVal == 2 || upVal == 2 || downVal == 2))
{
if (jumpVal == 2 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 2 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 2 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 2 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 2 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 2 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 2 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 2 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 2 && upTrue == true)
{
upTrue = false;
}
if (downVal == 2 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region W
if (kbState.IsKeyDown(Keys.W) && (jumpVal == 3 || clawVal == 3 ||
breathVal == 3 || confVal == 3 || swlVal == 3 || swrVal == 3 || leftVal == 3 ||
rightVal == 3 || upVal == 3 || downVal == 3))
{
if (jumpVal == 3)
{
jumpTrue = true;
}
if (clawVal == 3)
{
clawTrue = true;
}
if (breathVal == 3)
{
breathTrue = true;
}
if (confVal == 3)
{
confTrue = true;
}
if (swlVal == 3)
{
swlTrue = true;
}
if (swrVal == 3)
{
swrTrue = true;
}
if (leftVal == 3)
{
leftTrue = true;
}
if (rightVal == 3)
{
rightTrue = true;
}
if (upVal == 3)
{
upTrue = true;
}
if (downVal == 3)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.W) && (jumpVal == 3 || clawVal == 3 ||
breathVal == 3 || confVal == 3 || swlVal == 3 || swrVal == 3 || leftVal == 3 ||
rightVal == 3 || upVal == 3 || downVal == 3))
{
if (jumpVal == 3 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 3 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 3 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 3 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 3 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 3 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 3 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 3 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 3 && upTrue == true)
{
upTrue = false;
}
if (downVal == 3 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region E
if (kbState.IsKeyDown(Keys.E) && (jumpVal == 4 || clawVal == 4 ||
breathVal == 4 || confVal == 4 || swlVal == 4 || swrVal == 4 || leftVal == 4 ||
rightVal == 4 || upVal == 4 || downVal == 4))
{
if (jumpVal == 4)
{
jumpTrue = true;
}
if (clawVal == 4)
{
clawTrue = true;
}
if (breathVal == 4)
{
breathTrue = true;
}
if (confVal == 4)
{
confTrue = true;
}
if (swlVal == 4)
{
swlTrue = true;
}
if (swrVal == 4)
{
swrTrue = true;
}
if (leftVal == 4)
{
leftTrue = true;
}
if (rightVal == 4)
{
rightTrue = true;
}
if (upVal == 4)
{
upTrue = true;
}
if (downVal == 4)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.E) && (jumpVal == 4 || clawVal == 4 ||
breathVal == 4 || confVal == 4 || swlVal == 4 || swrVal == 4 || leftVal == 4 ||
rightVal == 4 || upVal == 4 || downVal == 4))
{
if (jumpVal == 4 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 4 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 4 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 4 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 4 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 4 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 4 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 4 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 4 && upTrue == true)
{
upTrue = false;
}
if (downVal == 4 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region R
if (kbState.IsKeyDown(Keys.R) && (jumpVal == 5 || clawVal == 5 ||
breathVal == 5 || confVal == 5 || swlVal == 5 || swrVal == 5 || leftVal == 5 ||
rightVal == 5 || upVal == 5 || downVal == 5))
{
if (jumpVal == 5)
{
jumpTrue = true;
}
if (clawVal == 5)
{
clawTrue = true;
}
if (breathVal == 5)
{
breathTrue = true;
}
if (confVal == 5)
{
confTrue = true;
}
if (swlVal == 5)
{
swlTrue = true;
}
if (swrVal == 5)
{
swrTrue = true;
}
if (leftVal == 5)
{
leftTrue = true;
}
if (rightVal == 5)
{
rightTrue = true;
}
if (upVal == 5)
{
upTrue = true;
}
if (downVal == 5)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.R) && (jumpVal == 5 || clawVal == 5 ||
breathVal == 5 || confVal == 5 || swlVal == 5 || swrVal == 5 || leftVal == 5 ||
rightVal == 5 || upVal == 5 || downVal == 5))
{
if (jumpVal == 5 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 5 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 5 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 5 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 5 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 5 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 5 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 5 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 5 && upTrue == true)
{
upTrue = false;
}
if (downVal == 5 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region T
if (kbState.IsKeyDown(Keys.T) && (jumpVal == 6 || clawVal == 6 ||
breathVal == 6 || confVal == 6 || swlVal == 6 || swrVal == 6 || leftVal == 6 ||
rightVal == 6 || upVal == 6 || downVal == 6))
{
if (jumpVal == 6)
{
jumpTrue = true;
}
if (clawVal == 6)
{
clawTrue = true;
}
if (breathVal == 6)
{
breathTrue = true;
}
if (confVal == 6)
{
confTrue = true;
}
if (swlVal == 6)
{
swlTrue = true;
}
if (swrVal == 6)
{
swrTrue = true;
}
if (leftVal == 6)
{
leftTrue = true;
}
if (rightVal == 6)
{
rightTrue = true;
}
if (upVal == 6)
{
upTrue = true;
}
if (downVal == 6)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.T) && (jumpVal == 6 || clawVal == 6 ||
breathVal == 6 || confVal == 6 || swlVal == 6 || swrVal == 6 || leftVal == 6 ||
rightVal == 6 || upVal == 6 || downVal == 6))
{
if (jumpVal == 6 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 6 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 6 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 6 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 6 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 6 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 6 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 6 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 6 && upTrue == true)
{
upTrue = false;
}
if (downVal == 6 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region Y
if (kbState.IsKeyDown(Keys.Y) && (jumpVal == 7 || clawVal == 7 ||
breathVal == 7 || confVal == 7 || swlVal == 7 || swrVal == 7 || leftVal == 7 ||
rightVal == 7 || upVal == 7 || downVal == 7))
{
if (jumpVal == 7)
{
jumpTrue = true;
}
if (clawVal == 7)
{
clawTrue = true;
}
if (breathVal == 7)
{
breathTrue = true;
}
if (confVal == 7)
{
confTrue = true;
}
if (swlVal == 7)
{
swlTrue = true;
}
if (swrVal == 7)
{
swrTrue = true;
}
if (leftVal == 7)
{
leftTrue = true;
}
if (rightVal == 7)
{
rightTrue = true;
}
if (upVal == 7)
{
upTrue = true;
}
if (downVal == 7)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.Y) && (jumpVal == 7 || clawVal == 7 ||
breathVal == 7 || confVal == 7 || swlVal == 7 || swrVal == 7 || leftVal == 7 ||
rightVal == 7 || upVal == 7 || downVal == 7))
{
if (jumpVal == 7 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 7 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 7 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 7 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 7 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 7 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 7 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 7 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 7 && upTrue == true)
{
upTrue = false;
}
if (downVal == 7 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region U
if (kbState.IsKeyDown(Keys.U) && (jumpVal == 8 || clawVal == 8 ||
breathVal == 8 || confVal == 8 || swlVal == 8 || swrVal == 8 || leftVal == 8 ||
rightVal == 8 || upVal == 8 || downVal == 8))
{
if (jumpVal == 8)
{
jumpTrue = true;
}
if (clawVal == 8)
{
clawTrue = true;
}
if (breathVal == 8)
{
breathTrue = true;
}
if (confVal == 8)
{
confTrue = true;
}
if (swlVal == 8)
{
swlTrue = true;
}
if (swrVal == 8)
{
swrTrue = true;
}
if (leftVal == 8)
{
leftTrue = true;
}
if (rightVal == 8)
{
rightTrue = true;
}
if (upVal == 8)
{
upTrue = true;
}
if (downVal == 8)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.U) && (jumpVal == 8 || clawVal == 8 ||
breathVal == 8 || confVal == 8 || swlVal == 8 || swrVal == 8 || leftVal == 8 ||
rightVal == 8 || upVal == 8 || downVal == 8))
{
if (jumpVal == 8 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 8 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 8 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 8 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 8 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 8 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 8 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 8 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 8 && upTrue == true)
{
upTrue = false;
}
if (downVal == 8 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region I
if (kbState.IsKeyDown(Keys.I) && (jumpVal == 9 || clawVal == 9 ||
breathVal == 9 || confVal == 9 || swlVal == 9 || swrVal == 9 || leftVal == 9 ||
rightVal == 9 || upVal == 9 || downVal == 9))
{
if (jumpVal == 9)
{
jumpTrue = true;
}
if (clawVal == 9)
{
clawTrue = true;
}
if (breathVal == 9)
{
breathTrue = true;
}
if (confVal == 9)
{
confTrue = true;
}
if (swlVal == 9)
{
swlTrue = true;
}
if (swrVal == 9)
{
swrTrue = true;
}
if (leftVal == 9)
{
leftTrue = true;
}
if (rightVal == 9)
{
rightTrue = true;
}
if (upVal == 9)
{
upTrue = true;
}
if (downVal == 9)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.I) && (jumpVal == 9 || clawVal == 9 ||
breathVal == 9 || confVal == 9 || swlVal == 9 || swrVal == 9 || leftVal == 9 ||
rightVal == 9 || upVal == 9 || downVal == 9))
{
if (jumpVal == 9 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 9 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 9 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 9 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 9 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 9 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 9 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 9 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 9 && upTrue == true)
{
upTrue = false;
}
if (downVal == 9 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region O
if (kbState.IsKeyDown(Keys.O) && (jumpVal == 10 || clawVal == 10 ||
breathVal == 10 || confVal == 10 || swlVal == 10 || swrVal == 10 || leftVal == 10 ||
rightVal == 10 || upVal == 10 || downVal == 10))
{
if (jumpVal == 10)
{
jumpTrue = true;
}
if (clawVal == 10)
{
clawTrue = true;
}
if (breathVal == 10)
{
breathTrue = true;
}
if (confVal == 10)
{
confTrue = true;
}
if (swlVal == 10)
{
swlTrue = true;
}
if (swrVal == 10)
{
swrTrue = true;
}
if (leftVal == 10)
{
leftTrue = true;
}
if (rightVal == 10)
{
rightTrue = true;
}
if (upVal == 10)
{
upTrue = true;
}
if (downVal == 10)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.O) && (jumpVal == 10 || clawVal == 10
|| breathVal == 10 || confVal == 10 || swlVal == 10 || swrVal == 10 || leftVal == 10
|| rightVal == 10 || upVal == 10 || downVal == 10))
{
if (jumpVal == 10 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 10 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 10 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 10 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 10 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 10 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 10 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 10 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 10 && upTrue == true)
{
upTrue = false;
}
if (downVal == 10 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region P
if (kbState.IsKeyDown(Keys.P) && (jumpVal == 11 || clawVal == 11 ||
breathVal == 11 || confVal == 11 || swlVal == 11 || swrVal == 11 || leftVal == 11 ||
rightVal == 11 || upVal == 11 || downVal == 11))
{
if (jumpVal == 11)
{
jumpTrue = true;
}
if (clawVal == 11)
{
clawTrue = true;
}
if (breathVal == 11)
{
breathTrue = true;
}
if (confVal == 11)
{
confTrue = true;
}
if (swlVal == 11)
{
swlTrue = true;
}
if (swrVal == 11)
{
swrTrue = true;
}
if (leftVal == 11)
{
leftTrue = true;
}
if (rightVal == 11)
{
rightTrue = true;
}
if (upVal == 11)
{
upTrue = true;
}
if (downVal == 11)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.P) && (jumpVal == 11 || clawVal == 11
|| breathVal == 11 || confVal == 11 || swlVal == 11 || swrVal == 11 || leftVal == 11
|| rightVal == 11 || upVal == 11 || downVal == 11))
{
if (jumpVal == 11 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 11 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 11 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 11 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 11 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 11 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 11 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 11 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 11 && upTrue == true)
{
upTrue = false;
}
if (downVal == 11 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region [
if (kbState.IsKeyDown(Keys.OemOpenBrackets) && (jumpVal == 12 ||
clawVal == 12 || breathVal == 12 || confVal == 12 || swlVal == 12 || swrVal == 12 ||
leftVal == 12 || rightVal == 12 || upVal == 12 || downVal == 12))
{
if (jumpVal == 12)
{
jumpTrue = true;
}
if (clawVal == 12)
{
clawTrue = true;
}
if (breathVal == 12)
{
breathTrue = true;
}
if (confVal == 12)
{
confTrue = true;
}
if (swlVal == 12)
{
swlTrue = true;
}
if (swrVal == 12)
{
swrTrue = true;
}
if (leftVal == 12)
{
leftTrue = true;
}
if (rightVal == 12)
{
rightTrue = true;
}
if (upVal == 12)
{
upTrue = true;
}
if (downVal == 12)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.OemOpenBrackets) && (jumpVal == 12 ||
clawVal == 12 || breathVal == 12 || confVal == 12 || swlVal == 12 || swrVal == 12 ||
leftVal == 12 || rightVal == 12 || upVal == 12 || downVal == 12))
{
if (jumpVal == 12 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 12 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 12 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 12 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 12 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 12 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 12 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 12 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 12 && upTrue == true)
{
upTrue = false;
}
if (downVal == 12 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region ]
if (kbState.IsKeyDown(Keys.OemCloseBrackets) && (jumpVal == 13 ||
clawVal == 13 || breathVal == 13 || confVal == 13 || swlVal == 13 || swrVal == 13 ||
leftVal == 13 || rightVal == 13 || upVal == 13 || downVal == 13))
{
if (jumpVal == 13)
{
jumpTrue = true;
}
if (clawVal == 13)
{
clawTrue = true;
}
if (breathVal == 13)
{
breathTrue = true;
}
if (confVal == 13)
{
confTrue = true;
}
if (swlVal == 13)
{
swlTrue = true;
}
if (swrVal == 13)
{
swrTrue = true;
}
if (leftVal == 13)
{
leftTrue = true;
}
if (rightVal == 13)
{
rightTrue = true;
}
if (upVal == 13)
{
upTrue = true;
}
if (downVal == 13)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.OemCloseBrackets) && (jumpVal == 13 ||
clawVal == 13 || breathVal == 13 || confVal == 13 || swlVal == 13 || swrVal == 13 ||
leftVal == 13 || rightVal == 13 || upVal == 13 || downVal == 13))
{
if (jumpVal == 13 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 13 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 13 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 13 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 13 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 13 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 13 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 13 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 13 && upTrue == true)
{
upTrue = false;
}
if (downVal == 13 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region \
if (kbState.IsKeyDown(Keys.OemBackslash) && (jumpVal == 14 ||
clawVal == 14 || breathVal == 14 || confVal == 14 || swlVal == 14 || swrVal == 14 ||
leftVal == 14 || rightVal == 14 || upVal == 14 || downVal == 14))
{
if (jumpVal == 14)
{
jumpTrue = true;
}
if (clawVal == 14)
{
clawTrue = true;
}
if (breathVal == 14)
{
breathTrue = true;
}
if (confVal == 14)
{
confTrue = true;
}
if (swlVal == 14)
{
swlTrue = true;
}
if (swrVal == 14)
{
swrTrue = true;
}
if (leftVal == 14)
{
leftTrue = true;
}
if (rightVal == 14)
{
rightTrue = true;
}
if (upVal == 14)
{
upTrue = true;
}
if (downVal == 14)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.OemBackslash) && (jumpVal == 14 ||
clawVal == 14 || breathVal == 14 || confVal == 14 || swlVal == 14 || swrVal == 14 ||
leftVal == 14 || rightVal == 14 || upVal == 14 || downVal == 14))
{
if (jumpVal == 14 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 14 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 14 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 14 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 14 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 14 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 14 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 14 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 14 && upTrue == true)
{
upTrue = false;
}
if (downVal == 14 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#endregion
#region line 2 / 15-25
#region A
if (kbState.IsKeyDown(Keys.A) && (jumpVal == 15 || clawVal == 15 ||
breathVal == 15 || confVal == 15 || swlVal == 15 || swrVal == 15 || leftVal == 15 ||
rightVal == 15 || upVal == 15 || downVal == 15))
{
if (jumpVal == 15)
{
jumpTrue = true;
}
if (clawVal == 15)
{
clawTrue = true;
}
if (breathVal == 15)
{
breathTrue = true;
}
if (confVal == 15)
{
confTrue = true;
}
if (swlVal == 15)
{
swlTrue = true;
}
if (swrVal == 15)
{
swrTrue = true;
}
if (leftVal == 15)
{
leftTrue = true;
}
if (rightVal == 15)
{
rightTrue = true;
}
if (upVal == 15)
{
upTrue = true;
}
if (downVal == 15)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.A) && (jumpVal == 15 || clawVal == 15
|| breathVal == 15 || confVal == 15 || swlVal == 15 || swrVal == 15 || leftVal == 15
|| rightVal == 15 || upVal == 15 || downVal == 15))
{
if (jumpVal == 15 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 15 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 15 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 15 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 15 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 15 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 15 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 15 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 15 && upTrue == true)
{
upTrue = false;
}
if (downVal == 15 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region S
if (kbState.IsKeyDown(Keys.S) && (jumpVal == 16 || clawVal == 16 ||
breathVal == 16 || confVal == 16 || swlVal == 16 || swrVal == 16 || leftVal == 16 ||
rightVal == 16 || upVal == 16 || downVal == 16))
{
if (jumpVal == 16)
{
jumpTrue = true;
}
if (clawVal == 16)
{
clawTrue = true;
}
if (breathVal == 16)
{
breathTrue = true;
}
if (confVal == 16)
{
confTrue = true;
}
if (swlVal == 16)
{
swlTrue = true;
}
if (swrVal == 16)
{
swrTrue = true;
}
if (leftVal == 16)
{
leftTrue = true;
}
if (rightVal == 16)
{
rightTrue = true;
}
if (upVal == 16)
{
upTrue = true;
}
if (downVal == 16)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.S) && (jumpVal == 16 || clawVal == 16
|| breathVal == 16 || confVal == 16 || swlVal == 16 || swrVal == 16 || leftVal == 16
|| rightVal == 16 || upVal == 16 || downVal == 16))
{
if (jumpVal == 16 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 16 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 16 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 16 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 16 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 16 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 16 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 16 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 16 && upTrue == true)
{
upTrue = false;
}
if (downVal == 16 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region D
if (kbState.IsKeyDown(Keys.D) && (jumpVal == 17 || clawVal == 17 ||
breathVal == 17 || confVal == 17 || swlVal == 17 || swrVal == 17 || leftVal == 17 ||
rightVal == 17 || upVal == 17 || downVal == 17))
{
if (jumpVal == 17)
{
jumpTrue = true;
}
if (clawVal == 17)
{
clawTrue = true;
}
if (breathVal == 17)
{
breathTrue = true;
}
if (confVal == 17)
{
confTrue = true;
}
if (swlVal == 17)
{
swlTrue = true;
}
if (swrVal == 17)
{
swrTrue = true;
}
if (leftVal == 17)
{
leftTrue = true;
}
if (rightVal == 17)
{
rightTrue = true;
}
if (upVal == 17)
{
upTrue = true;
}
if (downVal == 17)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.D) && (jumpVal == 17 || clawVal == 17
|| breathVal == 17 || confVal == 17 || swlVal == 17 || swrVal == 17 || leftVal == 17
|| rightVal == 17 || upVal == 17 || downVal == 17))
{
if (jumpVal == 17 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 17 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 17 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 17 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 17 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 17 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 17 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 17 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 17 && upTrue == true)
{
upTrue = false;
}
if (downVal == 17 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region F
if (kbState.IsKeyDown(Keys.F) && (jumpVal == 18 || clawVal == 18 ||
breathVal == 18 || confVal == 18 || swlVal == 18 || swrVal == 18 || leftVal == 18 ||
rightVal == 18 || upVal == 18 || downVal == 18))
{
if (jumpVal == 18)
{
jumpTrue = true;
}
if (clawVal == 18)
{
clawTrue = true;
}
if (breathVal == 18)
{
breathTrue = true;
}
if (confVal == 18)
{
confTrue = true;
}
if (swlVal == 18)
{
swlTrue = true;
}
if (swrVal == 18)
{
swrTrue = true;
}
if (leftVal == 18)
{
leftTrue = true;
}
if (rightVal == 18)
{
rightTrue = true;
}
if (upVal == 18)
{
upTrue = true;
}
if (downVal == 18)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.F) && (jumpVal == 18 || clawVal == 18
|| breathVal == 18 || confVal == 18 || swlVal == 18 || swrVal == 18 || leftVal == 18
|| rightVal == 18 || upVal == 18 || downVal == 18))
{
if (jumpVal == 18 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 18 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 18 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 18 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 18 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 18 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 18 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 18 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 18 && upTrue == true)
{
upTrue = false;
}
if (downVal == 18 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region G
if (kbState.IsKeyDown(Keys.G) && (jumpVal == 19 || clawVal == 19 ||
breathVal == 19 || confVal == 19 || swlVal == 19 || swrVal == 19 || leftVal == 19 ||
rightVal == 19 || upVal == 19 || downVal == 19))
{
if (jumpVal == 19)
{
jumpTrue = true;
}
if (clawVal == 19)
{
clawTrue = true;
}
if (breathVal == 19)
{
breathTrue = true;
}
if (confVal == 19)
{
confTrue = true;
}
if (swlVal == 19)
{
swlTrue = true;
}
if (swrVal == 19)
{
swrTrue = true;
}
if (leftVal == 19)
{
leftTrue = true;
}
if (rightVal == 19)
{
rightTrue = true;
}
if (upVal == 19)
{
upTrue = true;
}
if (downVal == 19)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.G) && (jumpVal == 19 || clawVal == 19
|| breathVal == 19 || confVal == 19 || swlVal == 19 || swrVal == 19 || leftVal == 19
|| rightVal == 19 || upVal == 19 || downVal == 19))
{
if (jumpVal == 19 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 19 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 19 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 19 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 19 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 19 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 19 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 19 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 19 && upTrue == true)
{
upTrue = false;
}
if (downVal == 19 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region H
if (kbState.IsKeyDown(Keys.H) && (jumpVal == 20 || clawVal == 20 ||
breathVal == 20 || confVal == 20 || swlVal == 20 || swrVal == 20 || leftVal == 20 ||
rightVal == 20 || upVal == 20 || downVal == 20))
{
if (jumpVal == 20)
{
jumpTrue = true;
}
if (clawVal == 20)
{
clawTrue = true;
}
if (breathVal == 20)
{
breathTrue = true;
}
if (confVal == 20)
{
confTrue = true;
}
if (swlVal == 20)
{
swlTrue = true;
}
if (swrVal == 20)
{
swrTrue = true;
}
if (leftVal == 20)
{
leftTrue = true;
}
if (rightVal == 20)
{
rightTrue = true;
}
if (upVal == 20)
{
upTrue = true;
}
if (downVal == 20)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.H) && (jumpVal == 20 || clawVal == 20
|| breathVal == 20 || confVal == 20 || swlVal == 20 || swrVal == 20 || leftVal == 20
|| rightVal == 20 || upVal == 20 || downVal == 20))
{
if (jumpVal == 20 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 20 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 20 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 20 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 20 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 20 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 20 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 20 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 20 && upTrue == true)
{
upTrue = false;
}
if (downVal == 20 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region J
if (kbState.IsKeyDown(Keys.J) && (jumpVal == 21 || clawVal == 21 ||
breathVal == 21 || confVal == 21 || swlVal == 21 || swrVal == 21 || leftVal == 21 ||
rightVal == 21 || upVal == 21 || downVal == 21))
{
if (jumpVal == 21)
{
jumpTrue = true;
}
if (clawVal == 21)
{
clawTrue = true;
}
if (breathVal == 21)
{
breathTrue = true;
}
if (confVal == 21)
{
confTrue = true;
}
if (swlVal == 21)
{
swlTrue = true;
}
if (swrVal == 21)
{
swrTrue = true;
}
if (leftVal == 21)
{
leftTrue = true;
}
if (rightVal == 21)
{
rightTrue = true;
}
if (upVal == 21)
{
upTrue = true;
}
if (downVal == 21)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.J) && (jumpVal == 21 || clawVal == 21
|| breathVal == 21 || confVal == 21 || swlVal == 21 || swrVal == 21 || leftVal == 21
|| rightVal == 21 || upVal == 21 || downVal == 21))
{
if (jumpVal == 21 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 21 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 21 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 21 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 21 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 21 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 21 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 21 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 21 && upTrue == true)
{
upTrue = false;
}
if (downVal == 21 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region K
if (kbState.IsKeyDown(Keys.K) && (jumpVal == 22 || clawVal == 22 ||
breathVal == 22 || confVal == 22 || swlVal == 22 || swrVal == 22 || leftVal == 22 ||
rightVal == 22 || upVal == 22 || downVal == 22))
{
if (jumpVal == 22)
{
jumpTrue = true;
}
if (clawVal == 22)
{
clawTrue = true;
}
if (breathVal == 22)
{
breathTrue = true;
}
if (confVal == 22)
{
confTrue = true;
}
if (swlVal == 22)
{
swlTrue = true;
}
if (swrVal == 22)
{
swrTrue = true;
}
if (leftVal == 22)
{
leftTrue = true;
}
if (rightVal == 22)
{
rightTrue = true;
}
if (upVal == 22)
{
upTrue = true;
}
if (downVal == 22)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.K) && (jumpVal == 22 || clawVal == 22
|| breathVal == 22 || confVal == 22 || swlVal == 22 || swrVal == 22 || leftVal == 22
|| rightVal == 22 || upVal == 22 || downVal == 22))
{
if (jumpVal == 22 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 22 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 22 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 22 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 22 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 22 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 22 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 22 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 22 && upTrue == true)
{
upTrue = false;
}
if (downVal == 22 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region L
if (kbState.IsKeyDown(Keys.L) && (jumpVal == 23 || clawVal == 23 ||
breathVal == 23 || confVal == 23 || swlVal == 23 || swrVal == 23 || leftVal == 23 ||
rightVal == 23 || upVal == 23 || downVal == 23))
{
if (jumpVal == 23)
{
jumpTrue = true;
}
if (clawVal == 23)
{
clawTrue = true;
}
if (breathVal == 23)
{
breathTrue = true;
}
if (confVal == 23)
{
confTrue = true;
}
if (swlVal == 23)
{
swlTrue = true;
}
if (swrVal == 23)
{
swrTrue = true;
}
if (leftVal == 23)
{
leftTrue = true;
}
if (rightVal == 23)
{
rightTrue = true;
}
if (upVal == 23)
{
upTrue = true;
}
if (downVal == 23)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.L) && (jumpVal == 23 || clawVal == 23
|| breathVal == 23 || confVal == 23 || swlVal == 23 || swrVal == 23 || leftVal == 23
|| rightVal == 23 || upVal == 23 || downVal == 23))
{
if (jumpVal == 23 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 23 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 23 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 23 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 23 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 23 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 23 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 23 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 23 && upTrue == true)
{
upTrue = false;
}
if (downVal == 23 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region ;
if (kbState.IsKeyDown(Keys.OemSemicolon) && (jumpVal == 24 ||
clawVal == 24 || breathVal == 24 || confVal == 24 || swlVal == 24 || swrVal == 24 ||
leftVal == 24 || rightVal == 24 || upVal == 24 || downVal == 24))
{
if (jumpVal == 24)
{
jumpTrue = true;
}
if (clawVal == 24)
{
clawTrue = true;
}
if (breathVal == 24)
{
breathTrue = true;
}
if (confVal == 24)
{
confTrue = true;
}
if (swlVal == 24)
{
swlTrue = true;
}
if (swrVal == 24)
{
swrTrue = true;
}
if (leftVal == 24)
{
leftTrue = true;
}
if (rightVal == 24)
{
rightTrue = true;
}
if (upVal == 24)
{
upTrue = true;
}
if (downVal == 24)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.OemSemicolon) && (jumpVal == 24 ||
clawVal == 24 || breathVal == 24 || confVal == 24 || swlVal == 24 || swrVal == 24 ||
leftVal == 24 || rightVal == 24 || upVal == 24 || downVal == 24))
{
if (jumpVal == 24 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 24 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 24 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 24 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 24 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 24 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 24 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 24 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 24 && upTrue == true)
{
upTrue = false;
}
if (downVal == 24 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region '
if (kbState.IsKeyDown(Keys.OemQuotes) && (jumpVal == 25 || clawVal
== 25 || breathVal == 25 || confVal == 25 || swlVal == 25 || swrVal == 25 || leftVal
== 25 || rightVal == 25 || upVal == 25 || downVal == 25))
{
if (jumpVal == 25)
{
jumpTrue = true;
}
if (clawVal == 25)
{
clawTrue = true;
}
if (breathVal == 25)
{
breathTrue = true;
}
if (confVal == 25)
{
confTrue = true;
}
if (swlVal == 25)
{
swlTrue = true;
}
if (swrVal == 25)
{
swrTrue = true;
}
if (leftVal == 25)
{
leftTrue = true;
}
if (rightVal == 25)
{
rightTrue = true;
}
if (upVal == 25)
{
upTrue = true;
}
if (downVal == 25)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.OemQuotes) && (jumpVal == 25 ||
clawVal == 25 || breathVal == 25 || confVal == 25 || swlVal == 25 || swrVal == 25 ||
leftVal == 25 || rightVal == 25 || upVal == 25 || downVal == 25))
{
if (jumpVal == 25 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 25 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 25 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 25 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 25 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 25 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 25 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 25 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 25 && upTrue == true)
{
upTrue = false;
}
if (downVal == 25 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#endregion
#region line 3 / 26-35
#region Z
if (kbState.IsKeyDown(Keys.Z) && (jumpVal == 26 || clawVal == 26 ||
breathVal == 26 || confVal == 26 || swlVal == 26 || swrVal == 26 || leftVal == 26 ||
rightVal == 26 || upVal == 26 || downVal == 26))
{
if (jumpVal == 26)
{
jumpTrue = true;
}
if (clawVal == 26)
{
clawTrue = true;
}
if (breathVal == 26)
{
breathTrue = true;
}
if (confVal == 26)
{
confTrue = true;
}
if (swlVal == 26)
{
swlTrue = true;
}
if (swrVal == 26)
{
swrTrue = true;
}
if (leftVal == 26)
{
leftTrue = true;
}
if (rightVal == 26)
{
rightTrue = true;
}
if (upVal == 26)
{
upTrue = true;
}
if (downVal == 26)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.Z) && (jumpVal == 26 || clawVal == 26
|| breathVal == 26 || confVal == 26 || swlVal == 26 || swrVal == 26 || leftVal == 26
|| rightVal == 26 || upVal == 26 || downVal == 26))
{
if (jumpVal == 26 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 26 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 26 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 26 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 26 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 26 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 26 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 26 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 26 && upTrue == true)
{
upTrue = false;
}
if (downVal == 26 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region X
if (kbState.IsKeyDown(Keys.X) && (jumpVal == 27 || clawVal == 27 ||
breathVal == 27 || confVal == 27 || swlVal == 27 || swrVal == 27 || leftVal == 27 ||
rightVal == 27 || upVal == 27 || downVal == 27))
{
if (jumpVal == 27)
{
jumpTrue = true;
}
if (clawVal == 27)
{
clawTrue = true;
}
if (breathVal == 27)
{
breathTrue = true;
}
if (confVal == 27)
{
confTrue = true;
}
if (swlVal == 27)
{
swlTrue = true;
}
if (swrVal == 27)
{
swrTrue = true;
}
if (leftVal == 27)
{
leftTrue = true;
}
if (rightVal == 27)
{
rightTrue = true;
}
if (upVal == 27)
{
upTrue = true;
}
if (downVal == 27)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.X) && (jumpVal == 27 || clawVal == 27
|| breathVal == 27 || confVal == 27 || swlVal == 27 || swrVal == 27 || leftVal == 27
|| rightVal == 27 || upVal == 27 || downVal == 27))
{
if (jumpVal == 27 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 27 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 27 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 27 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 27 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 27 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 27 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 27 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 27 && upTrue == true)
{
upTrue = false;
}
if (downVal == 27 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region C
if (kbState.IsKeyDown(Keys.C) && (jumpVal == 28 || clawVal == 28 ||
breathVal == 28 || confVal == 28 || swlVal == 28 || swrVal == 28 || leftVal == 28 ||
rightVal == 28 || upVal == 28 || downVal == 28))
{
if (jumpVal == 28)
{
jumpTrue = true;
}
if (clawVal == 28)
{
clawTrue = true;
}
if (breathVal == 28)
{
breathTrue = true;
}
if (confVal == 28)
{
confTrue = true;
}
if (swlVal == 28)
{
swlTrue = true;
}
if (swrVal == 28)
{
swrTrue = true;
}
if (leftVal == 28)
{
leftTrue = true;
}
if (rightVal == 28)
{
rightTrue = true;
}
if (upVal == 28)
{
upTrue = true;
}
if (downVal == 28)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.C) && (jumpVal == 28 || clawVal == 28
|| breathVal == 28 || confVal == 28 || swlVal == 28 || swrVal == 28 || leftVal == 28
|| rightVal == 28 || upVal == 28 || downVal == 28))
{
if (jumpVal == 28 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 28 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 28 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 28 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 28 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 28 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 28 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 28 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 28 && upTrue == true)
{
upTrue = false;
}
if (downVal == 28 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region V
if (kbState.IsKeyDown(Keys.V) && (jumpVal == 29 || clawVal == 29 ||
breathVal == 29 || confVal == 29 || swlVal == 29 || swrVal == 29 || leftVal == 29 ||
rightVal == 29 || upVal == 29 || downVal == 29))
{
if (jumpVal == 29)
{
jumpTrue = true;
}
if (clawVal == 29)
{
clawTrue = true;
}
if (breathVal == 29)
{
breathTrue = true;
}
if (confVal == 29)
{
confTrue = true;
}
if (swlVal == 29)
{
swlTrue = true;
}
if (swrVal == 29)
{
swrTrue = true;
}
if (leftVal == 29)
{
leftTrue = true;
}
if (rightVal == 29)
{
rightTrue = true;
}
if (upVal == 29)
{
upTrue = true;
}
if (downVal == 29)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.V) && (jumpVal == 29 || clawVal == 29
|| breathVal == 29 || confVal == 29 || swlVal == 29 || swrVal == 29 || leftVal == 29
|| rightVal == 29 || upVal == 29 || downVal == 29))
{
if (jumpVal == 29 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 29 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 29 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 29 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 29 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 29 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 29 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 29 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 29 && upTrue == true)
{
upTrue = false;
}
if (downVal == 29 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region B
if (kbState.IsKeyDown(Keys.B) && (jumpVal == 30 || clawVal == 30 ||
breathVal == 30 || confVal == 30 || swlVal == 30 || swrVal == 30 || leftVal == 30 ||
rightVal == 30 || upVal == 30 || downVal == 30))
{
if (jumpVal == 30)
{
jumpTrue = true;
}
if (clawVal == 30)
{
clawTrue = true;
}
if (breathVal == 30)
{
breathTrue = true;
}
if (confVal == 30)
{
confTrue = true;
}
if (swlVal == 30)
{
swlTrue = true;
}
if (swrVal == 30)
{
swrTrue = true;
}
if (leftVal == 30)
{
leftTrue = true;
}
if (rightVal == 30)
{
rightTrue = true;
}
if (upVal == 30)
{
upTrue = true;
}
if (downVal == 30)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.B) && (jumpVal == 30 || clawVal == 30
|| breathVal == 30 || confVal == 30 || swlVal == 30 || swrVal == 30 || leftVal == 30
|| rightVal == 30 || upVal == 30 || downVal == 30))
{
if (jumpVal == 30 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 30 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 30 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 30 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 30 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 30 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 30 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 30 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 30 && upTrue == true)
{
upTrue = false;
}
if (downVal == 30 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region N
if (kbState.IsKeyDown(Keys.N) && (jumpVal == 31 || clawVal == 31 ||
breathVal == 31 || confVal == 31 || swlVal == 31 || swrVal == 31 || leftVal == 31 ||
rightVal == 31 || upVal == 31 || downVal == 31))
{
if (jumpVal == 31)
{
jumpTrue = true;
}
if (clawVal == 31)
{
clawTrue = true;
}
if (breathVal == 31)
{
breathTrue = true;
}
if (confVal == 31)
{
confTrue = true;
}
if (swlVal == 31)
{
swlTrue = true;
}
if (swrVal == 31)
{
swrTrue = true;
}
if (leftVal == 31)
{
leftTrue = true;
}
if (rightVal == 31)
{
rightTrue = true;
}
if (upVal == 31)
{
upTrue = true;
}
if (downVal == 31)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.N) && (jumpVal == 31 || clawVal == 31
|| breathVal == 31 || confVal == 31 || swlVal == 31 || swrVal == 31 || leftVal == 31
|| rightVal == 31 || upVal == 31 || downVal == 31))
{
if (jumpVal == 31 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 31 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 31 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 31 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 31 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 31 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 31 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 31 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 31 && upTrue == true)
{
upTrue = false;
}
if (downVal == 31 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region M
if (kbState.IsKeyDown(Keys.M) && (jumpVal == 32 || clawVal == 32 ||
breathVal == 32 || confVal == 32 || swlVal == 32 || swrVal == 32 || leftVal == 32 ||
rightVal == 32 || upVal == 32 || downVal == 32))
{
if (jumpVal == 32)
{
jumpTrue = true;
}
if (clawVal == 32)
{
clawTrue = true;
}
if (breathVal == 32)
{
breathTrue = true;
}
if (confVal == 32)
{
confTrue = true;
}
if (swlVal == 32)
{
swlTrue = true;
}
if (swrVal == 32)
{
swrTrue = true;
}
if (leftVal == 32)
{
leftTrue = true;
}
if (rightVal == 32)
{
rightTrue = true;
}
if (upVal == 32)
{
upTrue = true;
}
if (downVal == 32)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.M) && (jumpVal == 32 || clawVal == 32
|| breathVal == 32 || confVal == 32 || swlVal == 32 || swrVal == 32 || leftVal == 32
|| rightVal == 32 || upVal == 32 || downVal == 32))
{
if (jumpVal == 32 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 32 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 32 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 32 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 32 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 32 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 32 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 32 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 32 && upTrue == true)
{
upTrue = false;
}
if (downVal == 32 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region .
if (kbState.IsKeyDown(Keys.OemPeriod) && (jumpVal == 33 || clawVal
== 33 || breathVal == 33 || confVal == 33 || swlVal == 33 || swrVal == 33 || leftVal
== 33 || rightVal == 33 || upVal == 33 || downVal == 33))
{
if (jumpVal == 33)
{
jumpTrue = true;
}
if (clawVal == 33)
{
clawTrue = true;
}
if (breathVal == 33)
{
breathTrue = true;
}
if (confVal == 33)
{
confTrue = true;
}
if (swlVal == 33)
{
swlTrue = true;
}
if (swrVal == 33)
{
swrTrue = true;
}
if (leftVal == 33)
{
leftTrue = true;
}
if (rightVal == 33)
{
rightTrue = true;
}
if (upVal == 33)
{
upTrue = true;
}
if (downVal == 33)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.OemPeriod) && (jumpVal == 33 ||
clawVal == 33 || breathVal == 33 || confVal == 33 || swlVal == 33 || swrVal == 33 ||
leftVal == 33 || rightVal == 33 || upVal == 33 || downVal == 33))
{
if (jumpVal == 33 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 33 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 33 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 33 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 33 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 33 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 33 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 33 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 33 && upTrue == true)
{
upTrue = false;
}
if (downVal == 33 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region ,
if (kbState.IsKeyDown(Keys.OemComma) && (jumpVal == 34 || clawVal ==
34 || breathVal == 34 || confVal == 34 || swlVal == 34 || swrVal == 34 || leftVal ==
34 || rightVal == 34 || upVal == 34 || downVal == 34))
{
if (jumpVal == 34)
{
jumpTrue = true;
}
if (clawVal == 34)
{
clawTrue = true;
}
if (breathVal == 34)
{
breathTrue = true;
}
if (confVal == 34)
{
confTrue = true;
}
if (swlVal == 34)
{
swlTrue = true;
}
if (swrVal == 34)
{
swrTrue = true;
}
if (leftVal == 34)
{
leftTrue = true;
}
if (rightVal == 34)
{
rightTrue = true;
}
if (upVal == 34)
{
upTrue = true;
}
if (downVal == 34)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.OemComma) && (jumpVal == 34 || clawVal
== 34 || breathVal == 34 || confVal == 34 || swlVal == 34 || swrVal == 34 || leftVal
== 34 || rightVal == 34 || upVal == 34 || downVal == 34))
{
if (jumpVal == 34 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 34 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 34 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 34 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 34 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 34 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 34 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 34 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 34 && upTrue == true)
{
upTrue = false;
}
if (downVal == 34 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region /
if (kbState.IsKeyDown(Keys.OemQuestion) && (jumpVal == 35 || clawVal
== 35 || breathVal == 35 || confVal == 35 || swlVal == 35 || swrVal == 35 || leftVal
== 35 || rightVal == 35 || upVal == 35 || downVal == 35))
{
if (jumpVal == 35)
{
jumpTrue = true;
}
if (clawVal == 35)
{
clawTrue = true;
}
if (breathVal == 35)
{
breathTrue = true;
}
if (confVal == 35)
{
confTrue = true;
}
if (swlVal == 35)
{
swlTrue = true;
}
if (swrVal == 35)
{
swrTrue = true;
}
if (leftVal == 35)
{
leftTrue = true;
}
if (rightVal == 35)
{
rightTrue = true;
}
if (upVal == 35)
{
upTrue = true;
}
if (downVal == 35)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.OemQuestion) && (jumpVal == 35 ||
clawVal == 35 || breathVal == 35 || confVal == 35 || swlVal == 35 || swrVal == 35 ||
leftVal == 35 || rightVal == 35 || upVal == 35 || downVal == 35))
{
if (jumpVal == 35 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 35 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 35 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 35 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 35 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 35 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 35 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 35 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 35 && upTrue == true)
{
upTrue = false;
}
if (downVal == 35 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#endregion
#region line 4 / 36 - 38
#region Shift
if ((kbState.IsKeyDown(Keys.LeftShift) || kbState.IsKeyDown
(Keys.RightShift)) && (jumpVal == 36 || clawVal == 36 || breathVal == 36 || confVal
== 36 || swlVal == 36 || swrVal == 36 || leftVal == 36 || rightVal == 36 || upVal ==
36 || downVal == 36))
{
if (jumpVal == 36)
{
jumpTrue = true;
}
if (clawVal == 36)
{
clawTrue = true;
}
if (breathVal == 36)
{
breathTrue = true;
}
if (confVal == 36)
{
confTrue = true;
}
if (swlVal == 36)
{
swlTrue = true;
}
if (swrVal == 36)
{
swrTrue = true;
}
if (leftVal == 36)
{
leftTrue = true;
}
if (rightVal == 36)
{
rightTrue = true;
}
if (upVal == 36)
{
upTrue = true;
}
if (downVal == 36)
{
downTrue = true;
}
}
else if ((kbState.IsKeyUp(Keys.LeftShift) && kbState.IsKeyUp
(Keys.RightShift)) && (jumpVal == 36 || clawVal == 36 || breathVal == 36 || confVal
== 36 || swlVal == 36 || swrVal == 36 || leftVal == 36 || rightVal == 36 || upVal ==
36 || downVal == 36))
{
if (jumpVal == 36 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 36 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 36 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 36 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 36 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 36 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 36 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 36 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 36 && upTrue == true)
{
upTrue = false;
}
if (downVal == 36 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region Ctrl
if ((kbState.IsKeyDown(Keys.LeftControl) || kbState.IsKeyDown
(Keys.RightControl)) && (jumpVal == 37 || clawVal == 37 || breathVal == 37 ||
confVal == 37 || swlVal == 37 || swrVal == 37 || leftVal == 37 || rightVal == 37 ||
upVal == 37 || downVal == 37))
{
if (jumpVal == 37)
{
jumpTrue = true;
}
if (clawVal == 37)
{
clawTrue = true;
}
if (breathVal == 37)
{
breathTrue = true;
}
if (confVal == 37)
{
confTrue = true;
}
if (swlVal == 37)
{
swlTrue = true;
}
if (swrVal == 37)
{
swrTrue = true;
}
if (leftVal == 37)
{
leftTrue = true;
}
if (rightVal == 37)
{
rightTrue = true;
}
if (upVal == 37)
{
upTrue = true;
}
if (downVal == 37)
{
downTrue = true;
}
}
else if ((kbState.IsKeyUp(Keys.LeftControl) && kbState.IsKeyUp
(Keys.RightControl)) && (jumpVal == 37 || clawVal == 37 || breathVal == 37 ||
confVal == 37 || swlVal == 37 || swrVal == 37 || leftVal == 37 || rightVal == 37 ||
upVal == 37 || downVal == 37))
{
if (jumpVal == 37 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 37 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 37 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 37 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 37 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 37 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 37 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 37 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 37 && upTrue == true)
{
upTrue = false;
}
if (downVal == 37 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region Space
if (kbState.IsKeyDown(Keys.Space) && (jumpVal == 38 || clawVal == 38
|| breathVal == 38 || confVal == 38 || swlVal == 38 || swrVal == 38 || leftVal == 38
|| rightVal == 38 || upVal == 38 || downVal == 38))
{
if (jumpVal == 38)
{
jumpTrue = true;
}
if (clawVal == 38)
{
clawTrue = true;
}
if (breathVal == 38)
{
breathTrue = true;
}
if (confVal == 38)
{
confTrue = true;
}
if (swlVal == 38)
{
swlTrue = true;
}
if (swrVal == 38)
{
swrTrue = true;
}
if (leftVal == 38)
{
leftTrue = true;
}
if (rightVal == 38)
{
rightTrue = true;
}
if (upVal == 38)
{
upTrue = true;
}
if (downVal == 38)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.Space) && (jumpVal == 38 || clawVal ==
38 || breathVal == 38 || confVal == 38 || swlVal == 38 || swrVal == 38 || leftVal ==
38 || rightVal == 38 || upVal == 38 || downVal == 38))
{
if (jumpVal == 38 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 38 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 38 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 38 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 38 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 38 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 38 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 38 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 38 && upTrue == true)
{
upTrue = false;
}
if (downVal == 38 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#endregion
#region line 5 / 39 - 48
#region 0
if (kbState.IsKeyDown(Keys.D0) && (jumpVal == 39 || clawVal == 39 ||
breathVal == 39 || confVal == 39 || swlVal == 39 || swrVal == 39 || leftVal == 39 ||
rightVal == 39 || upVal == 39 || downVal == 39))
{
if (jumpVal == 39)
{
jumpTrue = true;
}
if (clawVal == 39)
{
clawTrue = true;
}
if (breathVal == 39)
{
breathTrue = true;
}
if (confVal == 39)
{
confTrue = true;
}
if (swlVal == 39)
{
swlTrue = true;
}
if (swrVal == 39)
{
swrTrue = true;
}
if (leftVal == 39)
{
leftTrue = true;
}
if (rightVal == 39)
{
rightTrue = true;
}
if (upVal == 39)
{
upTrue = true;
}
if (downVal == 39)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.D0) && (jumpVal == 39 || clawVal == 39
|| breathVal == 39 || confVal == 39 || swlVal == 39 || swrVal == 39 || leftVal == 39
|| rightVal == 39 || upVal == 39 || downVal == 39))
{
if (jumpVal == 39 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 39 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 39 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 39 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 39 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 39 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 39 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 39 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 39 && upTrue == true)
{
upTrue = false;
}
if (downVal == 39 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region 1
if (kbState.IsKeyDown(Keys.D1) && (jumpVal == 40 || clawVal == 40 ||
breathVal == 40 || confVal == 40 || swlVal == 40 || swrVal == 40 || leftVal == 40 ||
rightVal == 40 || upVal == 40 || downVal == 40))
{
if (jumpVal == 40)
{
jumpTrue = true;
}
if (clawVal == 40)
{
clawTrue = true;
}
if (breathVal == 40)
{
breathTrue = true;
}
if (confVal == 40)
{
confTrue = true;
}
if (swlVal == 40)
{
swlTrue = true;
}
if (swrVal == 40)
{
swrTrue = true;
}
if (leftVal == 40)
{
leftTrue = true;
}
if (rightVal == 40)
{
rightTrue = true;
}
if (upVal == 40)
{
upTrue = true;
}
if (downVal == 40)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.D1) && (jumpVal == 40 || clawVal == 40
|| breathVal == 40 || confVal == 40 || swlVal == 40 || swrVal == 40 || leftVal == 40
|| rightVal == 40 || upVal == 40 || downVal == 40))
{
if (jumpVal == 40 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 40 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 40 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 40 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 40 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 40 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 40 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 40 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 40 && upTrue == true)
{
upTrue = false;
}
if (downVal == 40 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region 2
if (kbState.IsKeyDown(Keys.D2) && (jumpVal == 41 || clawVal == 41 ||
breathVal == 41 || confVal == 41 || swlVal == 41 || swrVal == 41 || leftVal == 41 ||
rightVal == 41 || upVal == 41 || downVal == 41))
{
if (jumpVal == 41)
{
jumpTrue = true;
}
if (clawVal == 41)
{
clawTrue = true;
}
if (breathVal == 41)
{
breathTrue = true;
}
if (confVal == 41)
{
confTrue = true;
}
if (swlVal == 41)
{
swlTrue = true;
}
if (swrVal == 41)
{
swrTrue = true;
}
if (leftVal == 41)
{
leftTrue = true;
}
if (rightVal == 41)
{
rightTrue = true;
}
if (upVal == 41)
{
upTrue = true;
}
if (downVal == 41)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.D2) && (jumpVal == 41 || clawVal == 41
|| breathVal == 41 || confVal == 41 || swlVal == 41 || swrVal == 41 || leftVal == 41
|| rightVal == 41 || upVal == 41 || downVal == 41))
{
if (jumpVal == 41 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 41 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 41 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 41 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 41 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 41 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 41 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 41 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 41 && upTrue == true)
{
upTrue = false;
}
if (downVal == 41 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region 3
if (kbState.IsKeyDown(Keys.D3) && (jumpVal == 42 || clawVal == 42 ||
breathVal == 42 || confVal == 42 || swlVal == 42 || swrVal == 42 || leftVal == 42 ||
rightVal == 42 || upVal == 42 || downVal == 42))
{
if (jumpVal == 42)
{
jumpTrue = true;
}
if (clawVal == 42)
{
clawTrue = true;
}
if (breathVal == 42)
{
breathTrue = true;
}
if (confVal == 42)
{
confTrue = true;
}
if (swlVal == 42)
{
swlTrue = true;
}
if (swrVal == 42)
{
swrTrue = true;
}
if (leftVal == 42)
{
leftTrue = true;
}
if (rightVal == 42)
{
rightTrue = true;
}
if (upVal == 42)
{
upTrue = true;
}
if (downVal == 42)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.D3) && (jumpVal == 42 || clawVal == 42
|| breathVal == 42 || confVal == 42 || swlVal == 42 || swrVal == 42 || leftVal == 42
|| rightVal == 42 || upVal == 42 || downVal == 42))
{
if (jumpVal == 42 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 42 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 42 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 42 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 42 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 42 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 42 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 42 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 42 && upTrue == true)
{
upTrue = false;
}
if (downVal == 42 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region 4
if (kbState.IsKeyDown(Keys.D4) && (jumpVal == 43 || clawVal == 43 ||
breathVal == 43 || confVal == 43 || swlVal == 43 || swrVal == 43 || leftVal == 43 ||
rightVal == 43 || upVal == 43 || downVal == 43))
{
if (jumpVal == 43)
{
jumpTrue = true;
}
if (clawVal == 43)
{
clawTrue = true;
}
if (breathVal == 43)
{
breathTrue = true;
}
if (confVal == 43)
{
confTrue = true;
}
if (swlVal == 43)
{
swlTrue = true;
}
if (swrVal == 43)
{
swrTrue = true;
}
if (leftVal == 43)
{
leftTrue = true;
}
if (rightVal == 43)
{
rightTrue = true;
}
if (upVal == 43)
{
upTrue = true;
}
if (downVal == 43)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.D4) && (jumpVal == 43 || clawVal == 43
|| breathVal == 43 || confVal == 43 || swlVal == 43 || swrVal == 43 || leftVal == 43
|| rightVal == 43 || upVal == 43 || downVal == 43))
{
if (jumpVal == 43 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 43 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 43 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 43 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 43 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 43 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 43 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 43 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 43 && upTrue == true)
{
upTrue = false;
}
if (downVal == 43 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region 5
if (kbState.IsKeyDown(Keys.D5) && (jumpVal == 44 || clawVal == 44 ||
breathVal == 44 || confVal == 44 || swlVal == 44 || swrVal == 44 || leftVal == 44 ||
rightVal == 44 || upVal == 44 || downVal == 44))
{
if (jumpVal == 44)
{
jumpTrue = true;
}
if (clawVal == 44)
{
clawTrue = true;
}
if (breathVal == 44)
{
breathTrue = true;
}
if (confVal == 44)
{
confTrue = true;
}
if (swlVal == 44)
{
swlTrue = true;
}
if (swrVal == 44)
{
swrTrue = true;
}
if (leftVal == 44)
{
leftTrue = true;
}
if (rightVal == 44)
{
rightTrue = true;
}
if (upVal == 44)
{
upTrue = true;
}
if (downVal == 44)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.D5) && (jumpVal == 44 || clawVal == 44
|| breathVal == 44 || confVal == 44 || swlVal == 44 || swrVal == 44 || leftVal == 44
|| rightVal == 44 || upVal == 44 || downVal == 44))
{
if (jumpVal == 44 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 44 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 44 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 44 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 44 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 44 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 44 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 44 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 44 && upTrue == true)
{
upTrue = false;
}
if (downVal == 44 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region 6
if (kbState.IsKeyDown(Keys.D6) && (jumpVal == 45 || clawVal == 45 ||
breathVal == 45 || confVal == 45 || swlVal == 45 || swrVal == 45 || leftVal == 45 ||
rightVal == 45 || upVal == 45 || downVal == 45))
{
if (jumpVal == 45)
{
jumpTrue = true;
}
if (clawVal == 45)
{
clawTrue = true;
}
if (breathVal == 45)
{
breathTrue = true;
}
if (confVal == 45)
{
confTrue = true;
}
if (swlVal == 45)
{
swlTrue = true;
}
if (swrVal == 45)
{
swrTrue = true;
}
if (leftVal == 45)
{
leftTrue = true;
}
if (rightVal == 45)
{
rightTrue = true;
}
if (upVal == 45)
{
upTrue = true;
}
if (downVal == 45)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.D6) && (jumpVal == 45 || clawVal == 45
|| breathVal == 45 || confVal == 45 || swlVal == 45 || swrVal == 45 || leftVal == 45
|| rightVal == 45 || upVal == 45 || downVal == 45))
{
if (jumpVal == 45 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 45 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 45 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 45 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 45 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 45 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 45 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 45 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 45 && upTrue == true)
{
upTrue = false;
}
if (downVal == 45 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region 7
if (kbState.IsKeyDown(Keys.D7) && (jumpVal == 46 || clawVal == 46 ||
breathVal == 46 || confVal == 46 || swlVal == 46 || swrVal == 46 || leftVal == 46 ||
rightVal == 46 || upVal == 46 || downVal == 46))
{
if (jumpVal == 46)
{
jumpTrue = true;
}
if (clawVal == 46)
{
clawTrue = true;
}
if (breathVal == 46)
{
breathTrue = true;
}
if (confVal == 46)
{
confTrue = true;
}
if (swlVal == 46)
{
swlTrue = true;
}
if (swrVal == 46)
{
swrTrue = true;
}
if (leftVal == 46)
{
leftTrue = true;
}
if (rightVal == 46)
{
rightTrue = true;
}
if (upVal == 46)
{
upTrue = true;
}
if (downVal == 46)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.D7) && (jumpVal == 46 || clawVal == 46
|| breathVal == 46 || confVal == 46 || swlVal == 46 || swrVal == 46 || leftVal == 46
|| rightVal == 46 || upVal == 46 || downVal == 46))
{
if (jumpVal == 46 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 46 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 46 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 46 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 46 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 46 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 46 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 46 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 46 && upTrue == true)
{
upTrue = false;
}
if (downVal == 46 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region 8
if (kbState.IsKeyDown(Keys.D8) && (jumpVal == 47 || clawVal == 47 ||
breathVal == 47 || confVal == 47 || swlVal == 47 || swrVal == 47 || leftVal == 47 ||
rightVal == 47 || upVal == 47 || downVal == 47))
{
if (jumpVal == 47)
{
jumpTrue = true;
}
if (clawVal == 47)
{
clawTrue = true;
}
if (breathVal == 47)
{
breathTrue = true;
}
if (confVal == 47)
{
confTrue = true;
}
if (swlVal == 47)
{
swlTrue = true;
}
if (swrVal == 47)
{
swrTrue = true;
}
if (leftVal == 47)
{
leftTrue = true;
}
if (rightVal == 47)
{
rightTrue = true;
}
if (upVal == 47)
{
upTrue = true;
}
if (downVal == 47)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.D8) && (jumpVal == 47 || clawVal == 47
|| breathVal == 47 || confVal == 47 || swlVal == 47 || swrVal == 47 || leftVal == 47
|| rightVal == 47 || upVal == 47 || downVal == 47))
{
if (jumpVal == 47 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 47 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 47 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 47 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 47 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 47 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 47 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 47 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 47 && upTrue == true)
{
upTrue = false;
}
if (downVal == 47 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region 9
if (kbState.IsKeyDown(Keys.D9) && (jumpVal == 48 || clawVal == 48 ||
breathVal == 48 || confVal == 48 || swlVal == 48 || swrVal == 48 || leftVal == 48 ||
rightVal == 48 || upVal == 48 || downVal == 48))
{
if (jumpVal == 48)
{
jumpTrue = true;
}
if (clawVal == 48)
{
clawTrue = true;
}
if (breathVal == 48)
{
breathTrue = true;
}
if (confVal == 48)
{
confTrue = true;
}
if (swlVal == 48)
{
swlTrue = true;
}
if (swrVal == 48)
{
swrTrue = true;
}
if (leftVal == 48)
{
leftTrue = true;
}
if (rightVal == 48)
{
rightTrue = true;
}
if (upVal == 48)
{
upTrue = true;
}
if (downVal == 48)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.D9) && (jumpVal == 48 || clawVal == 48
|| breathVal == 48 || confVal == 48 || swlVal == 48 || swrVal == 48 || leftVal == 48
|| rightVal == 48 || upVal == 48 || downVal == 48))
{
if (jumpVal == 48 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 48 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 48 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 48 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 48 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 48 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 48 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 48 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 48 && upTrue == true)
{
upTrue = false;
}
if (downVal == 48 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#endregion
#region line 6 / 49 - 52
#region Left
if (kbState.IsKeyDown(Keys.Left) && (jumpVal == 49 || clawVal == 49
|| breathVal == 49 || confVal == 49 || swlVal == 49 || swrVal == 49 || leftVal == 49
|| rightVal == 49 || upVal == 49 || downVal == 49))
{
if (jumpVal == 49)
{
jumpTrue = true;
}
if (clawVal == 49)
{
clawTrue = true;
}
if (breathVal == 49)
{
breathTrue = true;
}
if (confVal == 49)
{
confTrue = true;
}
if (swlVal == 49)
{
swlTrue = true;
}
if (swrVal == 49)
{
swrTrue = true;
}
if (leftVal == 49)
{
leftTrue = true;
}
if (rightVal == 49)
{
rightTrue = true;
}
if (upVal == 49)
{
upTrue = true;
}
if (downVal == 49)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.Left) && (jumpVal == 49 || clawVal ==
49 || breathVal == 49 || confVal == 49 || swlVal == 49 || swrVal == 49 || leftVal ==
49 || rightVal == 49 || upVal == 49 || downVal == 49))
{
if (jumpVal == 49 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 49 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 49 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 49 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 49 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 49 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 49 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 49 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 49 && upTrue == true)
{
upTrue = false;
}
if (downVal == 49 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region Right
if (kbState.IsKeyDown(Keys.Right) && (jumpVal == 50 || clawVal == 50
|| breathVal == 50 || confVal == 50 || swlVal == 50 || swrVal == 50 || leftVal == 50
|| rightVal == 50 || upVal == 50 || downVal == 50))
{
if (jumpVal == 50)
{
jumpTrue = true;
}
if (clawVal == 50)
{
clawTrue = true;
}
if (breathVal == 50)
{
breathTrue = true;
}
if (confVal == 50)
{
confTrue = true;
}
if (swlVal == 50)
{
swlTrue = true;
}
if (swrVal == 50)
{
swrTrue = true;
}
if (leftVal == 50)
{
leftTrue = true;
}
if (rightVal == 50)
{
rightTrue = true;
}
if (upVal == 50)
{
upTrue = true;
}
if (downVal == 50)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.Right) && (jumpVal == 50 || clawVal ==
50 || breathVal == 50 || confVal == 50 || swlVal == 50 || swrVal == 50 || leftVal ==
50 || rightVal == 50 || upVal == 50 || downVal == 50))
{
if (jumpVal == 50 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 50 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 50 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 50 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 50 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 50 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 50 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 50 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 50 && upTrue == true)
{
upTrue = false;
}
if (downVal == 50 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region Up
if (kbState.IsKeyDown(Keys.Up) && (jumpVal == 51 || clawVal == 51 ||
breathVal == 51 || confVal == 51 || swlVal == 51 || swrVal == 51 || leftVal == 51 ||
rightVal == 51 || upVal == 51 || downVal == 51))
{
if (jumpVal == 51)
{
jumpTrue = true;
}
if (clawVal == 51)
{
clawTrue = true;
}
if (breathVal == 51)
{
breathTrue = true;
}
if (confVal == 51)
{
confTrue = true;
}
if (swlVal == 51)
{
swlTrue = true;
}
if (swrVal == 51)
{
swrTrue = true;
}
if (leftVal == 51)
{
leftTrue = true;
}
if (rightVal == 51)
{
rightTrue = true;
}
if (upVal == 51)
{
upTrue = true;
}
if (downVal == 51)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.Up) && (jumpVal == 51 || clawVal == 51
|| breathVal == 51 || confVal == 51 || swlVal == 51 || swrVal == 51 || leftVal == 51
|| rightVal == 51 || upVal == 51 || downVal == 51))
{
if (jumpVal == 51 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 51 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 51 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 51 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 51 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 51 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 51 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 51 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 51 && upTrue == true)
{
upTrue = false;
}
if (downVal == 51 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#region Down
if (kbState.IsKeyDown(Keys.Down) && (jumpVal == 52 || clawVal == 52
|| breathVal == 52 || confVal == 52 || swlVal == 52 || swrVal == 52 || leftVal == 52
|| rightVal == 52 || upVal == 52 || downVal == 52))
{
if (jumpVal == 52)
{
jumpTrue = true;
}
if (clawVal == 52)
{
clawTrue = true;
}
if (breathVal == 52)
{
breathTrue = true;
}
if (confVal == 52)
{
confTrue = true;
}
if (swlVal == 52)
{
swlTrue = true;
}
if (swrVal == 52)
{
swrTrue = true;
}
if (leftVal == 52)
{
leftTrue = true;
}
if (rightVal == 52)
{
rightTrue = true;
}
if (upVal == 52)
{
upTrue = true;
}
if (downVal == 52)
{
downTrue = true;
}
}
else if (kbState.IsKeyUp(Keys.Down) && (jumpVal == 52 || clawVal ==
52 || breathVal == 52 || confVal == 52 || swlVal == 52 || swrVal == 52 || leftVal ==
52 || rightVal == 52 || upVal == 52 || downVal == 52))
{
if (jumpVal == 52 && jumpTrue == true)
{
jumpTrue = false;
}
if (clawVal == 52 && clawTrue == true)
{
clawTrue = false;
}
if (breathVal == 52 && breathTrue == true)
{
breathTrue = false;
}
if (confVal == 52 && confTrue == true)
{
confTrue = false;
}
if (swlVal == 52 && swlTrue == true)
{
swlTrue = false;
}
if (swrVal == 52 && swrTrue == true)
{
swrTrue = false;
}
if (leftVal == 52 && leftTrue == true)
{
leftTrue = false;
}
if (rightVal == 52 && rightTrue == true)
{
rightTrue = false;
}
if (upVal == 52 && upTrue == true)
{
upTrue = false;
}
if (downVal == 52 && downTrue == true)
{
downTrue = false;
}
}
#endregion
#endregion
}
#endregion
#region fadedIn == true
if (fadedIn == true)
{
if (opacity < 255)
{
opacity = opacity + 5;
if (stage1eB == true)
{
boss1Opacity = opacity;
}
if (stage6e1 == true)
{
if (opacity < 255)
{
wallColor1 = opacity;
wallColor2 = opacity;
wallColor3 = opacity;
}
}
}
if (opacity == 255)
{
opacity = 255;
}
}
#endregion
#region fadedIn == false
if (fadedIn == false)
{
if (storybookCredits == true)
{
if (tempVolume > 0f)
{
tempVolume -= 0.05f;
}
}
if (opacity > 0)
{
opacity = opacity - 5;
e1FreezeColor = opacity;
e2FreezeColor = opacity;
e3FreezeColor = opacity;
e4FreezeColor = opacity;
e5FreezeColor = opacity;
e6FreezeColor = opacity;
e7FreezeColor = opacity;
e8FreezeColor = opacity;
e9FreezeColor = opacity;
e10FreezeColor = opacity;
e11FreezeColor = opacity;
e12FreezeColor = opacity;
e13FreezeColor = opacity;
e14FreezeColor = opacity;
e15FreezeColor = opacity;
e16FreezeColor = opacity;
e17FreezeColor = opacity;
e18FreezeColor = opacity;
e19FreezeColor = opacity;
e20FreezeColor = opacity;
if (stage1eB == true)
{
if (boss1Opacity > 0)
{
boss1Opacity = opacity;
}
}
if (stage2eB == true)
{
if (trackLaserOpacity > 0)
{
trackLaserOpacity = opacity;
}
}
if (stage6e1 == true)
{
if (wallOpacity1 > 0)
{
wallColor1 = opacity;
}
if (wallOpacity2 > 0)
{
wallColor2 = opacity;
}
if (wallOpacity3 > 0)
{
wallColor3 = opacity;
}
}
if (stage5e2 == true)
{
defenderFreezeOpacity = opacity;
}
if (stage6eB == true)
{
boss6Opacity = opacity;
}
if (stage7eB == true)
{
if (boss7Phase2 == true)
{
if (mechCloudOpacity > opacity)
{
mechCloudOpacity = opacity;
}
}
}
if (helpOpacity >= opacity)
{
helpOpacity = opacity;
}
obs1FreezeColor = opacity;
obs2FreezeColor = opacity;
obs3FreezeColor = opacity;
obs4FreezeColor = opacity;
obs5FreezeColor = opacity;
obs6FreezeColor = opacity;
obs7FreezeColor = opacity;
obs8FreezeColor = opacity;
obs9FreezeColor = opacity;
obs10FreezeColor = opacity;
}
if (opacity == 0)
{
opacity = 0;
if (stage1eB == true)
{
boss1Opacity = opacity;
}
obs1FreezeColor = opacity;
obs2FreezeColor = opacity;
obs3FreezeColor = opacity;
obs4FreezeColor = opacity;
obs5FreezeColor = opacity;
obs6FreezeColor = opacity;
obs7FreezeColor = opacity;
obs8FreezeColor = opacity;
obs9FreezeColor = opacity;
obs10FreezeColor = opacity;
helpOpacity = opacity;
}
if (storyOpacity > 0)
{
storyOpacity -= 5;
}
if (storyOpacity < 0)
{
storyOpacity = 0;
}
}
#endregion
#region toBlack == true
if (toBlack == true)
{
fadeCT++;
if (fadeCT > 60)
{
toBlack = false;
fadeCT = 0;
fadedIn = true;
}
}
#endregion
#region White Matte
if (whiteMatte == true && whiteMatteOpacity < 255)
{
whiteMatteOpacity = whiteMatteOpacity + 5;
if (whiteMatteOpacity > 255)
{
whiteMatteOpacity = 255;
}
}
if (whiteMatte == false && whiteMatteOpacity > 0)
{
whiteMatteOpacity = whiteMatteOpacity - 5;
if (whiteMatteOpacity < 0)
{
whiteMatteOpacity = 0;
}
}
#endregion
#region Black Matte
if (blackMatte == true && blackMatteOpacity < 255)
{
blackMatteOpacity = blackMatteOpacity + 5;
if (blackMatteOpacity > 255)
{
blackMatteOpacity = 255;
}
}
if (blackMatte == false && blackMatteOpacity > 0)
{
blackMatteOpacity = blackMatteOpacity - 5;
if (blackMatteOpacity < 0)
{
blackMatteOpacity = 0;
}
}
#endregion
#region musicFade == true
if (musicFade == true)
{
if (tempVolume > 0)
{
tempVolume = tempVolume - 0.05f;
}
if (tempVolume <= 0)
{
tempVolume = 0;
}
}
#endregion
#region savingGame == true
if (savingGame == true)
{
//SAVE ALL SETTINGS
#region Save New
save.Data.saveMapGridX = mapGridX;
save.Data.saveMapGridY = mapGridY;
save.Data.saveMapPosX = recallMapPosX;
save.Data.saveMapPosY = recallMapPosY;
save.Data.savefrom4e1 = from4e1;
save.Data.savefrom4e2 = from4e2;
save.Data.saveGoldNow = goldNow;
save.Data.saveGoldAvailable = goldAvailable;
save.Data.saveGoldTotal = goldTotal;
save.Data.saveAtkLV = atkLevel;
save.Data.saveBreathMaxBonus = breathMaxBonus;
save.Data.saveBreathDmgBonus = breathDmgBonus;
save.Data.saveClawDmgBonus = clawDmgBonus;
save.Data.saveCritBonus = breathCritBonus;
save.Data.saveCycleBonus = breathCycleBonus;
save.Data.saveDefLV = defLevel;
save.Data.saveHPBonus = drgnHPBonus;
save.Data.saveSpikeBonus = spikeDRBonus;
save.Data.saveDRBonus = drgnDRBonus;
save.Data.saveSprLV = sptLevel;
save.Data.saveFlyBonus = drgnFlyBonus;
save.Data.saveFreezeBonus = freezeTimeBonus;
save.Data.savePreserveGP = preserveGP;
save.Data.saveArmorRedBonus = acidArmorRedBonus;
save.Data.saveEXPReducer = EXPReducer;
save.Data.saveHPXP = drgnHPXP;
save.Data.saveBreathMaxXP = breathMaxXP;
save.Data.saveFlyXP = drgnFlyXP;
save.Data.saveClawXP = clawXP;
save.Data.saveBreathDmgXP = breathXP;
save.Data.saveHPLV = drgnHPLV;
save.Data.saveBreathMaxLV = breathMaxLV;
save.Data.saveFlyLV = drgnFlyLV;
save.Data.saveClawLV = clawLV;
save.Data.saveBreathDmgLV = breathLV;
save.Data.saveHatchling = have01Hatchling;
save.Data.saveHPTreasure1 = drgnHPTreasure1;
save.Data.saveSmile = have02Smile;
save.Data.saveHPTreasure2 = drgnHPTreasure2;
save.Data.saveCrest = have03Crest;
save.Data.saveDRTreasure1 = drgnDRTreasure1;
save.Data.saveUnderpants = have04Underpants;
save.Data.saveDRTreasure2 = drgnDRTreasure2;
save.Data.saveSollerets = have05Sollerets;
save.Data.saveSpikeTreasure = spikeDRTreasure;
save.Data.saveScepter = have06Scepter;
save.Data.saveBreathDmgTreasure1 = breathDmgTreasure1;
save.Data.saveMomiji = have07Momiji;
save.Data.saveBreathDmgTreasure2 = breathDmgTreasure2;
save.Data.saveNinjato = have08Ninjato;
save.Data.saveBreathMaxTreasure1 = breathMaxTreasure1;
save.Data.saveRing = have09Ring;
save.Data.saveBreathMaxTreasure2 = breathMaxTreasure2;
save.Data.saveSunset = have10Sunset;
save.Data.saveBreathMaxTreasure3 = breathMaxTreasure3;
save.Data.saveDreihander = have11Dreihander;
save.Data.saveClawDmgTreasure1 = clawDmgTreasure1;
save.Data.saveEndeavour = have12Endeavour;
save.Data.saveClawDmgTreasure2 = clawDmgTreasure2;
save.Data.saveDoll = have13Doll;
save.Data.saveClawSize = clawSize;
save.Data.saveLiqueur = have14Liqueur;
save.Data.saveArmorRedTreasure = acidArmorRedTreasure;
save.Data.savePenultima = have15Penultima;
save.Data.saveBreathCycleTreasure = breathCycleTreasure;
save.Data.saveLeaf = have16Leaf;
save.Data.saveFlyTreasure1 = drgnFlyTreasure1;
save.Data.saveHTTYD = have17HTTYD;
save.Data.saveFlyTreasure2 = drgnFlyTreasure2;
save.Data.saveGust = have18Gust;
save.Data.saveFlyTreasure3 = drgnFlyTreasure3;
save.Data.saveShirt = have19Shirt;
save.Data.saveFlyTreasure4 = drgnFlyTreasure4;
save.Data.saveDeduction = have20Deduction;
save.Data.saveFreezeTreasure = freezeTreasure;
save.Data.saveTopaz = have21Topaz;
save.Data.saveSapphire = have22Sapphire;
save.Data.saveGarnet = have23Garnet;
save.Data.saveRuby = have24Ruby;
save.Data.saveDiamond = have25Diamond;
save.Data.saves1e2On = on1e2;
save.Data.saves1e3On = on1e3;
save.Data.saves1ebOn = on1eB;
save.Data.saves2e1On = on2e1;
save.Data.saves2e2On = on2e2;
save.Data.saves2e3On = on2e3;
save.Data.saves2ebOn = on2eB;
save.Data.saves3e1On = on3e1;
save.Data.saves3e2On = on3e2;
save.Data.saves3e3On = on3e3;
save.Data.saves3ebOn = on3eB;
save.Data.saves4e1On = on4e1;
save.Data.saves4e2On = on4e2;
save.Data.saves4e3On = on4e3;
save.Data.saves4e4On = on4e4;
save.Data.saves4ebOn = on4eB;
save.Data.saves5e1On = on5e1;
save.Data.saves5e2On = on5e2;
save.Data.saves5ebOn = on5eB;
save.Data.saves6e1On = on6e1;
save.Data.saves6eBOn = on6eB;
save.Data.saves7eBOn = on7eB;
save.Data.saves1e2Seen = seenStory1_2;
save.Data.saves1eBSeen = seenStory1_B;
save.Data.saves2e2Seen = seenStory2_2;
save.Data.saves2eBSeen = seenStory2_B;
save.Data.saves3eBSeen = seenStory3_B;
save.Data.saves4e4Seen = seenStory4_4;
save.Data.saves4eBSeen = seenStory4_B;
save.Data.saves5eBSeen = seenStory5_B;
save.Data.saves6e1Seen = seenStory6_1;
save.Data.saves7eBSeen = seenStory7_B;
save.Data.savehaveBolt = haveBolt;
save.Data.savehaveCold = haveFrost;
save.Data.savehaveAcid = haveAcid;
save.Data.savehaveHerb = haveGanja;
save.Data.saveboss1Clear = boss1Clear;
save.Data.saveboss2Clear = boss2Clear;
save.Data.saveboss3Clear = boss3Clear;
save.Data.saveboss4Clear = boss4Clear;
save.Data.saveboss5Clear = boss5Clear;
save.Data.saveboss6Clear = boss6Clear;
save.Data.saveLanguageType = languageType;
save.Data.saveControlType = controlType;
save.Data.saveHealthType = healthType;
save.Data.saveBGMNum = checkVolume;
save.Data.saveSFXNum = checkSFX;
save.Data.saveJump = jumpVal;
save.Data.saveClaw = clawVal;
save.Data.saveBreath = breathVal;
save.Data.saveConf = confVal;
save.Data.saveSwl = swlVal;
save.Data.saveSwr = swrVal;
save.Data.saveLeft = leftVal;
save.Data.saveRight = rightVal;
save.Data.saveUp = upVal;
save.Data.saveDown = downVal;
save.Data.saveQuest = npcQuest;
save.Data.saveWhistle1 = whistle1;
save.Data.saveWhistle2 = whistle2;
save.Data.saveWhistle3 = whistle3;
#endregion
save.Save();
savingGame = false;
}
#endregion
#region fadeWait == true
if (fadeWait == true)
{
fadeCT++;
if (fadeCT > 60)
{
fadeWait = false;
fadeCT = 0;
#region toStory == true
if (toStory == true)
{
worldBGM.Dispose();
worldBGM = new ContentManager(Services, "Content");
stageBGM.Dispose();
stageBGM = new ContentManager(Services, "Content");
playStageMusic = new PlayStageMusic(0, null);
tempVolume = 1.0f;
playStoryHappy = new PlayStoryHappy(true, storyBGM);
playStoryEnemy = new PlayStoryEnemy(true, storyBGM);
playStoryWistful = new PlayStoryWistful(true, storyBGM);
drgnDashing = 1;
whiteMatte = false;
blackMatte = false;
warpFrame = 0;
warpCT = 0;
seenEvent1 = false;
seenEvent2 = false;
eventWait = 0;
eventXVel = 0;
eventYVel = 0;
storyHappy = false;
storyEnemy = false;
storyPulse = false;
if (stage1eB == true)
{
stage1eB = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage2e2 == true)
{
stage2e2 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage2eB == true)
{
stage2eB = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage3eB == true)
{
stage3eB = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage4eB == true)
{
stage4eB = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage5eB == true)
{
stage5eB = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage6e1 == true)
{
stage6e1 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
drawStages = new DrawStages(0, null);
drawSky = new DrawSky(0, null);
pageTurnSFXWait = 0;
pageTurnWait = false;
if (story1 == true)
{
drawStory = new DrawStory(1, languageType, fontSetting,
storyManager);
}
if (story1_2pre == true)
{
drawStory = new DrawStory(2, languageType, fontSetting,
storyManager);
}
if (story1_Bpre == true)
{
drawStory = new DrawStory(3, languageType, fontSetting,
storyManager);
}
if (story1_Bpost == true)
{
drawStory = new DrawStory(4, languageType, fontSetting,
storyManager);
}
if (story2_2post == true)
{
drawStory = new DrawStory(5, languageType, fontSetting,
storyManager);
}
if (story2_Bpre == true)
{
drawStory = new DrawStory(6, languageType, fontSetting,
storyManager);
}
if (story2_Bpost == true)
{
drawStory = new DrawStory(7, languageType, fontSetting,
storyManager);
}
if (story3_Bpre == true)
{
drawStory = new DrawStory(8, languageType, fontSetting,
storyManager);
}
if (story3_Bpost == true)
{
drawStory = new DrawStory(9, languageType, fontSetting,
storyManager);
}
if (story4_4post == true)
{
drawStory = new DrawStory(10, languageType, fontSetting,
storyManager);
}
if (story4_Bpre == true)
{
drawStory = new DrawStory(11, languageType, fontSetting,
storyManager);
}
if (story4_Bpost == true)
{
drawStory = new DrawStory(12, languageType, fontSetting,
storyManager);
}
if (story5_Bpre == true)
{
drawStory = new DrawStory(13, languageType, fontSetting,
storyManager);
}
if (story5_Bpost == true)
{
drawStory = new DrawStory(14, languageType, fontSetting,
storyManager);
}
if (story6_1post == true)
{
drawStory = new DrawStory(15, languageType, fontSetting,
storyManager);
}
if (story7_Bpre == true)
{
drawStory = new DrawStory(16, languageType, fontSetting,
storyManager);
}
if (story7_Bmid == true)
{
drawStory = new DrawStory(17, languageType, fontSetting,
storyManager);
}
if (storyEnd == true)
{
playStoryEndingA = new PlayStoryEndingA(true, storyBGM);
playStoryEndingB = new PlayStoryEndingB(true, storyBGM);
playStoryCredits = new PlayStoryCredits(true, storyBGM);
playMusicBox = new PlayMusicBox(true, storyBGM);
if (have01Hatchling == true && have02Smile == true &&
have03Crest == true && have04Underpants == true && have05Sollerets == true &&
have06Scepter == true && have07Momiji == true && have08Ninjato == true && have09Ring
== true && have10Sunset == true && have11Dreihander == true && have12Endeavour ==
true && have13Doll == true && have14Liqueur == true && have15Penultima == true &&
have16Leaf == true && have17HTTYD == true && have18Gust == true && have19Shirt ==
true && have20Deduction == true && have21Topaz == true && have22Sapphire == true &&
have23Garnet == true && have24Ruby == true && have25Diamond == true)
{
achievements.UpdateAch(-1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 1);
endpageCT = 0;
endpageFrameX = 0;
endpageFrameY = 0;
drawStory = new DrawStory(19, languageType,
fontSetting, storyManager);
drawEndPage = new DrawEndPage(true, storyManager);
}
else
{
achievements.UpdateAch(-1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 1, -1);
endpageCT = 0;
endpageFrameX = 0;
endpageFrameY = 0;
drawStory = new DrawStory(18, languageType,
fontSetting, storyManager);
drawEndPage = new DrawEndPage(true, storyManager);
}
drawCredits = new DrawCredits(true, storyManager);
drgnFaceR = false;
}
storybook = true;
#region Kill Title Screen
if (titleScreen == true)
{
titleScreen = false;
displayTitle = false;
}
#endregion
fromStory = true;
actionStage = false;
worldMap = false;
runEvent = false;
dragonDash = false;
page1Depth = 2;
storyFGFrameX1 = 0;
storyFGFrameY1 = 0;
page2Depth = 1;
storyFGFrameX2 = 0;
storyFGFrameY2 = 0;
page3Depth = 0;
storyFGFrameX3 = 0;
storyFGFrameY3 = 0;
page4Depth = 0;
storyFGFrameX4 = 0;
storyFGFrameY4 = 0;
page5Depth = 0;
storyFGFrameX5 = 0;
storyFGFrameY5 = 0;
page6Depth = 0;
storyFGFrameX6 = 0;
storyFGFrameY6 = 0;
page7Depth = 0;
storyFGFrameX7 = 0;
storyFGFrameY7 = 0;
storyTextFrameX = 0;
storyTextFrameY = 0;
storyTextTotal = 0;
storyFGFrameCT = 0;
storyOpacity = 0;
storyOpacityCT = 0;
pg1turn = false;
pg2turn = false;
pg3turn = false;
pg4turn = false;
pg5turn = false;
pg6turn = false;
pg7turn = false;
textFadeIn = true;
textFadeOut = false;
storyHappy = false;
storyPulse = false;
storyEnemy = false;
drgnCamX = 0;
drgnCamY = 0;
if (storybookCredits == true)
{
creditsMonsterFrame = 0;
creditsBackgroundX1 = -1280;
creditsBackgroundX2 = -2560;
creditsBackgroundX3 = -3840;
creditsBackgroundY1 = 0;
creditsBackgroundY2 = 0;
creditsBackgroundY3 = 0;
creditsDragonX = 1281;
creditsPrincessX = 1481;
creditsGirlX = 1681;
creditsBoyX = 1881;
credits1Y = 800;
credits2Y = 1600;
credits3Y = 2400;
credits4Y = 3200;
credits5Y = 4000;
credits6Y = 4800;
credits7Y = 5600;
credits8Y = 6400;
credits9Y = 7200;
credits10Y = 8000;
credits11Y = 8800;
credits12Y = 9600;
creditsDragonCT = 0;
creditsDragonFrame = 1;
creditsPrincessCT = 0;
creditsPrincessFrame = 2;
creditsGirlCT = 0;
creditsGirlFrame = 3;
creditsBoyCT = 0;
creditsBoyFrame = 0;
}
}
#endregion
#region toWorldMap == true
if (toWorldMap == true)
{
stageBGM.Dispose();
stageBGM = new ContentManager(Services, "Content");
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
playStageMusic = new PlayStageMusic(0, null);
play5e2Top = new Play5e2Top(0, null);
play5e2Bottom = new Play5e2Bottom(0, null);
breathSFX.Dispose();
breathSFX = new ContentManager(Services, "Content");
playFireSFX = new PlayFireSFX(0, null);
playThunderSFX = new PlayThunderSFX(0, null);
playIceSFX = new PlayIceSFX(0, null);
playAcidSFX = new PlayAcidSFX(0, null);
playMagicSFX = new PlayMagicSFX(0, null);
playWaterSFX = new PlayWaterSFX(0, null);
playWings = new PlayWings(0, null);
loopFlame = new LoopFlame(false, null);
loopThunderBlast = new LoopThunderBlast(false, null);
loopAcid = new LoopAcid(false, null);
loopFlameAtk = new LoopFlameAtk(false, null);
loopLaser = new LoopLaser(false, null);
loopBurrow = new LoopBurrow(false, null);
loopFireBreathAlt = new LoopFireBreathAlt(false, null);
loopIceBreathAlt = new LoopIceBreathAlt(false, null);
storyBGM.Dispose();
storyBGM = new ContentManager(Services, "Content");
playStoryEnemy = new PlayStoryEnemy(false, null);
playStoryHappy = new PlayStoryHappy(false, null);
playStoryWistful = new PlayStoryWistful(false, null);
drawWorldMap = new DrawWorldMap(true, mapManager);
if (fromStory == true)
{
//dispose music
storyManager.Dispose();
storyManager = new ContentManager(Services, "Content");
drawStory = new DrawStory(0, languageType, fontSetting,
null);
fromStory = false;
}
musicFade = false;
tempVolume = 1.0f;
playWorldMusic = new PlayWorldMusic(1, worldBGM);
capeReady = false;
puzzleCT = 0;
worldMapPointerModX = 0;
worldMapPointerModY = 0;
showPause = false;
pausePos = 0;
if (whiteMatte == true)
{
whiteMatte = false;
whiteMatteOpacity = 0;
}
if (seenStory2_2 == false && on2e3 == true)
{
seenStory2_2 = true;
}
if (seenStory6_1 == false && haveGanja == true)
{
seenStory6_1 = true;
}
drgnSpikeDamage = false;
drgnFire = false;
stageCT++;
whiteMatte = false;
drgnDashing = 1;
warpFrame = 0;
warpCT = 0;
seenEvent1 = false;
seenEvent2 = false;
eventXVel = 0;
eventYVel = 0;
eventWait = 0;
#region Kill Title Screen
if (titleScreen == true)
{
titleScreen = false;
displayTitle = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
#endregion
actionStage = false;
worldMap = true;
waterfall1Frozen = false;
waterfall2Frozen = false;
machineryElectrified = false;
needStarPos = false;
mapArrowUp = false;
mapArrowRight = false;
mapArrowDown = false;
mapArrowLeft = false;
drgnUnderwater = false;
underwaterBreath = false;
breathTypeSix = 0;
toggleTutorial = 0;
tutorialPos = 0;
worldMapCT = 0;
worldMapFrame = 0;
#region have treasure total
if (have01Hatchling == true)
{
haveTreasure1 = 1;
}
if (have02Smile == true)
{
haveTreasure2 = 1;
}
if (have03Crest == true)
{
haveTreasure3 = 1;
}
if (have04Underpants == true)
{
haveTreasure4 = 1;
}
if (have05Sollerets == true)
{
haveTreasure5 = 1;
}
if (have06Scepter == true)
{
haveTreasure6 = 1;
}
if (have07Momiji == true)
{
haveTreasure7 = 1;
}
if (have08Ninjato == true)
{
haveTreasure8 = 1;
}
if (have09Ring == true)
{
haveTreasure9 = 1;
}
if (have10Sunset == true)
{
haveTreasure10 = 1;
}
if (have11Dreihander == true)
{
haveTreasure11 = 1;
}
if (have12Endeavour == true)
{
haveTreasure12 = 1;
}
if (have13Doll == true)
{
haveTreasure13 = 1;
}
if (have14Liqueur == true)
{
haveTreasure14 = 1;
}
if (have15Penultima == true)
{
haveTreasure15 = 1;
}
if (have16Leaf == true)
{
haveTreasure16 = 1;
}
if (have17HTTYD == true)
{
haveTreasure17 = 1;
}
if (have18Gust == true)
{
haveTreasure18 = 1;
}
if (have19Shirt == true)
{
haveTreasure19 = 1;
}
if (have20Deduction == true)
{
haveTreasure20 = 1;
}
if (have21Topaz == true)
{
haveTreasure21 = 1;
}
if (have22Sapphire == true)
{
haveTreasure22 = 1;
}
if (have23Garnet == true)
{
haveTreasure23 = 1;
}
if (have24Ruby == true)
{
haveTreasure24 = 1;
}
if (have25Diamond == true)
{
haveTreasure25 = 1;
}
if (haveAcid == true)
{
haveTreasure26 = 1;
}
#endregion
#region Explosions
exp1CT = 0;
exp1Frame = 0;
exp2CT = 0;
exp2Frame = 0;
exp3CT = 0;
exp3Frame = 0;
exp4CT = 0;
exp4Frame = 0;
exp5CT = 0;
exp5Frame = 0;
exp6CT = 0;
exp6Frame = 0;
exp1Wait = 0;
exp2Wait = 0;
exp3Wait = 0;
exp4Wait = 0;
exp5Wait = 0;
exp6Wait = 0;
exp1X = 0;
exp1Y = 0;
exp2X = 0;
exp2Y = 0;
exp3X = 0;
exp3Y = 0;
exp4X = 0;
exp4Y = 0;
exp5X = 0;
exp5Y = 0;
exp6X = 0;
exp6Y = 0;
exp1On = false;
exp2On = false;
exp3On = false;
exp4On = false;
exp5On = false;
exp6On = false;
expSerial = false;
#endregion
#region Obstacles
obs1X = 0;
obs1Y = 0;
obs1XVel = 0;
obs1YVel = 0;
obs1CT = 0;
obs1Frame = 0;
obs1Act = 0;
obs1Wait = 0;
obs1FreezeCT = 0;
obs1FreezeColor = 0;
obs2X = 0;
obs2Y = 0;
obs2XVel = 0;
obs2YVel = 0;
obs2CT = 0;
obs2Frame = 0;
obs2Act = 0;
obs2Wait = 0;
obs2FreezeCT = 0;
obs2FreezeColor = 0;
obs3X = 0;
obs3Y = 0;
obs3XVel = 0;
obs3YVel = 0;
obs3CT = 0;
obs3Frame = 0;
obs3Act = 0;
obs3Wait = 0;
obs3FreezeCT = 0;
obs3FreezeColor = 0;
obs4X = 0;
obs4Y = 0;
obs4XVel = 0;
obs4YVel = 0;
obs4CT = 0;
obs4Frame = 0;
obs4Act = 0;
obs4Wait = 0;
obs4FreezeCT = 0;
obs4FreezeColor = 0;
obs5X = 0;
obs5Y = 0;
obs5XVel = 0;
obs5YVel = 0;
obs5CT = 0;
obs5Frame = 0;
obs5Act = 0;
obs5Wait = 0;
obs5FreezeCT = 0;
obs5FreezeColor = 0;
obs6X = 0;
obs6Y = 0;
obs6XVel = 0;
obs6YVel = 0;
obs6CT = 0;
obs6Frame = 0;
obs6Act = 0;
obs6Wait = 0;
obs6FreezeCT = 0;
obs6FreezeColor = 0;
obs7X = 0;
obs7Y = 0;
obs7XVel = 0;
obs7YVel = 0;
obs7CT = 0;
obs7Frame = 0;
obs7Act = 0;
obs7Wait = 0;
obs7FreezeCT = 0;
obs7FreezeColor = 0;
obs8X = 0;
obs8Y = 0;
obs8XVel = 0;
obs8YVel = 0;
obs8CT = 0;
obs8Frame = 0;
obs8Act = 0;
obs8Wait = 0;
obs8FreezeCT = 0;
obs8FreezeColor = 0;
obs9X = 0;
obs9Y = 0;
obs9XVel = 0;
obs9YVel = 0;
obs9CT = 0;
obs9Frame = 0;
obs9Act = 0;
obs9Wait = 0;
obs9FreezeCT = 0;
obs9FreezeColor = 0;
obs10X = 0;
obs10Y = 0;
obs10XVel = 0;
obs10YVel = 0;
obs10CT = 0;
obs10Frame = 0;
obs10Act = 0;
obs10Wait = 0;
obs10FreezeCT = 0;
obs10FreezeColor = 0;
obs1Up = false;
obs2Up = false;
obs3Up = false;
obs4Up = false;
obs5Up = false;
obs6Up = false;
obs7Up = false;
obs8Up = false;
obs9Up = false;
obs10Up = false;
#endregion
#region whistle
whistleRandom = -1;
note1Measure = 0;
note1Beat = 0;
note1xPos = 0;
note1yPos = 0;
note1xVel = 0;
note1yVel = -2;
note2Measure = 0;
note2Beat = 0;
note2xPos = 0;
note2yPos = 0;
note2xVel = 0;
note2yVel = -2;
note3Measure = 0;
note3Beat = 0;
note3xPos = 0;
note3yPos = 0;
note3xVel = 0;
note3yVel = -2;
note4Measure = 0;
note4Beat = 0;
note4xPos = 0;
note4yPos = 0;
note4xVel = 0;
note4yVel = -2;
#endregion
runEvent = false;
dragonDash = false;
drgnGrab = false;
#region stages
if (stageHome == true)
{
stageHome = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage1e1 == true)
{
stage1e1 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage1e2 == true)
{
stage1e2 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage1e3 == true)
{
stage1e3 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage1eB == true)
{
stage1eB = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage2e1 == true)
{
stage2e1 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage2e2 == true)
{
stage2e2 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage2e3 == true)
{
stage2e3 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage2e4 == true)
{
draw2e4 = new Draw2e4(false, stageManager);
stage2e4 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage2eB == true)
{
stage2eB = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage3e1 == true)
{
stage3e1 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage3e2 == true)
{
stage3e2 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage3e3 == true)
{
stage3e3 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage3eB == true)
{
stage3eB = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage4e1 == true)
{
stage4e1 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage4e2 == true)
{
stage4e2 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage4e3 == true)
{
stage4e3 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage4e4 == true)
{
stage4e4 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage4eB == true)
{
stage4eB = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage5e1 == true)
{
stage5e1 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage5e2 == true)
{
stage5e2 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage5eB == true)
{
stage5eB = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage6e1 == true)
{
stage6e1 = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage6eB == true)
{
stage6eB = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
if (stage7eB == true)
{
stage7eB = false;
stageManager.Dispose();
stageManager = new ContentManager(Services, "Content");
}
#endregion
loadSquire = new LoadSquire(false, null);
loadSheep = new LoadSheep(false, null);
loadRam = new LoadRam(false, null);
loadArcher = new LoadArcher(false, null);
loadCD = new LoadCD(false, null);
loadHandler = new LoadHandler(false, null);
loadSecurity = new LoadSecurity(false, null);
loadXbow = new LoadXbow(false, null);
loadSwordmaster = new LoadSwordmaster(false, null);
loadBone = new LoadBone(false, null);
loadSax = new LoadSax(false, null);
loadTuba = new LoadTuba(false, null);
loadHazmat = new LoadHazmat(false, null);
loadLancer = new LoadLancer(false, null);
loadPikeman = new LoadPikeman(0, null);
loadFiresoldier = new LoadFiresoldier(false, null);
loadFencer = new LoadFencer(false, null);
loadXX = new LoadXX(false, null);
loadSpymaster = new LoadSpymaster(false, null);
loadWalker = new LoadWalker(false, null);
loadFlier = new LoadFlier(false, null);
loadFlyss = new LoadFlyss(false, null);
puzzleTruck = new PuzzleTruck(false, null);
puzzleWater = new PuzzleWater(false, null);
puzzleHovercraft = new PuzzleHovercraft(false, null);
puzzleBoat = new PuzzleBoat(false, null);
puzzleGate = new PuzzleGate(false, null);
puzzle4e3top = new Puzzle4e3top(false, null);
puzzleBramble = new PuzzleBramble(false, null);
puzzleCruise = new PuzzleCruise(false, null);
puzzleRock = new PuzzleRock(false, null);
puzzle5e2 = new Puzzle5e2(false, null);
puzzleTower = new PuzzleTower(false, null);
loadGust = new LoadGust(false, null);
loadBoss1 = new LoadTM061(false, null);
loadCaptain = new LoadCaptain(false, null);
loadAlex = new LoadAlex(false, null);
loadBaldwin = new LoadBaldwin(false, null);
loadWarden = new LoadWarden(false, null);
loadNinja = new LoadNinja(false, null);
loadGeneral = new LoadGeneral(false, null);
loadMech = new LoadMech(false, null);
loadOcean = new LoadOcean(0, null);
drawWater = new DrawWater(0, null);
loadWaterfall = new LoadWaterfall(0, null);
loadFirefloor = new LoadFirefloor(false, null);
loadLavaball = new LoadLavaball(false, null);
loadToxicball = new LoadToxicball(false, null);
loadNeckbird = new LoadNeckbird(false, null);
loadTentacle = new LoadTentacle(false, null);
npc1e2 = new Npc1e2(false, null);
npc1e3 = new Npc1e3(false, null);
npc2e1 = new Npc2e1(false, null);
npc2e2 = new Npc2e2(false, null);
npc2e3 = new Npc2e3(false, null);
npc2e4 = new Npc2e4(false, null);
npc3e1 = new Npc3e1(false, null);
npc4e1 = new Npc4e1(false, null);
npc4e2 = new Npc4e2(false, null);
npc4e3 = new Npc4e3(false, null);
npc4e4 = new Npc4e4(false, null);
npc5e1 = new Npc5e1(false, null);
npc5e2 = new Npc5e2(false, null);
draw2e1 = new Draw2e1(false, null);
draw2e4 = new Draw2e4(false, null);
draw4e2 = new Draw4e2(false, null);
draw5e1 = new Draw5e1(false, null);
draw6eB = new Draw6eB(false, null);
drawAbyss = new DrawAbyss(false, null);
drawStages = new DrawStages(0, null);
drawHome = new DrawHome(false, null, 0);
drawTreasureText = new DrawTreasureText(0, null, 0);
drawTitle = new DrawTitle(false, null);
drawSky = new DrawSky(0, null);
loadDragon = new LoadDragon(true, stageManager);
loadExplosion = new LoadExplosion(true, stageManager);
playDefeat = false;
playExit = false;
playFlameWall = false;
stageExit = false;
endOfStage = false;
stageMusic = false;
storybook = false;
story1 = false;
story1_2pre = false;
story1_Bpre = false;
story1_Bpost = false;
story2_2post = false;
story2_Bpre = false;
story2_Bpost = false;
story3_Bpre = false;
story3_Bpost = false;
story4_4post = false;
story4_Bpre = false;
story4_Bpost = false;
story5_Bpre = false;
story5_Bpost = false;
story6_1post = false;
story7_Bpre = false;
story7_Bmid = false;
depositedGP = false;
if (defeated == true)
{
defeated = false;
if (preserveGP == 0)
{
goldNow = goldNow / 2;
if (goldNow % 2 != 0)
{
goldNow--;
if (goldNow < 0)
{
goldNow = 0;
}
}
}
}
drgnX = recallMapPosX;
drgnY = recallMapPosY;
boss7Phase1 = false;
boss7Phase2 = false;
//BEGIN RESET SETTINGS
#region Enemy Reset
#region do not duplicate
e6projB_X = 0;
e6projB_Y = 0;
e6projBVel = 0;
e6projC_X = 0;
e6projC_Y = 0;
e6projCVel = 0;
e6projectileB = false;
e6projectileC = false;
e7projB_X = 0;
e7projB_Y = 0;
e7projBVel = 0;
e7projC_X = 0;
e7projC_Y = 0;
e7projCVel = 0;
e7projectileB = false;
e7projectileC = false;
e8projB_X = 0;
e8projB_Y = 0;
e8projBVel = 0;
e8projC_X = 0;
e8projC_Y = 0;
e8projCVel = 0;
e8projectileB = false;
e8projectileC = false;
e9projB_X = 0;
e9projB_Y = 0;
e9projBVel = 0;
e9projC_X = 0;
e9projC_Y = 0;
e9projCVel = 0;
e9projectileB = false;
e9projectileC = false;
e10projB_X = 0;
e10projB_Y = 0;
e10projBVel = 0;
e10projC_X = 0;
e10projC_Y = 0;
e10projCVel = 0;
e10projectileB = false;
e10projectileC = false;
e6Melee = false;
e7Melee = false;
e8Melee = false;
e6projA = false;
e7projA = false;
e8projA = false;
e6projB = false;
e7projB = false;
e8projB = false;
#endregion
e1HP = 0; //enemy 1 HP
e1arm = 0; //enemy 1 armor
e1CT = 0; //enemy 1 frame counter
e1Y_CT = 0; //enemy 1 velocity timer
e1timer = 0; //enemy 1 action timer
e1invTimer = 0; //enemy 1 invincibility timer
e1X = 0; //enemy 1 X-pos
e1Y = 0; //enemy 1 Y-pos
e1Yvel = 0; //enemy 1 Y-velocity
e1R = 0; //enemy 1 -R value
e1G = 0; //enemy 1 -G value
e1Opacity = 255; //enemy 1 opacity
e1frame = 0; //determines frame of animation for enemy 1
e1act = 0; //determines type of animation (move, wait,
attack, etc.)
e1facing = 0; //determines direction enemy 1 is facing
e1projA_X = 0; //determines enemy 1's projectile A X-pos
e1projA_Y = 0; //determines enemy 1's projectile A Y-pos
e1projA_frame = 0; //determines e1 projectile A frame of
animation
e1projA_dir = 0; //determines e1 projectile A orientation
e1invBlink = 255; //makes e1 blink when invulnerable
e1knockbackTimer = 0;
e1hitTimer = 0;
e1Attack = 0;
e1armor = 0;
e1armorRed = 0;
e1FreezeColor = 0;
e1FreezeCT = 0;
e1smokeCT = 0;
e1smokeFrame = 0;
e1coinValue = 0;
e1coinCT = 0;
e1coinFrame = 0;
e1coinType = 0;
e1FireVul = 0;
e1BoltVul = 0;
e1AcidVul = 0;
e1altAnimCT = 0;
e2HP = 0;
e2arm = 0;
e2CT = 0;
e2Y_CT = 0;
e2timer = 0;
e2invTimer = 0;
e2X = 0;
e2Y = 0;
e2Yvel = 0;
e2R = 0;
e2G = 0;
e2Opacity = 255;
e2frame = 0;
e2act = 0;
e2facing = 0;
e2projA_X = 0;
e2projA_Y = 0;
e2projA_frame = 0;
e2projA_dir = 0;
e2invBlink = 255;
e2knockbackTimer = 0;
e2hitTimer = 0;
e2Attack = 0;
e2armor = 0;
e2armorRed = 0;
e2FreezeColor = 0;
e2FreezeCT = 0;
e2smokeCT = 0;
e2smokeFrame = 0;
e2coinValue = 0;
e2coinCT = 0;
e2coinFrame = 0;
e2coinType = 0;
e2FireVul = 0;
e2BoltVul = 0;
e2AcidVul = 0;
e2altAnimCT = 0;
e3HP = 0;
e3arm = 0;
e3CT = 0;
e3Y_CT = 0;
e3timer = 0;
e3invTimer = 0;
e3X = 0;
e3Y = 0;
e3Yvel = 0;
e3R = 0;
e3G = 0;
e3Opacity = 255;
e3frame = 0;
e3act = 0;
e3facing = 0;
e3projA_X = 0;
e3projA_Y = 0;
e3projA_frame = 0;
e3projA_dir = 0;
e3invBlink = 255;
e3knockbackTimer = 0;
e3hitTimer = 0;
e3Attack = 0;
e3armor = 0;
e3armorRed = 0;
e3FreezeColor = 0;
e3FreezeCT = 0;
e3smokeCT = 0;
e3smokeFrame = 0;
e3coinValue = 0;
e3coinCT = 0;
e3coinFrame = 0;
e3coinType = 0;
e3FireVul = 0;
e3BoltVul = 0;
e3AcidVul = 0;
e3altAnimCT = 0;
e4HP = 0;
e4arm = 0;
e4CT = 0;
e4Y_CT = 0;
e4timer = 0;
e4invTimer = 0;
e4X = 0;
e4Y = 0;
e4Yvel = 0;
e4R = 0;
e4G = 0;
e4Opacity = 255;
e4frame = 0;
e4act = 0;
e4facing = 0;
e4projA_X = 0;
e4projA_Y = 0;
e4projA_frame = 0;
e4projA_dir = 0;
e4invBlink = 255;
e4knockbackTimer = 0;
e4hitTimer = 0;
e4Attack = 0;
e4armor = 0;
e4armorRed = 0;
e4FreezeColor = 0;
e4FreezeCT = 0;
e4smokeCT = 0;
e4smokeFrame = 0;
e4coinValue = 0;
e4coinCT = 0;
e4coinFrame = 0;
e4coinType = 0;
e4FireVul = 0;
e4BoltVul = 0;
e4AcidVul = 0;
e4altAnimCT = 0;
e5HP = 0;
e5arm = 0;
e5CT = 0;
e5Y_CT = 0;
e5timer = 0;
e5invTimer = 0;
e5X = 0;
e5Y = 0;
e5Yvel = 0;
e5R = 0;
e5G = 0;
e5Opacity = 255;
e5frame = 0;
e5act = 0;
e5facing = 0;
e5projA_X = 0;
e5projA_Y = 0;
e5projA_frame = 0;
e5projA_dir = 0;
e5invBlink = 255;
e5knockbackTimer = 0;
e5hitTimer = 0;
e5Attack = 0;
e5armor = 0;
e5armorRed = 0;
e5FreezeColor = 0;
e5FreezeCT = 0;
e5smokeCT = 0;
e5smokeFrame = 0;
e5coinValue = 0;
e5coinCT = 0;
e5coinFrame = 0;
e5coinType = 0;
e5FireVul = 0;
e5BoltVul = 0;
e5AcidVul = 0;
e5altAnimCT = 0;
e6HP = 0;
e6arm = 0;
e6CT = 0;
e6Y_CT = 0;
e6timer = 0;
e6invTimer = 0;
e6X = 0;
e6Y = 0;
e6Yvel = 0;
e6R = 0;
e6G = 0;
e6Opacity = 255;
e6frame = 0;
e6act = 0;
e6facing = 0;
e6projA_X = 0;
e6projA_Y = 0;
e6projA_frame = 0;
e6projA_dir = 0;
e6invBlink = 255;
e6knockbackTimer = 0;
e6hitTimer = 0;
e6Attack = 0;
e6armor = 0;
e6armorRed = 0;
e6FreezeColor = 0;
e6FreezeCT = 0;
e6smokeCT = 0;
e6smokeFrame = 0;
e6coinValue = 0;
e6coinCT = 0;
e6coinFrame = 0;
e6coinType = 0;
e6FireVul = 0;
e6BoltVul = 0;
e6AcidVul = 0;
e6altAnimCT = 0;
e7HP = 0;
e7arm = 0;
e7CT = 0;
e7Y_CT = 0;
e7timer = 0;
e7invTimer = 0;
e7X = 0;
e7Y = 0;
e7Yvel = 0;
e7R = 0;
e7G = 0;
e7Opacity = 255;
e7frame = 0;
e7act = 0;
e7facing = 0;
e7projA_X = 0;
e7projA_Y = 0;
e7projA_frame = 0;
e7projA_dir = 0;
e7invBlink = 255;
e7knockbackTimer = 0;
e7hitTimer = 0;
e7Attack = 0;
e7armor = 0;
e7armorRed = 0;
e7FreezeColor = 0;
e7FreezeCT = 0;
e7smokeCT = 0;
e7smokeFrame = 0;
e7coinValue = 0;
e7coinCT = 0;
e7coinFrame = 0;
e7coinType = 0;
e7FireVul = 0;
e7BoltVul = 0;
e7AcidVul = 0;
e7altAnimCT = 0;
e8HP = 0;
e8arm = 0;
e8CT = 0;
e8Y_CT = 0;
e8timer = 0;
e8invTimer = 0;
e8X = 0;
e8Y = 0;
e8Yvel = 0;
e8R = 0;
e8G = 0;
e8Opacity = 255;
e8frame = 0;
e8act = 0;
e8facing = 0;
e8projA_X = 0;
e8projA_Y = 0;
e8projA_frame = 0;
e8projA_dir = 0;
e8invBlink = 255;
e8knockbackTimer = 0;
e8hitTimer = 0;
e8Attack = 0;
e8armor = 0;
e8armorRed = 0;
e8FreezeColor = 0;
e8FreezeCT = 0;
e8smokeCT = 0;
e8smokeFrame = 0;
e8coinValue = 0;
e8coinCT = 0;
e8coinFrame = 0;
e8coinType = 0;
e8FireVul = 0;
e8BoltVul = 0;
e8AcidVul = 0;
e8altAnimCT = 0;
e9HP = 0;
e9arm = 0;
e9CT = 0;
e9Y_CT = 0;
e9timer = 0;
e9invTimer = 0;
e9X = 0;
e9Y = 0;
e9Yvel = 0;
e9R = 0;
e9G = 0;
e9Opacity = 255;
e9frame = 0;
e9act = 0;
e9facing = 0;
e9projA_X = 0;
e9projA_Y = 0;
e9projA_frame = 0;
e9projA_dir = 0;
e9invBlink = 255;
e9knockbackTimer = 0;
e9hitTimer = 0;
e9Attack = 0;
e9armor = 0;
e9armorRed = 0;
e9FreezeColor = 0;
e9FreezeCT = 0;
e9smokeCT = 0;
e9smokeFrame = 0;
e9coinValue = 0;
e9coinCT = 0;
e9coinFrame = 0;
e9coinType = 0;
e9FireVul = 0;
e9BoltVul = 0;
e9AcidVul = 0;
e9altAnimCT = 0;
e10HP = 0;
e10arm = 0;
e10CT = 0;
e10Y_CT = 0;
e10timer = 0;
e10invTimer = 0;
e10X = 0;
e10Y = 0;
e10Yvel = 0;
e10R = 0;
e10G = 0;
e10Opacity = 255;
e10frame = 0;
e10act = 0;
e10facing = 0;
e10projA_X = 0;
e10projA_Y = 0;
e10projA_frame = 0;
e10projA_dir = 0;
e10invBlink = 255;
e10knockbackTimer = 0;
e10hitTimer = 0;
e10Attack = 0;
e10armor = 0;
e10armorRed = 0;
e10FreezeColor = 0;
e10FreezeCT = 0;
e10smokeCT = 0;
e10smokeFrame = 0;
e10coinValue = 0;
e10coinCT = 0;
e10coinFrame = 0;
e10coinType = 0;
e10FireVul = 0;
e10BoltVul = 0;
e10AcidVul = 0;
e10altAnimCT = 0;
touchLe1 = false;
touchRe1 = false;
touchLe2 = false;
touchRe2 = false;
touchLe3 = false;
touchRe3 = false;
touchLe4 = false;
touchRe4 = false;
touchLe5 = false;
touchRe5 = false;
touchLe6 = false;
touchRe6 = false;
touchLe7 = false;
touchRe7 = false;
touchLe8 = false;
touchRe8 = false;
touchLe9 = false;
touchRe9 = false;
touchLe10 = false;
touchRe10 = false;
touchLe11 = false;
touchRe11 = false;
touchLe12 = false;
touchRe12 = false;
touchLe13 = false;
touchRe13 = false;
touchLe14 = false;
touchRe14 = false;
touchLe15 = false;
touchRe15 = false;
touchLe16 = false;
touchRe16 = false;
touchLe17 = false;
touchRe17 = false;
touchLe18 = false;
touchRe18 = false;
touchLe19 = false;
touchRe19 = false;
touchLe20 = false;
touchRe20 = false;
e1stand = false;
e2stand = false;
e3stand = false;
e4stand = false;
e5stand = false;
e6stand = false;
e7stand = false;
e8stand = false;
e9stand = false;
e10stand = false;
e11stand = false;
e12stand = false;
e13stand = false;
e14stand = false;
e15stand = false;
e16stand = false;
e17stand = false;
e18stand = false;
e19stand = false;
e20stand = false;
e1FrameHalf = 1;
e2FrameHalf = 1;
e3FrameHalf = 1;
e4FrameHalf = 1;
e5FrameHalf = 1;
e6FrameHalf = 1;
e7FrameHalf = 1;
e8FrameHalf = 1;
e9FrameHalf = 1;
e10FrameHalf = 1;
e1spawn = false;
e1frozen = false;
e1shoot = false;
e1invulnerable = false;
e1faceR = false;
e1knockback = false;
e1knockbackRes = false;
e1onGround = true;
e1proximity = false;
e1touchWallR = false;
e1touchWallL = false;
e1breathhit = false;
e1clawhit = false;
e1hit = false;
e1peaceful = false;
e1frRes = false;
e1peaceRes = false;
e1coins = false;
e1smoke = false;
e1coinTouch = false;
e1BurnVul = false;
e1ShockVul = false;
e1altAnim = false;
e2spawn = false;
e2frozen = false;
e2shoot = false;
e2invulnerable = false;
e2faceR = false;
e2knockback = false;
e2knockbackRes = false;
e2onGround = true;
e2proximity = false;
e2touchWallR = false;
e2touchWallL = false;
e2breathhit = false;
e2clawhit = false;
e2hit = false;
e2peaceful = false;
e2frRes = false;
e2peaceRes = false;
e2coins = false;
e2smoke = false;
e2coinTouch = false;
e2BurnVul = false;
e2ShockVul = false;
e2altAnim = false;
e3spawn = false;
e3frozen = false;
e3shoot = false;
e3invulnerable = false;
e3faceR = false;
e3knockback = false;
e3knockbackRes = false;
e3onGround = true;
e3proximity = false;
e3touchWallR = false;
e3touchWallL = false;
e3breathhit = false;
e3clawhit = false;
e3hit = false;
e3peaceful = false;
e3frRes = false;
e3peaceRes = false;
e3coins = false;
e3smoke = false;
e3coinTouch = false;
e3BurnVul = false;
e3ShockVul = false;
e3altAnim = false;
e4spawn = false;
e4frozen = false;
e4shoot = false;
e4invulnerable = false;
e4faceR = false;
e4knockback = false;
e4knockbackRes = false;
e4onGround = true;
e4proximity = false;
e4touchWallR = false;
e4touchWallL = false;
e4breathhit = false;
e4clawhit = false;
e4hit = false;
e4peaceful = false;
e4frRes = false;
e4peaceRes = false;
e4coins = false;
e4smoke = false;
e4coinTouch = false;
e4BurnVul = false;
e4ShockVul = false;
e4altAnim = false;
e5spawn = false;
e5frozen = false;
e5shoot = false;
e5invulnerable = false;
e5faceR = false;
e5knockback = false;
e5knockbackRes = false;
e5onGround = true;
e5proximity = false;
e5touchWallR = false;
e5touchWallL = false;
e5breathhit = false;
e5clawhit = false;
e5hit = false;
e5peaceful = false;
e5frRes = false;
e5peaceRes = false;
e5coins = false;
e5smoke = false;
e5coinTouch = false;
e5BurnVul = false;
e5ShockVul = false;
e5altAnim = false;
e6spawn = false;
e6frozen = false;
e6shoot = false;
e6invulnerable = false;
e6faceR = false;
e6knockback = false;
e6knockbackRes = false;
e6onGround = true;
e6proximity = false;
e6touchWallR = false;
e6touchWallL = false;
e6breathhit = false;
e6clawhit = false;
e6hit = false;
e6peaceful = false;
e6frRes = false;
e6peaceRes = false;
e6coins = false;
e6smoke = false;
e6coinTouch = false;
e6BurnVul = false;
e6ShockVul = false;
e6altAnim = false;
e7spawn = false;
e7frozen = false;
e7shoot = false;
e7invulnerable = false;
e7faceR = false;
e7knockback = false;
e7knockbackRes = false;
e7onGround = true;
e7proximity = false;
e7touchWallR = false;
e7touchWallL = false;
e7breathhit = false;
e7clawhit = false;
e7hit = false;
e7peaceful = false;
e7frRes = false;
e7peaceRes = false;
e7coins = false;
e7smoke = false;
e7coinTouch = false;
e7BurnVul = false;
e7ShockVul = false;
e7altAnim = false;
e8spawn = false;
e8frozen = false;
e8shoot = false;
e8invulnerable = false;
e8faceR = false;
e8knockback = false;
e8knockbackRes = false;
e8onGround = true;
e8proximity = false;
e8touchWallR = false;
e8touchWallL = false;
e8breathhit = false;
e8clawhit = false;
e8hit = false;
e8peaceful = false;
e8frRes = false;
e8peaceRes = false;
e8coins = false;
e8smoke = false;
e8coinTouch = false;
e8BurnVul = false;
e8ShockVul = false;
e8altAnim = false;
e9spawn = false;
e9frozen = false;
e9shoot = false;
e9invulnerable = false;
e9faceR = false;
e9knockback = false;
e9knockbackRes = false;
e9onGround = true;
e9proximity = false;
e9touchWallR = false;
e9touchWallL = false;
e9breathhit = false;
e9clawhit = false;
e9hit = false;
e9peaceful = false;
e9frRes = false;
e9peaceRes = false;
e9coins = false;
e9smoke = false;
e9coinTouch = false;
e9BurnVul = false;
e9ShockVul = false;
e9altAnim = false;
e10spawn = false;
e10frozen = false;
e10shoot = false;
e10invulnerable = false;
e10faceR = false;
e10knockback = false;
e10knockbackRes = false;
e10onGround = true;
e10proximity = false;
e10touchWallR = false;
e10touchWallL = false;
e10breathhit = false;
e10clawhit = false;
e10hit = false;
e10peaceful = false;
e10frRes = false;
e10peaceRes = false;
e10coins = false;
e10smoke = false;
e10coinTouch = false;
e10BurnVul = false;
e10ShockVul = false;
e10altAnim = false;
e1projectile = false;
e2projectile = false;
e3projectile = false;
e4projectile = false;
e5projectile = false;
e6projectile = false;
e7projectile = false;
e8projectile = false;
e9projectile = false;
e10projectile = false;
e1projRef = false;
e2projRef = false;
e3projRef = false;
e4projRef = false;
e5projRef = false;
e6projRef = false;
e7projRef = false;
e8projRef = false;
e9projRef = false;
e10projRef = false;
e1projRefY = false;
e2projRefY = false;
e3projRefY = false;
e4projRefY = false;
e5projRefY = false;
e6projRefY = false;
e7projRefY = false;
e8projRefY = false;
e9projRefY = false;
e10projRefY = false;
e1burn = false;
e2burn = false;
e3burn = false;
e4burn = false;
e5burn = false;
e6burn = false;
e7burn = false;
e8burn = false;
e9burn = false;
e10burn = false;
e1shock = false;
e2shock = false;
e3shock = false;
e4shock = false;
e5shock = false;
e6shock = false;
e7shock = false;
e8shock = false;
e9shock = false;
e10shock = false;
e1burnTimer = 0;
e2burnTimer = 0;
e3burnTimer = 0;
e4burnTimer = 0;
e5burnTimer = 0;
e6burnTimer = 0;
e7burnTimer = 0;
e8burnTimer = 0;
e9burnTimer = 0;
e10burnTimer = 0;
e1burnCT = 0;
e2burnCT = 0;
e3burnCT = 0;
e4burnCT = 0;
e5burnCT = 0;
e6burnCT = 0;
e7burnCT = 0;
e8burnCT = 0;
e9burnCT = 0;
e10burnCT = 0;
e1burnFrame = 0;
e2burnFrame = 0;
e3burnFrame = 0;
e4burnFrame = 0;
e5burnFrame = 0;
e6burnFrame = 0;
e7burnFrame = 0;
e8burnFrame = 0;
e9burnFrame = 0;
e10burnFrame = 0;
e1shockTimer = 0;
e2shockTimer = 0;
e3shockTimer = 0;
e4shockTimer = 0;
e5shockTimer = 0;
e6shockTimer = 0;
e7shockTimer = 0;
e8shockTimer = 0;
e9shockTimer = 0;
e10shockTimer = 0;
e1shockCT = 0;
e2shockCT = 0;
e3shockCT = 0;
e4shockCT = 0;
e5shockCT = 0;
e6shockCT = 0;
e7shockCT = 0;
e8shockCT = 0;
e9shockCT = 0;
e10shockCT = 0;
e1shockFrame = 0;
e2shockFrame = 0;
e3shockFrame = 0;
e4shockFrame = 0;
e5shockFrame = 0;
e6shockFrame = 0;
e7shockFrame = 0;
e8shockFrame = 0;
e9shockFrame = 0;
e10shockFrame = 0;
e1projWidth = 0;
e1projHeight = 0;
e2projWidth = 0;
e2projHeight = 0;
e3projWidth = 0;
e3projHeight = 0;
e4projWidth = 0;
e4projHeight = 0;
e5projWidth = 0;
e5projHeight = 0;
e6projWidth = 0;
e6projHeight = 0;
e7projWidth = 0;
e7projHeight = 0;
e8projWidth = 0;
e8projHeight = 0;
e9projWidth = 0;
e9projHeight = 0;
e10projWidth = 0;
e10projHeight = 0;
e1projOrigX = 0;
e1projOrigY = 0;
e2projOrigX = 0;
e2projOrigY = 0;
e3projOrigX = 0;
e3projOrigY = 0;
e4projOrigX = 0;
e4projOrigY = 0;
e5projOrigX = 0;
e5projOrigY = 0;
e6projOrigX = 0;
e6projOrigY = 0;
e7projOrigX = 0;
e7projOrigY = 0;
e8projOrigX = 0;
e8projOrigY = 0;
e9projOrigX = 0;
e9projOrigY = 0;
e10projOrigX = 0;
e10projOrigY = 0;
e1projCT = 0;
e2projCT = 0;
e3projCT = 0;
e4projCT = 0;
e5projCT = 0;
e6projCT = 0;
e7projCT = 0;
e8projCT = 0;
e9projCT = 0;
e10projCT = 0;
e11projCT = 0;
e12projCT = 0;
e13projCT = 0;
e14projCT = 0;
e15projCT = 0;
e16projCT = 0;
e17projCT = 0;
e18projCT = 0;
e19projCT = 0;
e20projCT = 0;
e21projCT = 0;
e22projCT = 0;
e23projCT = 0;
e24projCT = 0;
e25projCT = 0;
e26projCT = 0;
e27projCT = 0;
e28projCT = 0;
e29projCT = 0;
e30projCT = 0;
e1HP = 0; //enemy 1 HP
e11arm = 0; //enemy 1 armor
e11CT = 0; //enemy 1 frame counter
e11Y_CT = 0; //enemy 1 velocity timer
e11timer = 0; //enemy 1 action timer
e11invTimer = 0; //enemy 1 invincibility timer
e11X = 0; //enemy 1 X-pos
e11Y = 0; //enemy 1 Y-pos
e11Yvel = 0; //enemy 1 Y-velocity
e11R = 0; //enemy 1 -R value
e11G = 0; //enemy 1 -G value
e11Opacity = 255; //enemy 1 opacity
e11frame = 0; //determines frame of animation for enemy 1
e11act = 0; //determines type of animation (move, wait,
attack, etc.)
e11facing = 0; //determines direction enemy 1 is facing
e11projA_X = 0; //determines enemy 1's projectile A X-pos
e11projA_Y = 0; //determines enemy 1's projectile A Y-pos
e11projA_frame = 0; //determines e1 projectile A frame of
animation
e11projA_dir = 0; //determines e1 projectile A orientation
e11invBlink = 255; //makes e1 blink when invulnerable
e11knockbackTimer = 0;
e11hitTimer = 0;
e11Attack = 0;
e11armor = 0;
e11armorRed = 0;
e11FreezeColor = 0;
e11FreezeCT = 0;
e11smokeCT = 0;
e11smokeFrame = 0;
e11coinValue = 0;
e11coinCT = 0;
e11coinFrame = 0;
e11coinType = 0;
e11FireVul = 0;
e11BoltVul = 0;
e11AcidVul = 0;
e11altAnimCT = 0;
e12HP = 0;
e12arm = 0;
e12CT = 0;
e12Y_CT = 0;
e12timer = 0;
e12invTimer = 0;
e12X = 0;
e12Y = 0;
e12Yvel = 0;
e12R = 0;
e12G = 0;
e12Opacity = 255;
e12frame = 0;
e12act = 0;
e12facing = 0;
e12projA_X = 0;
e12projA_Y = 0;
e12projA_frame = 0;
e12projA_dir = 0;
e12invBlink = 255;
e12knockbackTimer = 0;
e12hitTimer = 0;
e12Attack = 0;
e12armor = 0;
e12armorRed = 0;
e12FreezeColor = 0;
e12FreezeCT = 0;
e12smokeCT = 0;
e12smokeFrame = 0;
e12coinValue = 0;
e12coinCT = 0;
e12coinFrame = 0;
e12coinType = 0;
e12FireVul = 0;
e12BoltVul = 0;
e12AcidVul = 0;
e12altAnimCT = 0;
e13HP = 0;
e13arm = 0;
e13CT = 0;
e13Y_CT = 0;
e13timer = 0;
e13invTimer = 0;
e13X = 0;
e13Y = 0;
e13Yvel = 0;
e13R = 0;
e13G = 0;
e13Opacity = 255;
e13frame = 0;
e13act = 0;
e13facing = 0;
e13projA_X = 0;
e13projA_Y = 0;
e13projA_frame = 0;
e13projA_dir = 0;
e13invBlink = 255;
e13knockbackTimer = 0;
e13hitTimer = 0;
e13Attack = 0;
e13armor = 0;
e13armorRed = 0;
e13FreezeColor = 0;
e13FreezeCT = 0;
e13smokeCT = 0;
e13smokeFrame = 0;
e13coinValue = 0;
e13coinCT = 0;
e13coinFrame = 0;
e13coinType = 0;
e13FireVul = 0;
e13BoltVul = 0;
e13AcidVul = 0;
e13altAnimCT = 0;
e14HP = 0;
e14arm = 0;
e14CT = 0;
e14Y_CT = 0;
e14timer = 0;
e14invTimer = 0;
e14X = 0;
e14Y = 0;
e14Yvel = 0;
e14R = 0;
e14G = 0;
e14Opacity = 255;
e14frame = 0;
e14act = 0;
e14facing = 0;
e14projA_X = 0;
e14projA_Y = 0;
e14projA_frame = 0;
e14projA_dir = 0;
e14invBlink = 255;
e14knockbackTimer = 0;
e14hitTimer = 0;
e14Attack = 0;
e14armor = 0;
e14armorRed = 0;
e14FreezeColor = 0;
e14FreezeCT = 0;
e14smokeCT = 0;
e14smokeFrame = 0;
e14coinValue = 0;
e14coinCT = 0;
e14coinFrame = 0;
e14coinType = 0;
e14FireVul = 0;
e14BoltVul = 0;
e14AcidVul = 0;
e14altAnimCT = 0;
e15HP = 0;
e15arm = 0;
e15CT = 0;
e15Y_CT = 0;
e15timer = 0;
e15invTimer = 0;
e15X = 0;
e15Y = 0;
e15Yvel = 0;
e15R = 0;
e15G = 0;
e15Opacity = 255;
e15frame = 0;
e15act = 0;
e15facing = 0;
e15projA_X = 0;
e15projA_Y = 0;
e15projA_frame = 0;
e15projA_dir = 0;
e15invBlink = 255;
e15knockbackTimer = 0;
e15hitTimer = 0;
e15Attack = 0;
e15armor = 0;
e15armorRed = 0;
e15FreezeColor = 0;
e15FreezeCT = 0;
e15smokeCT = 0;
e15smokeFrame = 0;
e15coinValue = 0;
e15coinCT = 0;
e15coinFrame = 0;
e15coinType = 0;
e15FireVul = 0;
e15BoltVul = 0;
e15AcidVul = 0;
e15altAnimCT = 0;
e16HP = 0;
e16arm = 0;
e16CT = 0;
e16Y_CT = 0;
e16timer = 0;
e16invTimer = 0;
e16X = 0;
e16Y = 0;
e16Yvel = 0;
e16R = 0;
e16G = 0;
e16Opacity = 255;
e16frame = 0;
e16act = 0;
e16facing = 0;
e16projA_X = 0;
e16projA_Y = 0;
e16projA_frame = 0;
e16projA_dir = 0;
e16invBlink = 255;
e16knockbackTimer = 0;
e16hitTimer = 0;
e16Attack = 0;
e16armor = 0;
e16armorRed = 0;
e16FreezeColor = 0;
e16FreezeCT = 0;
e16smokeCT = 0;
e16smokeFrame = 0;
e16coinValue = 0;
e16coinCT = 0;
e16coinFrame = 0;
e16coinType = 0;
e16FireVul = 0;
e16BoltVul = 0;
e16AcidVul = 0;
e16altAnimCT = 0;
e17HP = 0;
e17arm = 0;
e17CT = 0;
e17Y_CT = 0;
e17timer = 0;
e17invTimer = 0;
e17X = 0;
e17Y = 0;
e17Yvel = 0;
e17R = 0;
e17G = 0;
e17Opacity = 255;
e17frame = 0;
e17act = 0;
e17facing = 0;
e17projA_X = 0;
e17projA_Y = 0;
e17projA_frame = 0;
e17projA_dir = 0;
e17invBlink = 255;
e17knockbackTimer = 0;
e17hitTimer = 0;
e17Attack = 0;
e17armor = 0;
e17armorRed = 0;
e17FreezeColor = 0;
e17FreezeCT = 0;
e17smokeCT = 0;
e17smokeFrame = 0;
e17coinValue = 0;
e17coinCT = 0;
e17coinFrame = 0;
e17coinType = 0;
e17FireVul = 0;
e17BoltVul = 0;
e17AcidVul = 0;
e17altAnimCT = 0;
e18HP = 0;
e18arm = 0;
e18CT = 0;
e18Y_CT = 0;
e18timer = 0;
e18invTimer = 0;
e18X = 0;
e18Y = 0;
e18Yvel = 0;
e18R = 0;
e18G = 0;
e18Opacity = 255;
e18frame = 0;
e18act = 0;
e18facing = 0;
e18projA_X = 0;
e18projA_Y = 0;
e18projA_frame = 0;
e18projA_dir = 0;
e18invBlink = 255;
e18knockbackTimer = 0;
e18hitTimer = 0;
e18Attack = 0;
e18armor = 0;
e18armorRed = 0;
e18FreezeColor = 0;
e18FreezeCT = 0;
e18smokeCT = 0;
e18smokeFrame = 0;
e18coinValue = 0;
e18coinCT = 0;
e18coinFrame = 0;
e18coinType = 0;
e18FireVul = 0;
e18BoltVul = 0;
e18AcidVul = 0;
e18altAnimCT = 0;
e19HP = 0;
e19arm = 0;
e19CT = 0;
e19Y_CT = 0;
e19timer = 0;
e19invTimer = 0;
e19X = 0;
e19Y = 0;
e19Yvel = 0;
e19R = 0;
e19G = 0;
e19Opacity = 255;
e19frame = 0;
e19act = 0;
e19facing = 0;
e19projA_X = 0;
e19projA_Y = 0;
e19projA_frame = 0;
e19projA_dir = 0;
e19invBlink = 255;
e19knockbackTimer = 0;
e19hitTimer = 0;
e19Attack = 0;
e19armor = 0;
e19armorRed = 0;
e19FreezeColor = 0;
e19FreezeCT = 0;
e19smokeCT = 0;
e19smokeFrame = 0;
e19coinValue = 0;
e19coinCT = 0;
e19coinFrame = 0;
e19coinType = 0;
e19FireVul = 0;
e19BoltVul = 0;
e19AcidVul = 0;
e19altAnimCT = 0;
e20HP = 0;
e20arm = 0;
e20CT = 0;
e20Y_CT = 0;
e20timer = 0;
e20invTimer = 0;
e20X = 0;
e20Y = 0;
e20Yvel = 0;
e20R = 0;
e20G = 0;
e20Opacity = 255;
e20frame = 0;
e20act = 0;
e20facing = 0;
e20projA_X = 0;
e20projA_Y = 0;
e20projA_frame = 0;
e20projA_dir = 0;
e20invBlink = 255;
e20knockbackTimer = 0;
e20hitTimer = 0;
e20Attack = 0;
e20armor = 0;
e20armorRed = 0;
e20FreezeColor = 0;
e20FreezeCT = 0;
e20smokeCT = 0;
e20smokeFrame = 0;
e20coinValue = 0;
e20coinCT = 0;
e20coinFrame = 0;
e20coinType = 0;
e20FireVul = 0;
e20BoltVul = 0;
e20AcidVul = 0;
e20altAnimCT = 0;
touchLe1 = false;
touchRe1 = false;
touchLe2 = false;
touchRe2 = false;
touchLe3 = false;
touchRe3 = false;
touchLe4 = false;
touchRe4 = false;
touchLe5 = false;
touchRe5 = false;
touchLe6 = false;
touchRe6 = false;
touchLe7 = false;
touchRe7 = false;
touchLe8 = false;
touchRe8 = false;
touchLe9 = false;
touchRe9 = false;
touchLe10 = false;
touchRe10 = false;
touchLe11 = false;
touchRe11 = false;
touchLe12 = false;
touchRe12 = false;
touchLe13 = false;
touchRe13 = false;
touchLe14 = false;
touchRe14 = false;
touchLe15 = false;
touchRe15 = false;
touchLe16 = false;
touchRe16 = false;
touchLe17 = false;
touchRe17 = false;
touchLe18 = false;
touchRe18 = false;
touchLe19 = false;
touchRe19 = false;
touchLe20 = false;
touchRe20 = false;
e11FrameHalf = 1;
e12FrameHalf = 1;
e13FrameHalf = 1;
e14FrameHalf = 1;
e15FrameHalf = 1;
e16FrameHalf = 1;
e17FrameHalf = 1;
e18FrameHalf = 1;
e19FrameHalf = 1;
e20FrameHalf = 1;
e11spawn = false;
e11frozen = false;
e11shoot = false;
e11invulnerable = false;
e11faceR = false;
e11knockback = false;
e11knockbackRes = false;
e11onGround = true;
e11proximity = false;
e11touchWallR = false;
e11touchWallL = false;
e11breathhit = false;
e11clawhit = false;
e11hit = false;
e11peaceful = false;
e11frRes = false;
e11peaceRes = false;
e11coins = false;
e11smoke = false;
e11coinTouch = false;
e11BurnVul = false;
e11ShockVul = false;
e11altAnim = false;
e12spawn = false;
e12frozen = false;
e12shoot = false;
e12invulnerable = false;
e12faceR = false;
e12knockback = false;
e12knockbackRes = false;
e12onGround = true;
e12proximity = false;
e12touchWallR = false;
e12touchWallL = false;
e12breathhit = false;
e12clawhit = false;
e12hit = false;
e12peaceful = false;
e12frRes = false;
e12peaceRes = false;
e12coins = false;
e12smoke = false;
e12coinTouch = false;
e12BurnVul = false;
e12ShockVul = false;
e12altAnim = false;
e13spawn = false;
e13frozen = false;
e13shoot = false;
e13invulnerable = false;
e13faceR = false;
e13knockback = false;
e13knockbackRes = false;
e13onGround = true;
e13proximity = false;
e13touchWallR = false;
e13touchWallL = false;
e13breathhit = false;
e13clawhit = false;
e13hit = false;
e13peaceful = false;
e13frRes = false;
e13peaceRes = false;
e13coins = false;
e13smoke = false;
e13coinTouch = false;
e13BurnVul = false;
e13ShockVul = false;
e13altAnim = false;
e14spawn = false;
e14frozen = false;
e14shoot = false;
e14invulnerable = false;
e14faceR = false;
e14knockback = false;
e14knockbackRes = false;
e14onGround = true;
e14proximity = false;
e14touchWallR = false;
e14touchWallL = false;
e14breathhit = false;
e14clawhit = false;
e14hit = false;
e14peaceful = false;
e14frRes = false;
e14peaceRes = false;
e14coins = false;
e14smoke = false;
e14coinTouch = false;
e14BurnVul = false;
e14ShockVul = false;
e14altAnim = false;
e15spawn = false;
e15frozen = false;
e15shoot = false;
e15invulnerable = false;
e15faceR = false;
e15knockback = false;
e15knockbackRes = false;
e15onGround = true;
e15proximity = false;
e15touchWallR = false;
e15touchWallL = false;
e15breathhit = false;
e15clawhit = false;
e15hit = false;
e15peaceful = false;
e15frRes = false;
e15peaceRes = false;
e15coins = false;
e15smoke = false;
e15coinTouch = false;
e15BurnVul = false;
e15ShockVul = false;
e15altAnim = false;
e16spawn = false;
e16frozen = false;
e16shoot = false;
e16invulnerable = false;
e16faceR = false;
e16knockback = false;
e16knockbackRes = false;
e16onGround = true;
e16proximity = false;
e16touchWallR = false;
e16touchWallL = false;
e16breathhit = false;
e16clawhit = false;
e16hit = false;
e16peaceful = false;
e16frRes = false;
e16peaceRes = false;
e16coins = false;
e16smoke = false;
e16coinTouch = false;
e16BurnVul = false;
e16ShockVul = false;
e16altAnim = false;
e17spawn = false;
e17frozen = false;
e17shoot = false;
e17invulnerable = false;
e17faceR = false;
e17knockback = false;
e17knockbackRes = false;
e17onGround = true;
e17proximity = false;
e17touchWallR = false;
e17touchWallL = false;
e17breathhit = false;
e17clawhit = false;
e17hit = false;
e17peaceful = false;
e17frRes = false;
e17peaceRes = false;
e17coins = false;
e17smoke = false;
e17coinTouch = false;
e17BurnVul = false;
e17ShockVul = false;
e17altAnim = false;
e18spawn = false;
e18frozen = false;
e18shoot = false;
e18invulnerable = false;
e18faceR = false;
e18knockback = false;
e18knockbackRes = false;
e18onGround = true;
e18proximity = false;
e18touchWallR = false;
e18touchWallL = false;
e18breathhit = false;
e18clawhit = false;
e18hit = false;
e18peaceful = false;
e18frRes = false;
e18peaceRes = false;
e18coins = false;
e18smoke = false;
e18coinTouch = false;
e18BurnVul = false;
e18ShockVul = false;
e18altAnim = false;
e19spawn = false;
e19frozen = false;
e19shoot = false;
e19invulnerable = false;
e19faceR = false;
e19knockback = false;
e19knockbackRes = false;
e19onGround = true;
e19proximity = false;
e19touchWallR = false;
e19touchWallL = false;
e19breathhit = false;
e19clawhit = false;
e19hit = false;
e19peaceful = false;
e19frRes = false;
e19peaceRes = false;
e19coins = false;
e19smoke = false;
e19coinTouch = false;
e19BurnVul = false;
e19ShockVul = false;
e19altAnim = false;
e20spawn = false;
e20frozen = false;
e20shoot = false;
e20invulnerable = false;
e20faceR = false;
e20knockback = false;
e20knockbackRes = false;
e20onGround = true;
e20proximity = false;
e20touchWallR = false;
e20touchWallL = false;
e20breathhit = false;
e20clawhit = false;
e20hit = false;
e20peaceful = false;
e20frRes = false;
e20peaceRes = false;
e20coins = false;
e20smoke = false;
e20coinTouch = false;
e20BurnVul = false;
e20ShockVul = false;
e20altAnim = false;
e11projectile = false;
e12projectile = false;
e13projectile = false;
e14projectile = false;
e15projectile = false;
e16projectile = false;
e17projectile = false;
e18projectile = false;
e19projectile = false;
e20projectile = false;
e11projRef = false;
e12projRef = false;
e13projRef = false;
e14projRef = false;
e15projRef = false;
e16projRef = false;
e17projRef = false;
e18projRef = false;
e19projRef = false;
e20projRef = false;
e11projRefY = false;
e12projRefY = false;
e13projRefY = false;
e14projRefY = false;
e15projRefY = false;
e16projRefY = false;
e17projRefY = false;
e18projRefY = false;
e19projRefY = false;
e20projRefY = false;
e11burn = false;
e12burn = false;
e13burn = false;
e14burn = false;
e15burn = false;
e16burn = false;
e17burn = false;
e18burn = false;
e19burn = false;
e20burn = false;
e11shock = false;
e12shock = false;
e13shock = false;
e14shock = false;
e15shock = false;
e16shock = false;
e17shock = false;
e18shock = false;
e19shock = false;
e20shock = false;
e11burnTimer = 0;
e12burnTimer = 0;
e13burnTimer = 0;
e14burnTimer = 0;
e15burnTimer = 0;
e16burnTimer = 0;
e17burnTimer = 0;
e18burnTimer = 0;
e19burnTimer = 0;
e20burnTimer = 0;
e11burnCT = 0;
e12burnCT = 0;
e13burnCT = 0;
e14burnCT = 0;
e15burnCT = 0;
e16burnCT = 0;
e17burnCT = 0;
e18burnCT = 0;
e19burnCT = 0;
e20burnCT = 0;
e11burnFrame = 0;
e12burnFrame = 0;
e13burnFrame = 0;
e14burnFrame = 0;
e15burnFrame = 0;
e16burnFrame = 0;
e17burnFrame = 0;
e18burnFrame = 0;
e19burnFrame = 0;
e20burnFrame = 0;
e11shockTimer = 0;
e12shockTimer = 0;
e13shockTimer = 0;
e14shockTimer = 0;
e15shockTimer = 0;
e16shockTimer = 0;
e17shockTimer = 0;
e18shockTimer = 0;
e19shockTimer = 0;
e20shockTimer = 0;
e11shockCT = 0;
e12shockCT = 0;
e13shockCT = 0;
e14shockCT = 0;
e15shockCT = 0;
e16shockCT = 0;
e17shockCT = 0;
e18shockCT = 0;
e19shockCT = 0;
e20shockCT = 0;
e11shockFrame = 0;
e12shockFrame = 0;
e13shockFrame = 0;
e14shockFrame = 0;
e15shockFrame = 0;
e16shockFrame = 0;
e17shockFrame = 0;
e18shockFrame = 0;
e19shockFrame = 0;
e20shockFrame = 0;
e11projWidth = 0;
e11projHeight = 0;
e12projWidth = 0;
e12projHeight = 0;
e13projWidth = 0;
e13projHeight = 0;
e14projWidth = 0;
e14projHeight = 0;
e15projWidth = 0;
e15projHeight = 0;
e16projWidth = 0;
e16projHeight = 0;
e17projWidth = 0;
e17projHeight = 0;
e18projWidth = 0;
e18projHeight = 0;
e19projWidth = 0;
e19projHeight = 0;
e20projWidth = 0;
e20projHeight = 0;
e11projOrigX = 0;
e11projOrigY = 0;
e12projOrigX = 0;
e12projOrigY = 0;
e13projOrigX = 0;
e13projOrigY = 0;
e14projOrigX = 0;
e14projOrigY = 0;
e15projOrigX = 0;
e15projOrigY = 0;
e16projOrigX = 0;
e16projOrigY = 0;
e17projOrigX = 0;
e17projOrigY = 0;
e18projOrigX = 0;
e18projOrigY = 0;
e19projOrigX = 0;
e19projOrigY = 0;
e20projOrigX = 0;
e20projOrigY = 0;
e11projCT = 0;
e12projCT = 0;
e13projCT = 0;
e14projCT = 0;
e15projCT = 0;
e16projCT = 0;
e17projCT = 0;
e18projCT = 0;
e19projCT = 0;
e20projCT = 0;
#endregion
#region sound reset
acid1 = false;
acid2 = false;
acid3 = false;
acid4 = false;
flame1 = false;
flame2 = false;
flame3 = false;
flame4 = false;
flame5 = false;
spin1 = false;
spin2 = false;
spin3 = false;
spin4 = false;
laser1 = false;
laser2 = false;
laser3 = false;
laser4 = false;
flameProx1 = false;
flameProx2 = false;
flameProx3 = false;
flameProx4 = false;
flameProx5 = false;
spinProx1 = false;
spinProx2 = false;
spinProx3 = false;
sprayProx1 = false;
sprayProx2 = false;
sprayProx3 = false;
laserProx1 = false;
laserProx2 = false;
laserProx3 = false;
laserProx4 = false;
#endregion
boss1invBlink = 255;
helpOpacity = 0;
helpCT = 0;
alexHitDelay = 0;
baldwinHitDelay = 0;
rootHitDelay = 0;
bodyHitDelay = 0;
redHitDelay = 0;
greenHitDelay = 0;
purpleHitDelay = 0;
headHitDelay = 0;
#region Boss 5 reset
boss5Phase1 = false;
boss5Phase2 = false;
boss5Transition = false;
kingAngry = false;
kingTantrum = false;
greenSmoke = false;
yellowSmoke = false;
redSmoke = false;
purpleSmoke = false;
e1Escape = false;
e1Dodge = false;
e1Throw = false;
e1ProjHit = false;
e2Escape = false;
e2Dodge = false;
e2Throw = false;
e2ProjHit = false;
e3Escape = false;
e3Dodge = false;
e3Throw = false;
e3ProjHit = false;
e3PillarOn = false;
e4Escape = false;
e4Dodge = false;
e4Throw = false;
e4ProjHit = false;
e4GasOn = false;
e1ScarecrowFrame = 0;
e1EscapeFrame = 0;
thunderCall1X = 0; thunderCall2X = 0; thunderCall3X = 0;
e2ScarecrowFrame = 0;
e2EscapeFrame = 0;
satlaser1X = 0; satlaser2X = 0; satlaser3X = 0;
e3ScarecrowFrame = 0;
e3EscapeFrame = 0;
e3attackTimer = 0;
e3projOrientation = 0;
spark1X = 0; spark1Y = 0; spark2X = 0; spark2Y = 0; spark3X
= 0; spark3Y = 0;
sparkvelX1 = 0; sparkvelX2 = 0; sparkvelX3 = 0;
pillar1X = 0; pillar2X = 0; pillar3X = 0;
e3projectileVel = 0;
e3YvelCT = 0;
pillarAct = 0;
pillarDuration = 0;
e4ScarecrowFrame = 0;
e4EscapeFrame = 0;
orb1X = 0; orb1Y = 0; orb2X = 0; orb2Y = 0; orb3X = 0; orb3Y
= 0;
orbVelX1 = 0; orbVelX2 = 0; orbVelX3 = 0;
gas1X = 0; gas2X = 0; gas3X = 0;
e4projectileVel = 0;
e4YvelCT = 0;
kingAct = 0;
kingFrame = 0;
crownX = 0;
crownY = 0;
#endregion
#region NPC Reset
npc1Act = 0;
npc1Frame = 0;
npc1CT = 0;
npc1VarAct = 0;
npc1Facing = 0;
npc1FaceR = false;
npc2Act = 0;
npc2Frame = 0;
npc2CT = 0;
npc2VarAct = 0;
npc2FaceR = false;
npc3Act = 0;
npc3Frame = 0;
npc3CT = 0;
npc3VarAct = 0;
npc3FaceR = false;
npc4Act = 0;
npc4Frame = 0;
npc4CT = 0;
npc4VarAct = 0;
npc4FaceR = false;
npc5Act = 0;
npc5Frame = 0;
npc5CT = 0;
npc5VarAct = 0;
npc6Act = 0;
npc6Frame = 0;
npc6CT = 0;
npc6VarAct = 0;
npc7Act = 0;
npc7Frame = 0;
npc7CT = 0;
npc7VarAct = 0;
npc8Act = 0;
npc8Frame = 0;
npc8CT = 0;
npc8VarAct = 0;
npc9Act = 0;
npc9Frame = 0;
npc9CT = 0;
npc9VarAct = 0;
niaOn = false;
squireOn = false;
bowOn = false;
heavyOn = false;
light1X = 0;
light2X = 0;
light3X = 0;
light4X = 0;
light1Frame = 0;
light2Frame = 0;
light3Frame = 0;
light4Frame = 0;
light1CT = 0;
light2CT = 0;
light3CT = 0;
light4CT = 0;
light1Act = 0;
light2Act = 0;
light3Act = 0;
light4Act = 0;
light1Wait = 0;
light2Wait = 0;
light3Wait = 0;
light4Wait = 0;
light1On = false;
light2On = false;
light3On = false;
light4On = false;
#endregion
//END RESET SETTINGS
}
#endregion
#region toActionStage == true
if (toActionStage == true)
{
worldBGM.Dispose();
worldBGM = new ContentManager(Services, "Content");
mapManager.Dispose();
mapManager = new ContentManager(Services, "Content");
drawWorldMap = new DrawWorldMap(false, null);
drawStory = new DrawStory(0, languageType, fontSetting,
null);
#region Always Perform
loadDragon = new LoadDragon(true, stageManager);
loadExplosion = new LoadExplosion(true, stageManager);
playFireSFX = new PlayFireSFX(1, breathSFX);
playThunderSFX = new PlayThunderSFX(1, breathSFX);
playIceSFX = new PlayIceSFX(1, breathSFX);
playAcidSFX = new PlayAcidSFX(1, breathSFX);
playMagicSFX = new PlayMagicSFX(1, breathSFX);
playWaterSFX = new PlayWaterSFX(1, breathSFX);
playWings = new PlayWings(1, breathSFX);
actionStagePause = false;
hovercraftExplosion = false;
cameraMinY = 0;
jumpWait = 0;
independentBackgroundXY = 0;
drgnSpikeDamage = false;
inMud = false;
spikeDamage = 0;
breathType = 0;
storyFGFrameX1 = 0;
storyFGFrameY1 = 0;
whiteMatte = false;
blackMatte = false;
defeatCT = 0;
drgnDashing = 1;
warpFrame = 0;
warpCT = 0;
titleScreen = false;
seenEvent1 = false;
seenEvent2 = false;
needRand = false;
haveRand = false;
runEvent = false;
waterfallKnockback = false;
xWhileJumping = false;
splashIn = false;
splashOut = false;
needSplashInLoc = false;
needSplashOutLoc = false;
splashOutLocX = 0;
splashInLocX = 0;
splashOutLocY = 0;
splashInLocY = 0;
splashInFrame = 0;
splashOutFrame = 0;
splashInCT = 0;
splashOutCT = 0;
waveFrame = 0;
acidFrame = 0;
waveCT = 0;
treasureWindowCT = 0;
treasureWindowFrame = 0;
treasureWindowX = -150;
treasureWindowUp = false;
treasureWindowDown = false;
whiteMatteOpacity = 0;
blackMatteOpacity = 0;
worldMap = false;
storybook = false;
story1 = false;
story1_2pre = false;
story1_Bpre = false;
story1_Bpost = false;
story2_2post = false;
story2_Bpre = false;
story2_Bpost = false;
story3_Bpre = false;
story3_Bpost = false;
story4_4post = false;
story4_Bpre = false;
story4_Bpost = false;
story5_Bpre = false;
story5_Bpost = false;
story6_1post = false;
story7_Bpre = false;
story7_Bmid = false;
duckStop = false;
runEvent = false;
dragonDash = false;
drgnOnGround = true;
drgnFlight = false;
drgnInvulnerable = false;
drgnKnockback = false;
drgnHit = false;
drgnAction = 0;
drgnInvTimer = 0;
drgnInvOpacity = 255;
drgnKnockbackTimer = 0;
drgnFrame = 0;
drgnDamageTaken = 0;
damageCheck = 0;
ducking = 1;
duckingYMod = 0;
if (clawSize >= 0)
{
clawhitboxsize = 60;
clawhitboxmod = 0;
}
else if (clawSize <= 1)
{
clawhitboxsize = 120;
clawhitboxmod = 60;
}
clawTimer = 0;
usingClaw = false;
drgnFire = true;
drgnFire = false;
drgnHPNow = drgnHPMax;
eventWait = 0;
eventXVel = 0;
eventYVel = 0;
drgnCamVel = 0;
note1CT = 0;
note2CT = 0;
note3CT = 0;
note4CT = 0;
puzzle1Opacity = 255;
puzzle2Opacity = 255;
puzzle3Opacity = 255;
puzzle4Opacity = 255;
puzzle5Opacity = 255;
puzzle6Opacity = 255;
puzzle7Opacity = 255;
#region Boat
boat1X = 0;
boat1Y = 0;
boat2X = 0;
boat2Y = 0;
boat1Vel = 0;
boat1VelCT = 0;
boat2Vel = 0;
boat2VelCT = 0;
boat1Left = false;
boat1Right = false;
boat2Left = false;
boat2Right = false;
boat1TouchL = false;
boat1TouchR = false;
boat2TouchL = false;
boat2TouchR = false;
onBoat1 = false;
onBoat2 = false;
#endregion
#endregion
#region toHome
if (toHome == true) //Home loadout
{
drgnUnderwater = false;
underwaterBreath = false;
playStageMusic = new PlayStageMusic(2, stageBGM);
houseVarAct = 0;
npc1Act = generateRandom.Next(0, 5);
drawHome = new DrawHome(true, stageManager, npc1Act);
drawSky = new DrawSky(1, stageManager);
cameraMinY = 49;
#region floor
floor1 = new Rectangle(0, 668, 1360, 70);
floor2 = new Rectangle(0, 700, 1360, 70);
floor3 = new Rectangle(590, 570, 140, 40);
#endregion
#region wall
wall1 = new Rectangle(283, 275, 7, 404); //wall box 1
wall2 = new Rectangle(815, 333, 106, 130); //wall box 2
wall3 = new Rectangle(720, 0, 10, 2000);
wall4 = new Rectangle(150, 0, 10, 2000);
#endregion
roof1 = new Rectangle(815, 470, 106, 10); //roof box 1
drgnDRTotal = drgnDRTreasure1 + drgnDRTreasure2 +
drgnDRBonus;
drgnClawTotal = clawDmg + clawDmgBonus +
clawDmgTreasure1 + clawDmgTreasure2 + clawLV;
drgnBreathTotal = breathDmg + breathDmgBonus +
breathDmgTreasure1 + breathDmgTreasure2 + breathLV;
#region set menu level values
printHPMax = 6 + drgnHPBonus + drgnHPLV +
drgnHPTreasure1 + drgnHPTreasure2 + boss1Clean + boss2Clean + boss3Clean +
boss4Clean + boss5Clean + questHPBonus;
#region HP
#region ten
if (printHPMax - 90 >= 0)
{
hpTen = 9;
}
else if (printHPMax - 80 >= 0)
{
hpTen = 8;
}
else if (printHPMax - 70 >= 0)
{
hpTen = 7;
}
else if (printHPMax - 60 >= 0)
{
hpTen = 6;
}
else if (printHPMax - 50 >= 0)
{
hpTen = 5;
}
else if (printHPMax - 40 >= 0)
{
hpTen = 4;
}
else if (printHPMax - 30 >= 0)
{
hpTen = 3;
}
else if (printHPMax - 20 >= 0)
{
hpTen = 2;
}
else if (printHPMax - 10 >= 0)
{
hpTen = 1;
}
else if (printHPMax - 10 < 0)
{
hpTen = 0;
}
#endregion
#region one
if ((printHPMax - ((hpTen * 10))) - 9 >= 0)
{
hpOne = 9;
}
else if ((printHPMax - ((hpTen * 10))) - 8 >= 0)
{
hpOne = 8;
}
else if ((printHPMax - ((hpTen * 10))) - 7 >= 0)
{
hpOne = 7;
}
else if ((printHPMax - ((hpTen * 10))) - 6 >= 0)
{
hpOne = 6;
}
else if ((printHPMax - ((hpTen * 10))) - 5 >= 0)
{
hpOne = 5;
}
else if ((printHPMax - ((hpTen * 10))) - 4 >= 0)
{
hpOne = 4;
}
else if ((printHPMax - ((hpTen * 10))) - 3 >= 0)
{
hpOne = 3;
}
else if ((printHPMax - ((hpTen * 10))) - 2 >= 0)
{
hpOne = 2;
}
else if ((printHPMax - ((hpTen * 10))) - 1 >= 0)
{
hpOne = 1;
}
else if ((printHPMax - ((hpTen * 10))) - 1 <= 0)
{
hpOne = 0;
}
#endregion
#endregion
#region Claw
#region ten
if (drgnClawTotal - 90 >= 0)
{
clawTen = 9;
}
else if (drgnClawTotal - 80 >= 0)
{
clawTen = 8;
}
else if (drgnClawTotal - 70 >= 0)
{
clawTen = 7;
}
else if (drgnClawTotal - 60 >= 0)
{
clawTen = 6;
}
else if (drgnClawTotal - 50 >= 0)
{
clawTen = 5;
}
else if (drgnClawTotal - 40 >= 0)
{
clawTen = 4;
}
else if (drgnClawTotal - 30 >= 0)
{
clawTen = 3;
}
else if (drgnClawTotal - 20 >= 0)
{
clawTen = 2;
}
else if (drgnClawTotal - 10 >= 0)
{
clawTen = 1;
}
else if (drgnClawTotal - 10 < 0)
{
clawTen = 0;
}
#endregion
#region one
if ((drgnClawTotal - ((clawTen * 10))) - 9 >= 0)
{
clawOne = 9;
}
else if ((drgnClawTotal - ((clawTen * 10))) - 8 >= 0)
{
clawOne = 8;
}
else if ((drgnClawTotal - ((clawTen * 10))) - 7 >= 0)
{
clawOne = 7;
}
else if ((drgnClawTotal - ((clawTen * 10))) - 6 >= 0)
{
clawOne = 6;
}
else if ((drgnClawTotal - ((clawTen * 10))) - 5 >= 0)
{
clawOne = 5;
}
else if ((drgnClawTotal - ((clawTen * 10))) - 4 >= 0)
{
clawOne = 4;
}
else if ((drgnClawTotal - ((clawTen * 10))) - 3 >= 0)
{
clawOne = 3;
}
else if ((drgnClawTotal - ((clawTen * 10))) - 2 >= 0)
{
clawOne = 2;
}
else if ((drgnClawTotal - ((clawTen * 10))) - 1 >= 0)
{
clawOne = 1;
}
else if ((drgnClawTotal - ((clawTen * 10))) - 1 <= 0)
{
clawOne = 0;
}
#endregion
#endregion
#region Breath
#region ten
if (drgnBreathTotal - 90 >= 0)
{
breathTen = 9;
}
else if (drgnBreathTotal - 80 >= 0)
{
breathTen = 8;
}
else if (drgnBreathTotal - 70 >= 0)
{
breathTen = 7;
}
else if (drgnBreathTotal - 60 >= 0)
{
breathTen = 6;
}
else if (drgnBreathTotal - 50 >= 0)
{
breathTen = 5;
}
else if (drgnBreathTotal - 40 >= 0)
{
breathTen = 4;
}
else if (drgnBreathTotal - 30 >= 0)
{
breathTen = 3;
}
else if (drgnBreathTotal - 20 >= 0)
{
breathTen = 2;
}
else if (drgnBreathTotal - 10 >= 0)
{
breathTen = 1;
}
else if (drgnBreathTotal - 10 < 0)
{
breathTen = 0;
}
#endregion
#region one
if ((drgnBreathTotal - ((breathTen * 10))) - 9 >= 0)
{
breathOne = 9;
}
else if ((drgnBreathTotal - ((breathTen * 10))) - 8 >=
0)
{
breathOne = 8;
}
else if ((drgnBreathTotal - ((breathTen * 10))) - 7 >=
0)
{
breathOne = 7;
}
else if ((drgnBreathTotal - ((breathTen * 10))) - 6 >=
0)
{
breathOne = 6;
}
else if ((drgnBreathTotal - ((breathTen * 10))) - 5 >=
0)
{
breathOne = 5;
}
else if ((drgnBreathTotal - ((breathTen * 10))) - 4 >=
0)
{
breathOne = 4;
}
else if ((drgnBreathTotal - ((breathTen * 10))) - 3 >=
0)
{
breathOne = 3;
}
else if ((drgnBreathTotal - ((breathTen * 10))) - 2 >=
0)
{
breathOne = 2;
}
else if ((drgnBreathTotal - ((breathTen * 10))) - 1 >=
0)
{
breathOne = 1;
}
else if ((drgnBreathTotal - ((breathTen * 10))) - 1 <=
0)
{
breathOne = 0;
}
#endregion
#endregion
#endregion
#region have treasure total
if (have01Hatchling == true)
{
haveTreasure1 = 1;
}
if (have02Smile == true)
{
haveTreasure2 = 1;
}
if (have03Crest == true)
{
haveTreasure3 = 1;
}
if (have04Underpants == true)
{
haveTreasure4 = 1;
}
if (have05Sollerets == true)
{
haveTreasure5 = 1;
}
if (have06Scepter == true)
{
haveTreasure6 = 1;
}
if (have07Momiji == true)
{
haveTreasure7 = 1;
}
if (have08Ninjato == true)
{
haveTreasure8 = 1;
}
if (have09Ring == true)
{
haveTreasure9 = 1;
}
if (have10Sunset == true)
{
haveTreasure10 = 1;
}
if (have11Dreihander == true)
{
haveTreasure11 = 1;
}
if (have12Endeavour == true)
{
haveTreasure12 = 1;
}
if (have13Doll == true)
{
haveTreasure13 = 1;
}
if (have14Liqueur == true)
{
haveTreasure14 = 1;
}
if (have15Penultima == true)
{
haveTreasure15 = 1;
}
if (have16Leaf == true)
{
haveTreasure16 = 1;
}
if (have17HTTYD == true)
{
haveTreasure17 = 1;
}
if (have18Gust == true)
{
haveTreasure18 = 1;
}
if (have19Shirt == true)
{
haveTreasure19 = 1;
}
if (have20Deduction == true)
{
haveTreasure20 = 1;
}
if (have21Topaz == true)
{
haveTreasure21 = 1;
}
if (have22Sapphire == true)
{
haveTreasure22 = 1;
}
if (have23Garnet == true)
{
haveTreasure23 = 1;
}
if (have24Ruby == true)
{
haveTreasure24 = 1;
}
if (have25Diamond == true)
{
haveTreasure25 = 1;
}
if (haveAcid == true)
{
haveTreasure26 = 1;
}
#endregion
achievements.UpdateAch(-1, -1, -1, -1, -1, -1, -1, -1,
haveTreasure2 + haveTreasure4 + haveTreasure8 + haveTreasure11 + haveTreasure15, -1,
-1, -1, -1, -1, -1);
achievements.UpdateAch(-1, -1, -1, -1, -1, -1, -1, -1,
-1, haveTreasure5 + haveTreasure21 + haveTreasure22 + haveTreasure23 +
haveTreasure24 + haveTreasure25, -1, -1, -1, -1, -1);
stageEndCT = 0;
cameraMaxX = 80;
cameraMaxY = 130;
drgnX = 1185;
drgnY = 528;
drgnFacingDir = 13;
clawDir = 2;
breathDir = 6;
clawX = -80 - clawhitboxmod;
breathX = -196;
drgnFaceR = false;
#region whistle
whistleRandom = -1;
note1Measure = 0;
note1Beat = 0;
note1xPos = drgnX + 40;
note1yPos = drgnY + 40;
note1xVel = -3;
note1yVel = -2;
note2Measure = 0;
note2Beat = 0;
note2xPos = drgnX + 40;
note2yPos = drgnY + 40;
note2xVel = -3;
note2yVel = -2;
note3Measure = 0;
note3Beat = 0;
note3xPos = drgnX + 40;
note3yPos = drgnY + 40;
note3xVel = -3;
note3yVel = -2;
note4Measure = 0;
note4Beat = 0;
note4xPos = drgnX + 40;
note4yPos = drgnY + 40;
note4xVel = -3;
note4yVel = -2;
#endregion
if (depositedGP == false)
{
depositedGP = true;
goldAvailable = goldAvailable + goldNow;
if (goldAvailable > 9999999)
{
goldAvailable = 9999999;
}
goldTotal = goldTotal + goldNow;
if (goldTotal > 9999999)
{
goldTotal = 9999999;
}
goldNow = 0;
}
if (goldTotal < 2500)
{
hoardAmt = 0;
}
if (goldTotal >= 2500 && goldTotal < 10000)
{
hoardAmt = 1;
}
if (goldTotal >= 10000 && goldTotal < 25000)
{
hoardAmt = 2;
}
if (goldTotal >= 25000 && goldTotal < 46000)
{
hoardAmt = 3;
}
if (goldTotal >= 46000)
{
hoardAmt = 4;
}
home1F = true;
home2F = false;
toHome = false;
stageHome = true;
}
#endregion
#region toStage1-1
if (toStage1e1 == true) //1-1 loadout
{
drgnUnderwater = false;
underwaterBreath = false;
drawStages = new DrawStages(2, stageManager);
drawSky = new DrawSky(1, stageManager);
loadSquire = new LoadSquire(true, stageManager);
loadSheep = new LoadSheep(true, stageManager);
loadRam = new LoadRam(true, stageManager);
playStageMusic = new PlayStageMusic(3, stageBGM);
drawTreasureText = new DrawTreasureText(1, stageManager,
languageType);
toStage1e1 = false;
stageEndCT = 0;
cameraMaxX = 4200;
cameraMaxY = 1513;
drgnX = 12;
drgnY = 774;
drgnFacingDir = 0;
drgnHitTimer = 0;
drgnDamageTaken = 0;
clawDir = 0;
breathDir = 0;
clawX = 127;
breathX = 110;
drgnFaceR = true;
#region floor
floor1 = new Rectangle(0, 917, 977, 20);
floor2 = new Rectangle(947, 1111, 555, 20);
floor3 = new Rectangle(1476, 1241, 548, 20);
floor4 = new Rectangle(2004, 1109, 789, 20);
floor5 = new Rectangle(2766, 1239, 838, 20);
floor6 = new Rectangle(2848, 1777, 633, 20);
floor7 = new Rectangle(4146, 1338, 1440, 20);
#endregion
#region wall
wall1 = new Rectangle(944, 926, 7, 197);
wall2 = new Rectangle(1473, 1114, 7, 133);
wall3 = new Rectangle(2018, 1112, 7, 135);
wall4 = new Rectangle(2766, 1112, 7, 133);
wall5 = new Rectangle(3545, 1244, 7, 223);
wall6 = new Rectangle(2848, 1459, 7, 323);
wall7 = new Rectangle(3478, 1783, 7, 666);
wall8 = new Rectangle(4256, 1358, 7, 1905);
wall9 = new Rectangle(0, 0, 7, 2453);
wall10 = new Rectangle(5497, 0, 7, 2453);
#endregion
#region roof
roof1 = new Rectangle(2848, 1439, 710, 20);
#endregion
#region whistle
whistleRandom = -1;
note1Measure = 0;
note1Beat = 0;
note1xPos = drgnX + 40;
note1yPos = drgnY + 40;
note1xVel = 3;
note1yVel = -2;
note2Measure = 0;
note2Beat = 0;
note2xPos = drgnX + 40;
note2yPos = drgnY + 40;
note2xVel = 3;
note2yVel = -2;
note3Measure = 0;
note3Beat = 0;
note3xPos = drgnX + 40;
note3yPos = drgnY + 40;
note3xVel = 3;
note3yVel = -2;
note4Measure = 0;
note4Beat = 0;
note4xPos = drgnX + 40;
note4yPos = drgnY + 40;
note4xVel = 3;
note4yVel = -2;
#endregion
//Squire
#region e1
e1spawn = true;
e1CT = 0;
e1timer = 0;
e1HP = 6;
e1armor = 0;
e1X = 1200;
e1Y = 967;
e1act = 0;
e1facing = 0;
e1frame = 0;
e1Opacity = 255;
e1invTimer = 0;
e1knockbackTimer = 0;
e1hitTimer = 0;
e1invBlink = 255;
e1Attack = 1;
e1FireVul = 0;
e1BoltVul = 0;
e1AcidVul = 0;
e1faceR = false;
e1invulnerable = false;
e1knockback = false;
e1knockbackRes = false;
e1onGround = true;
e1proximity = false;
e1touchWallL = false;
e1touchWallR = false;
e1breathhit = false;
e1clawhit = false;
e1frozen = false;
e1peaceful = false;
e1frRes = false;
e1BurnVul = false;
e1ShockVul = false;
e1peaceRes = false;
e1coins = false;
e1smoke = false;
e1smokeCT = 0;
e1coinValue = 10;
e1coinType = 0;
e1altAnimCT = 0;
#endregion
//Squire
#region e2
e2spawn = true;
e2CT = 0;
e2timer = 0;
e2HP = 6;
e2armor = 0;
e2X = 1776;
e2Y = 1097;
e2act = 0;
e2facing = 0;
e2frame = 0;
e2Opacity = 255;
e2invTimer = 0;
e2knockbackTimer = 0;
e2hitTimer = 0;
e2invBlink = 255;
e2Attack = 1;
e2FireVul = 0;
e2BoltVul = 0;
e2AcidVul = 0;
e2faceR = false;
e2invulnerable = false;
e2knockback = false;
e2knockbackRes = false;
e2onGround = true;
e2proximity = false;
e2touchWallL = false;
e2touchWallR = false;
e2breathhit = false;
e2clawhit = false;
e2frozen = false;
e2peaceful = false;
e2frRes = false;
e2BurnVul = false;
e2ShockVul = false;
e2peaceRes = false;
e2coins = false;
e2smoke = false;
e2smokeCT = 0;
e2coinValue = 10;
e2coinType = 0;
e2altAnimCT = 0;
#endregion
//Sheep
#region e3
e3spawn = true;
e3CT = 0;
e3timer = 0;
e3HP = 1;
e3armor = 0;
e3X = 2314;
e3Y = 955;
e3act = 0;
e3facing = 0;
e3frame = 0;
e3Opacity = 255;
e3invTimer = 0;
e3knockbackTimer = 0;
e3hitTimer = 0;
e3invBlink = 255;
e3Attack = 0;
e3FireVul = 0;
e3BoltVul = 0;
e3AcidVul = 0;
e3faceR = false;
e3invulnerable = false;
e3knockback = false;
e3knockbackRes = false;
e3onGround = true;
e3proximity = false;
e3touchWallL = false;
e3touchWallR = false;
e3breathhit = false;
e3clawhit = false;
e3frozen = false;
e3peaceful = false;
e3frRes = true;
e3BurnVul = false;
e3ShockVul = false;
e3peaceRes = true;
e3coins = false;
e3smoke = false;
e3smokeCT = 0;
e3coinValue = 0;
e3coinType = 0;
e3altAnimCT = 0;
#endregion
//Squire
#region e4
e4spawn = true;
e4CT = 0;
e4timer = 0;
e4HP = 6;
e4armor = 0;
e4X = 2500;
e4Y = 955;
e4act = 0;
e4facing = 0;
e4frame = 0;
e4Opacity = 255;
e4invTimer = 0;
e4knockbackTimer = 0;
e4hitTimer = 0;
e4invBlink = 255;
e4Attack = 1;
e4FireVul = 0;
e4BoltVul = 0;
e4AcidVul = 0;
e4faceR = false;
e4invulnerable = false;
e4knockback = false;
e4knockbackRes = false;
e4onGround = true;
e4proximity = false;
e4touchWallL = false;
e4touchWallR = false;
e4breathhit = false;
e4clawhit = false;
e4frozen = false;
e4peaceful = false;
e4frRes = false;
e4BurnVul = false;
e4ShockVul = false;
e4peaceRes = false;
e4coins = false;
e4smoke = false;
e4smokeCT = 0;
e4coinValue = 20;
e4coinType = 0;
e4altAnimCT = 0;
#endregion
//Sheep
#region e5
e5spawn = true;
e5CT = 0;
e5timer = 0;
e5HP = 1;
e5armor = 0;
e5X = 2966;
e5Y = 1085;
e5act = 0;
e5facing = 0;
e5frame = 0;
e5Opacity = 255;
e5invTimer = 0;
e5knockbackTimer = 0;
e5hitTimer = 0;
e5invBlink = 255;
e5Attack = 0;
e5FireVul = 0;
e5BoltVul = 0;
e5AcidVul = 0;
e5faceR = false;
e5invulnerable = false;
e5knockback = false;
e5knockbackRes = false;
e5onGround = true;
e5proximity = false;
e5touchWallL = false;
e5touchWallR = false;
e5breathhit = false;
e5clawhit = false;
e5frozen = false;
e5peaceful = false;
e5frRes = true;
e5BurnVul = false;
e5ShockVul = false;
e5peaceRes = true;
e5coins = false;
e5smoke = false;
e5smokeCT = 0;
e5coinValue = 0;
e5coinType = 0;
e5altAnimCT = 0;
#endregion
//Ram
#region e6
e6spawn = true;
e6CT = 0;
e6timer = 0;
e6HP = 6;
e6armor = 4;
e6X = 4610;
e6Y = 1184;
e6act = 0;
e6facing = 0;
e6frame = 0;
e6Opacity = 255;
e6invTimer = 0;
e6knockbackTimer = 0;
e6hitTimer = 0;
e6invBlink = 255;
e6Attack = 0;
e6FireVul = 0;
e6BoltVul = 0;
e6AcidVul = 0;
e6faceR = false;
e6invulnerable = false;
e6knockback = false;
e6knockbackRes = true;
e6onGround = true;
e6proximity = false;
e6touchWallL = false;
e6touchWallR = false;
e6breathhit = false;
e6clawhit = false;
e6frozen = false;
e6peaceful = false;
e6frRes = true;
e6BurnVul = false;
e6ShockVul = false;
e6peaceRes = true;
e6coins = false;
e6smoke = false;
e6smokeCT = 0;
e6coinValue = 0;
e6coinType = 0;
e6altAnimCT = 0;
#endregion
//end enemy data
stage1e1 = true;
}
#endregion
#region toStage1-2
if (toStage1e2 == true)
{
drgnUnderwater = false;
underwaterBreath = false;
drawStages = new DrawStages(3, stageManager);
drawSky = new DrawSky(1, stageManager);
loadSquire = new LoadSquire(true, stageManager);
loadArcher = new LoadArcher(true, stageManager);
loadStampede = new LoadStampede(true, stageManager);
loadCD = new LoadCD(true, stageManager);
npc1e2 = new Npc1e2(true, stageManager);
playStageMusic = new PlayStageMusic(3, stageBGM);
drawTreasureText = new DrawTreasureText(2, stageManager,
languageType);
toStage1e2 = false;
stageEndCT = 0;
cameraMaxX = 9440;
cameraMaxY = 1300;
drgnX = 12;
drgnY = 1644;
drgnFacingDir = 0;
drgnHitTimer = 0;
drgnDamageTaken = 0;
clawDir = 0;
breathDir = 0;
clawX = 127;
breathX = 110;
drgnFaceR = true;
#region floor
floor1 = new Rectangle(0, 1787, 2100, 20);
floor2 = new Rectangle(2100, 1681, 139, 20);
floor3 = new Rectangle(2239, 1587, 85, 20);
floor4 = new Rectangle(2324, 1626, 100, 20);
floor5 = new Rectangle(2424, 1769, 1135, 20);
floor6 = new Rectangle(3460, 1617, 425, 20);
floor7 = new Rectangle(3875, 1446, 826, 20);
floor8 = new Rectangle(4691, 1287, 555, 20);
floor9 = new Rectangle(5242, 1192, 216, 20);
floor10 = new Rectangle(5454, 1096, 91, 20);
floor11 = new Rectangle(5541, 1122, 87, 20);
floor12 = new Rectangle(5628, 1265, 148, 20);
floor13 = new Rectangle(5776, 1173, 80, 20);
floor14 = new Rectangle(5856, 1127, 87, 20);
floor15 = new Rectangle(5943, 1269, 617, 20);
floor16 = new Rectangle(7118, 1377, 994, 20);
floor17 = new Rectangle(8115, 1531, 783, 20);
floor18 = new Rectangle(8898, 1672, 1328, 20);
floor19 = new Rectangle(10371, 1635, 7000, 20);
floor20 = new Rectangle(1930, 1563, 155, 20);
floor21 = new Rectangle(1418, 1483, 431, 20);
floor22 = new Rectangle(1119, 1374, 210, 20);
#endregion
#region wall
wall1 = new Rectangle(2098, 1682, 7, 101);
wall2 = new Rectangle(2235, 1588, 7, 94);
wall3 = new Rectangle(2325, 1588, 7, 39);
wall4 = new Rectangle(2420, 1627, 7, 153);
wall5 = new Rectangle(3477, 1618, 7, 170);
wall6 = new Rectangle(3885, 1447, 7, 170);
wall7 = new Rectangle(4701, 1288, 7, 158);
wall8 = new Rectangle(5242, 1193, 7, 94);
wall9 = new Rectangle(5454, 1103, 7, 90);
wall10 = new Rectangle(5541, 1103, 7, 20);
wall11 = new Rectangle(5624, 1123, 7, 142);
wall12 = new Rectangle(5776, 1174, 7, 91);
wall13 = new Rectangle(5856, 1128, 7, 46);
wall14 = new Rectangle(5939, 1128, 7, 141);
wall15 = new Rectangle(6530, 1270, 7, 1000);
wall16 = new Rectangle(7138, 1419, 7, 1000);
wall17 = new Rectangle(8093, 1382, 8, 157);
wall18 = new Rectangle(8877, 1536, 8, 151);
wall19 = new Rectangle(10162, 1677, 8, 1000);
wall20 = new Rectangle(10543, 1640, 8, 1000);
wall21 = new Rectangle(0, 0, 7, 2276);
#endregion
#region whistle
whistleRandom = -1;
note1Measure = 0;
note1Beat = 0;
note1xPos = drgnX + 40;
note1yPos = drgnY + 40;
note1xVel = 3;
note1yVel = -2;
note2Measure = 0;
note2Beat = 0;
note2xPos = drgnX + 40;
note2yPos = drgnY + 40;
note2xVel = 3;
note2yVel = -2;
note3Measure = 0;
note3Beat = 0;
note3xPos = drgnX + 40;
note3yPos = drgnY + 40;
note3xVel = 3;
note3yVel = -2;
note4Measure = 0;
note4Beat = 0;
note4xPos = drgnX + 40;
note4yPos = drgnY + 40;
note4xVel = 3;
note4yVel = -2;
#endregion
//Stampede Type A
#region e1
e1spawn = true;
e1CT = 0;
e1timer = 0;
e1HP = 30;
e1armor = 0;
e1X = 2200;
e1Y = 1489;
e1act = 0;
e1facing = 0;
e1frame = 0;
e1Opacity = 255;
e1invTimer = 0;
e1knockbackTimer = 0;
e1hitTimer = 0;
e1invBlink = 255;
e1Attack = 2;
e1FireVul = 0;
e1BoltVul = 0;
e1AcidVul = 0;
e1faceR = false;
e1invulnerable = false;
e1knockback = false;
e1knockbackRes = false;
e1onGround = true;
e1proximity = false;
e1touchWallL = false;
e1touchWallR = false;
e1breathhit = false;
e1clawhit = false;
e1frozen = false;
e1peaceful = false;
e1frRes = false;
e1BurnVul = false;
e1ShockVul = false;
e1peaceRes = false;
e1coins = false;
e1smoke = false;
e1smokeCT = 0;
e1coinValue = 0;
e1coinType = 0;
e1altAnimCT = 0;
e1FrameHalf = 4;
#endregion
//Archer
#region e2
e2spawn = true;
e2CT = 0;
e2timer = 0;
e2HP = 5;
e2armor = 0;
e2X = 1633;
e2Y = 1353;
e2act = 0;
e2facing = 0;
e2frame = 0;
e2Opacity = 255;
e2invTimer = 0;
e2knockbackTimer = 0;
e2hitTimer = 0;
e2invBlink = 255;
e2Attack = 1;
e2FireVul = 0;
e2BoltVul = 0;
e2AcidVul = 0;
e2faceR = false;
e2invulnerable = false;
e2knockback = false;
e2knockbackRes = false;
e2onGround = true;
e2proximity = false;
e2touchWallL = false;
e2touchWallR = false;
e2breathhit = false;
e2clawhit = false;
e2frozen = false;
e2peaceful = false;
e2frRes = false;
e2BurnVul = true;
e2ShockVul = false;
e2peaceRes = false;
e2coins = false;
e2smoke = false;
e2smokeCT = 0;
e2coinValue = 20;
e2coinType = 0;
e2altAnimCT = 0;
#endregion
//Heavy CD
#region e3
e3spawn = true;
e3CT = 0;
e3timer = 0;
e3HP = 12;
e3armor = 2;
e3X = 3620;
e3Y = 1477;
e3act = 0;
e3facing = 0;
e3frame = 0;
e3Opacity = 255;
e3invTimer = 0;
e3knockbackTimer = 0;
e3hitTimer = 0;
e3invBlink = 255;
e3Attack = 1;
e3FireVul = 0;
e3BoltVul = 0;
e3AcidVul = 2;
e3faceR = false;
e3invulnerable = false;
e3knockback = false;
e3knockbackRes = false;
e3onGround = true;
e3proximity = false;
e3touchWallL = false;
e3touchWallR = false;
e3breathhit = false;
e3clawhit = false;
e3frozen = false;
e3peaceful = false;
e3frRes = false;
e3BurnVul = false;
e3ShockVul = false;
e3peaceRes = false;
e3coins = false;
e3smoke = false;
e3smokeCT = 0;
e3coinValue = 30;
e3coinType = 0;
e3altAnimCT = 0;
#endregion
//Heavy CD
#region e4
e4spawn = true;
e4CT = 0;
e4timer = 0;
e4HP = 12;
e4armor = 2;
e4X = 9978;
e4Y = 1518;
e4act = 0;
e4facing = 0;
e4frame = 0;
e4Opacity = 255;
e4invTimer = 0;
e4knockbackTimer = 0;
e4hitTimer = 0;
e4invBlink = 255;
e4Attack = 1;
e4FireVul = 0;
e4BoltVul = 0;
e4AcidVul = 2;
e4faceR = false;
e4invulnerable = false;
e4knockback = false;
e4knockbackRes = false;
e4onGround = true;
e4proximity = false;
e4touchWallL = false;
e4touchWallR = false;
e4breathhit = false;
e4clawhit = false;
e4frozen = false;
e4peaceful = false;
e4frRes = false;
e4BurnVul = false;
e4ShockVul = false;
e4peaceRes = false;
e4coins = false;
e4smoke = false;
e4smokeCT = 0;
e4coinValue = 200;
e4coinType = 0;
e4altAnimCT = 0;
#endregion
//Squire
#region e5
e5spawn = true;
e5CT = 0;
e5timer = 0;
e5HP = 6;
e5armor = 0;
e5X = 8648;
e5Y = 1391;
e5act = 0;
e5facing = 0;
e5frame = 0;
e5Opacity = 255;
e5invTimer = 0;
e5knockbackTimer = 0;
e5hitTimer = 0;
e5invBlink = 255;
e5Attack = 1;
e5FireVul = 0;
e5BoltVul = 0;
e5AcidVul = 0;
e5faceR = false;
e5invulnerable = false;
e5knockback = false;
e5knockbackRes = false;
e5onGround = true;
e5proximity = false;
e5touchWallL = false;
e5touchWallR = false;
e5breathhit = false;
e5clawhit = false;
e5frozen = false;
e5peaceful = false;
e5frRes = false;
e5BurnVul = false;
e5ShockVul = false;
e5peaceRes = false;
e5coins = false;
e5smoke = false;
e5smokeCT = 0;
e5coinValue = 100;
e5coinType = 0;
e5altAnimCT = 0;
#endregion
//Archer
#region e7
e7spawn = true;
e7CT = 0;
e7timer = 0;
e7HP = 5;
e7armor = 0;
e7X = 8878;
e7Y = 1530;
e7act = 0;
e7facing = 0;
e7frame = 0;
e7Opacity = 255;
e7invTimer = 0;
e7knockbackTimer = 0;
e7hitTimer = 0;
e7invBlink = 255;
e7Attack = 1;
e7FireVul = 0;
e7BoltVul = 0;
e7AcidVul = 0;
e7faceR = false;
e7invulnerable = false;
e7knockback = false;
e7knockbackRes = false;
e7onGround = true;
e7proximity = false;
e7touchWallL = false;
e7touchWallR = false;
e7breathhit = false;
e7clawhit = false;
e7frozen = false;
e7peaceful = false;
e7frRes = false;
e7BurnVul = true;
e7ShockVul = false;
e7peaceRes = false;
e7coins = false;
e7smoke = false;
e7smokeCT = 0;
e7coinValue = 0;
e7coinType = 0;
e7altAnimCT = 0;
#endregion
stage1e2 = true;
}
#endregion
#region toStage1-3
if (toStage1e3 == true)
{
drawStages = new DrawStages(4, stageManager);
drawSky = new DrawSky(1, stageManager);
loadSquire = new LoadSquire(true, stageManager);
loadArcher = new LoadArcher(true, stageManager);
loadCD = new LoadCD(true, stageManager);
puzzleTruck = new PuzzleTruck(true, stageManager);
npc1e3 = new Npc1e3(true, stageManager);
playStageMusic = new PlayStageMusic(3, stageBGM);
drawTreasureText = new DrawTreasureText(3, stageManager,
languageType);
toStage1e3 = false;
stageEndCT = 0;
cameraMaxX = 11358;
cameraMaxY = 1997;
drgnX = 12;
drgnY = 1098;
drgnFacingDir = 0;
drgnHitTimer = 0;
drgnDamageTaken = 0;
clawDir = 0;
breathDir = 0;
clawX = 127;
breathX = 110;
drgnFaceR = true;
#region floor
floor1 = new Rectangle(0, 1241, 299, 20);
floor2 = new Rectangle(641, 1696, 740, 20);
floor3 = new Rectangle(1834, 2140, 1923, 20);
floor4 = new Rectangle(3698, 2013, 767, 20);
floor5 = new Rectangle(1891, 1167, 1953, 20);
floor6 = new Rectangle(3770, 1042, 721, 20);
floor7 = new Rectangle(4565, 2211, 1103, 20);
floor8 = new Rectangle(5871, 2243, 922, 20);
floor9 = new Rectangle(4222, 3050, 5017, 20);
floor10 = new Rectangle(6827, 2159, 728, 20);
floor11 = new Rectangle(7554, 2292, 941, 20);
floor12 = new Rectangle(8490, 2161, 671, 20);
floor13 = new Rectangle(9305, 2778, 736, 20);
floor14 = new Rectangle(9880, 3425, 752, 20);
floor15 = new Rectangle(9535, 4081, 822, 20);
floor16 = new Rectangle(9007, 4666, 3700, 20);
floor17 = new Rectangle(7052, 1836, 189, 20);
floor18 = new Rectangle(7818, 1654, 198, 20);
floor19 = new Rectangle(7043, 1490, 185, 20);
floor20 = new Rectangle(8707, 1474, 166, 20);
floor21 = new Rectangle(6848, 1369, 2229, 20);
floor22 = new Rectangle(6951, 1238, 159, 20);
floor23 = new Rectangle(7062, 1128, 177, 20);
floor24 = new Rectangle(7182, 1009, 186, 20);
floor25 = new Rectangle(7291, 886, 1325, 20);
floor26 = new Rectangle(8825, 1234, 155, 20);
floor27 = new Rectangle(8690, 1112, 180, 20);
floor28 = new Rectangle(8554, 995, 171, 20);
floor29 = new Rectangle(7477, 731, 955, 20);
floor30 = new Rectangle(7585, 608, 738, 20);
floor31 = new Rectangle(7766, 562, 369, 20);
floor32 = new Rectangle(7821, 524, 233, 20);
floor33 = new Rectangle(6142, 2913, 100, 20);
floor34 = new Rectangle(6250, 2833, 515, 20);
#endregion
#region wall
//WALL L
wall1 = new Rectangle(211, 1247, 6, 5500);
wall3 = new Rectangle(1281, 1702, 6, 5500);
wall6 = new Rectangle(4390, 2019, 6, 5500);
wall10 = new Rectangle(8822, 1117, 6, 120);
wall11 = new Rectangle(8658, 1000, 6, 115);
wall12 = new Rectangle(8592, 891, 6, 107);
wall13 = new Rectangle(9093, 3060, 6, 588);
wall14 = new Rectangle(9012, 3625, 6, 5500);
wall15 = new Rectangle(7549, 2164, 6, 180);
//WALL R
wall2 = new Rectangle(747, 1702, 6, 5500);
wall4 = new Rectangle(2013, 2143, 6, 5500);
wall5 = new Rectangle(3698, 2022, 6, 500);
wall7 = new Rectangle(7109, 1133, 6, 118);
wall8 = new Rectangle(7279, 1014, 6, 116);
wall9 = new Rectangle(7366, 891, 6, 120);
wall16 = new Rectangle(8495, 2166, 6, 180);
wall17 = new Rectangle(3770, 1047, 6, 125);
wall18 = new Rectangle(0, 0, 10, 5500);
wall19 = new Rectangle(12678, 0, 10, 5500);
wall20 = new Rectangle(6142, 2918, 8, 150);
wall21 = new Rectangle(6251, 2837, 8, 150);
wall22 = new Rectangle(6762, 2837, 8, 150);
#endregion
#region whistle
whistleRandom = -1;
note1Measure = 0;
note1Beat = 0;
note1xPos = drgnX + 40;
note1yPos = drgnY + 40;
note1xVel = 3;
note1yVel = -2;
note2Measure = 0;
note2Beat = 0;
note2xPos = drgnX + 40;
note2yPos = drgnY + 40;
note2xVel = 3;
note2yVel = -2;
note3Measure = 0;
note3Beat = 0;
note3xPos = drgnX + 40;
note3yPos = drgnY + 40;
note3xVel = 3;
note3yVel = -2;
note4Measure = 0;
note4Beat = 0;
note4xPos = drgnX + 40;
note4yPos = drgnY + 40;
note4xVel = 3;
note4yVel = -2;
#endregion
if (have08Ninjato == false)
{
truckCT = 0;
truckAct = 0;
truckFrame = 0;
truckSmokeFrame = 0;
truckSpawn = true;
truckCharge = 0;
truckX = 6117;
}
else
{
truckSpawn = false;
truckCharge = 0;
truckX = -1000;
}
npc2CT = 4;
npc2Frame = 5;
//Squire
#region e1
e1spawn = true;
e1CT = 0;
e1timer = 0;
e1HP = 6;
e1armor = 0;
e1X = 8590;
e1Y = 2017;
e1act = 0;
e1facing = 0;
e1frame = 0;
e1Opacity = 255;
e1invTimer = 0;
e1knockbackTimer = 0;
e1hitTimer = 0;
e1invBlink = 255;
e1Attack = 1;
e1FireVul = 0;
e1BoltVul = 0;
e1AcidVul = 0;
e1faceR = false;
e1invulnerable = false;
e1knockback = false;
e1knockbackRes = false;
e1onGround = true;
e1proximity = false;
e1touchWallL = false;
e1touchWallR = false;
e1breathhit = false;
e1clawhit = false;
e1frozen = false;
e1peaceful = false;
e1frRes = false;
e1BurnVul = false;
e1ShockVul = false;
e1peaceRes = false;
e1coins = false;
e1smoke = false;
e1smokeCT = 0;
e1coinValue = 30;
e1coinType = 0;
e1altAnimCT = 0;
#endregion
//Archer
#region e2
e2spawn = true;
e2CT = 0;
e2timer = 0;
e2HP = 5;
e2armor = 0;
e2X = 7550;
e2Y = 2162;
e2act = 0;
e2facing = 0;
e2frame = 0;
e2Opacity = 255;
e2invTimer = 0;
e2knockbackTimer = 0;
e2hitTimer = 0;
e2invBlink = 255;
e2Attack = 1;
e2FireVul = 0;
e2BoltVul = 0;
e2AcidVul = 0;
e2faceR = false;
e2invulnerable = false;
e2knockback = false;
e2knockbackRes = false;
e2onGround = true;
e2proximity = false;
e2touchWallL = false;
e2touchWallR = false;
e2breathhit = false;
e2clawhit = false;
e2frozen = false;
e2peaceful = false;
e2frRes = false;
e2BurnVul = true;
e2ShockVul = false;
e2peaceRes = false;
e2coins = false;
e2smoke = false;
e2smokeCT = 0;
e2coinValue = 40;
e2coinType = 0;
e2altAnimCT = 0;
#endregion
//Heavy CD
#region e3
e3spawn = true;
e3CT = 0;
e3timer = 0;
e3HP = 12;
e3armor = 2;
e3X = 7660;
e3Y = 2162;
e3act = 0;
e3facing = 0;
e3frame = 0;
e3Opacity = 255;
e3invTimer = 0;
e3knockbackTimer = 0;
e3hitTimer = 0;
e3invBlink = 255;
e3Attack = 1;
e3FireVul = 0;
e3BoltVul = 0;
e3AcidVul = 2;
e3faceR = false;
e3invulnerable = false;
e3knockback = false;
e3knockbackRes = false;
e3onGround = true;
e3proximity = false;
e3touchWallL = false;
e3touchWallR = false;
e3breathhit = false;
e3clawhit = false;
e3frozen = false;
e3peaceful = false;
e3frRes = false;
e3BurnVul = false;
e3ShockVul = false;
e3peaceRes = false;
e3coins = false;
e3smoke = false;
e3smokeCT = 0;
e3coinValue = 40;
e3coinType = 0;
e3altAnimCT = 0;
#endregion
//Squire
#region e4
e4spawn = true;
e4CT = 0;
e4timer = 0;
e4HP = 6;
e4armor = 0;
e4X = 2740;
e4Y = 2000;
e4act = 0;
e4facing = 0;
e4frame = 0;
e4Opacity = 255;
e4invTimer = 0;
e4knockbackTimer = 0;
e4hitTimer = 0;
e4invBlink = 255;
e4Attack = 1;
e4FireVul = 0;
e4BoltVul = 0;
e4AcidVul = 0;
e4faceR = false;
e4invulnerable = false;
e4knockback = false;
e4knockbackRes = false;
e4onGround = true;
e4proximity = false;
e4touchWallL = false;
e4touchWallR = false;
e4breathhit = false;
e4clawhit = false;
e4frozen = false;
e4peaceful = false;
e4frRes = false;
e4BurnVul = false;
e4ShockVul = false;
e4peaceRes = false;
e4coins = false;
e4smoke = false;
e4smokeCT = 0;
e4coinValue = 20;
e4coinType = 0;
e4altAnimCT = 0;
#endregion
//Archer
#region e5
e5spawn = true;
e5CT = 0;
e5timer = 0;
e5HP = 5;
e5armor = 0;
e5X = 3898;
e5Y = 1873;
e5act = 0;
e5facing = 0;
e5frame = 0;
e5Opacity = 255;
e5invTimer = 0;
e5knockbackTimer = 0;
e5hitTimer = 0;
e5invBlink = 255;
e5Attack = 1;
e5FireVul = 0;
e5BoltVul = 0;
e5AcidVul = 0;
e5faceR = false;
e5invulnerable = false;
e5knockback = false;
e5knockbackRes = false;
e5onGround = true;
e5proximity = false;
e5touchWallL = false;
e5touchWallR = false;
e5breathhit = false;
e5clawhit = false;
e5frozen = false;
e5peaceful = false;
e5frRes = false;
e5BurnVul = true;
e5ShockVul = false;
e5peaceRes = false;
e5coins = false;
e5smoke = false;
e5smokeCT = 0;
e5coinValue = 30;
e5coinType = 0;
e5altAnimCT = 0;
#endregion
//Archer
#region e6
e6spawn = true;
e6CT = 0;
e6timer = 0;
e6HP = 5;
e6armor = 0;
e6X = 2379;
e6Y = 1027;
e6act = 0;
e6facing = 0;
e6frame = 0;
e6Opacity = 255;
e6invTimer = 0;
e6knockbackTimer = 0;
e6hitTimer = 0;
e6invBlink = 255;
e6Attack = 1;
e6FireVul = 0;
e6BoltVul = 0;
e6AcidVul = 0;
e6faceR = false;
e6invulnerable = false;
e6knockback = false;
e6knockbackRes = false;
e6onGround = true;
e6proximity = false;
e6touchWallL = false;
e6touchWallR = false;
e6breathhit = false;
e6clawhit = false;
e6frozen = false;
e6peaceful = false;
e6frRes = false;
e6BurnVul = true;
e6ShockVul = false;
e6peaceRes = false;
e6coins = false;
e6smoke = false;
e6smokeCT = 0;
e6coinValue = 40;
e6coinType = 0;
e6altAnimCT = 0;
#endregion
//Archer
#region e7
e7spawn = true;
e7CT = 0;
e7timer = 0;
e7HP = 5;
e7armor = 0;
e7X = 6332;
e7Y = 2103;
e7act = 0;
e7facing = 0;
e7frame = 0;
e7Opacity = 255;
e7invTimer = 0;
e7knockbackTimer = 0;
e7hitTimer = 0;
e7invBlink = 255;
e7Attack = 1;
e7FireVul = 0;
e7BoltVul = 0;
e7AcidVul = 0;
e7faceR = false;
e7invulnerable = false;
e7knockback = false;
e7knockbackRes = false;
e7onGround = true;
e7proximity = false;
e7touchWallL = false;
e7touchWallR = false;
e7breathhit = false;
e7clawhit = false;
e7frozen = false;
e7peaceful = false;
e7frRes = false;
e7BurnVul = true;
e7ShockVul = false;
e7peaceRes = false;
e7coins = false;
e7smoke = false;
e7smokeCT = 0;
e7coinValue = 30;
e7coinType = 0;
e7altAnimCT = 0;
#endregion
//Archer
#region e8
e8spawn = true;
e8CT = 0;
e8timer = 0;
e8HP = 5;
e8armor = 0;
e8X = 10610;
e8Y = 4506;
e8act = 0;
e8facing = 0;
e8frame = 0;
e8Opacity = 255;
e8invTimer = 0;
e8knockbackTimer = 0;
e8hitTimer = 0;
e8invBlink = 255;
e8Attack = 1;
e8FireVul = 0;
e8BoltVul = 0;
e8AcidVul = 0;
e8faceR = false;
e8invulnerable = false;
e8knockback = false;
e8knockbackRes = false;
e8onGround = true;
e8proximity = false;
e8touchWallL = false;
e8touchWallR = false;
e8breathhit = false;
e8clawhit = false;
e8frozen = false;
e8peaceful = false;
e8frRes = false;
e8BurnVul = true;
e8ShockVul = false;
e8peaceRes = false;
e8coins = false;
e8smoke = false;
e8smokeCT = 0;
e8coinValue = 40;
e8coinType = 0;
e8altAnimCT = 0;
#endregion
//Heavy CD
#region e9
e9spawn = true;
e9CT = 0;
e9timer = 0;
e9HP = 12;
e9armor = 2;
e9X = 10490;
e9Y = 4506;
e9act = 0;
e9facing = 0;
e9frame = 0;
e9Opacity = 255;
e9invTimer = 0;
e9knockbackTimer = 0;
e9hitTimer = 0;
e9invBlink = 255;
e9Attack = 1;
e9FireVul = 0;
e9BoltVul = 0;
e9AcidVul = 2;
e9faceR = false;
e9invulnerable = false;
e9knockback = false;
e9knockbackRes = false;
e9onGround = true;
e9proximity = false;
e9touchWallL = false;
e9touchWallR = false;
e9breathhit = false;
e9clawhit = false;
e9frozen = false;
e9peaceful = false;
e9frRes = false;
e9BurnVul = false;
e9ShockVul = false;
e9peaceRes = false;
e9coins = false;
e9smoke = false;
e9smokeCT = 0;
e9coinValue = 50;
e9coinType = 0;
e9altAnimCT = 0;
#endregion
//Squire
#region e10
e10spawn = true;
e10CT = 0;
e10timer = 0;
e10HP = 6;
e10armor = 0;
e10X = 5300;
e10Y = 2900;
e10act = 0;
e10facing = 0;
e10frame = 0;
e10Opacity = 255;
e10invTimer = 0;
e10knockbackTimer = 0;
e10hitTimer = 0;
e10invBlink = 255;
e10Attack = 1;
e10FireVul = 0;
e10BoltVul = 0;
e10AcidVul = 0;
e10faceR = false;
e10invulnerable = false;
e10knockback = false;
e10knockbackRes = false;
e10onGround = true;
e10proximity = false;
e10touchWallL = false;
e10touchWallR = false;
e10breathhit = false;
e10clawhit = false;
e10frozen = false;
e10peaceful = false;
e10frRes = false;
e10BurnVul = false;
e10ShockVul = false;
e10peaceRes = false;
e10coins = false;
e10smoke = false;
e10smokeCT = 0;
e10coinValue = 30;
e10coinType = 0;
e10altAnimCT = 0;
#endregion
//Archer
#region e11
e11spawn = true;
e11CT = 0;
e11timer = 0;
e11HP = 5;
e11armor = 0;
e11X = 941;
e11Y = 1556;
e11act = 0;
e11facing = 0;
e11frame = 0;
e11Opacity = 255;
e11invTimer = 0;
e11knockbackTimer = 0;
e11hitTimer = 0;
e11invBlink = 255;
e11Attack = 1;
e11FireVul = 0;
e11BoltVul = 0;
e11AcidVul = 0;
e11faceR = false;
e11invulnerable = false;
e11knockback = false;
e11knockbackRes = false;
e11onGround = true;
e11proximity = false;
e11touchWallL = false;
e11touchWallR = false;
e11breathhit = false;
e11clawhit = false;
e11frozen = false;
e11peaceful = false;
e11frRes = false;
e11BurnVul = true;
e11ShockVul = false;
e11peaceRes = false;
e11coins = false;
e11smoke = false;
e11smokeCT = 0;
e11coinValue = 20;
e11coinType = 0;
e11altAnimCT = 0;
#endregion
#region e12
e12spawn = true;
e12CT = 0;
e12timer = 0;
e12HP = 5;
e12armor = 0;
e12X = 2222;
e12Y = 2000;
e12act = 0;
e12facing = 0;
e12frame = 0;
e12Opacity = 255;
e12invTimer = 0;
e12knockbackTimer = 0;
e12hitTimer = 0;
e12invBlink = 255;
e12Attack = 1;
e12FireVul = 0;
e12BoltVul = 0;
e12AcidVul = 0;
e12faceR = false;
e12invulnerable = false;
e12knockback = false;
e12knockbackRes = false;
e12onGround = true;
e12proximity = false;
e12touchWallL = false;
e12touchWallR = false;
e12breathhit = false;
e12clawhit = false;
e12frozen = false;
e12peaceful = false;
e12frRes = false;
e12BurnVul = true;
e12ShockVul = false;
e12peaceRes = false;
e12coins = false;
e12smoke = false;
e12smokeCT = 0;
e12coinValue = 30;
e12coinType = 0;
e12altAnimCT = 0;
#endregion
#region e13
e13spawn = true;
e13CT = 0;
e13timer = 0;
e13HP = 5;
e13armor = 0;
e13X = 9600;
e13Y = 2638;
e13act = 0;
e13facing = 0;
e13frame = 0;
e13Opacity = 255;
e13invTimer = 0;
e13knockbackTimer = 0;
e13hitTimer = 0;
e13invBlink = 255;
e13Attack = 1;
e13FireVul = 0;
e13BoltVul = 0;
e13AcidVul = 0;
e13faceR = false;
e13invulnerable = false;
e13knockback = false;
e13knockbackRes = false;
e13onGround = true;
e13proximity = false;
e13touchWallL = false;
e13touchWallR = false;
e13breathhit = false;
e13clawhit = false;
e13frozen = false;
e13peaceful = false;
e13frRes = false;
e13BurnVul = true;
e13ShockVul = false;
e13peaceRes = false;
e13coins = false;
e13smoke = false;
e13smokeCT = 0;
e13coinValue = 20;
e13coinType = 0;
e13altAnimCT = 0;
#endregion
#region e14
e14spawn = true;
e14CT = 0;
e14timer = 0;
e14HP = 5;
e14armor = 0;
e14X = 10480;
e14Y = 3285;
e14act = 0;
e14facing = 0;
e14frame = 0;
e14Opacity = 255;
e14invTimer = 0;
e14knockbackTimer = 0;
e14hitTimer = 0;
e14invBlink = 255;
e14Attack = 1;
e14FireVul = 0;
e14BoltVul = 0;
e14AcidVul = 0;
e14faceR = false;
e14invulnerable = false;
e14knockback = false;
e14knockbackRes = false;
e14onGround = true;
e14proximity = false;
e14touchWallL = false;
e14touchWallR = false;
e14breathhit = false;
e14clawhit = false;
e14frozen = false;
e14peaceful = false;
e14frRes = false;
e14BurnVul = true;
e14ShockVul = false;
e14peaceRes = false;
e14coins = false;
e14smoke = false;
e14smokeCT = 0;
e14coinValue = 20;
e14coinType = 0;
e14altAnimCT = 0;
#endregion
stage1e3 = true;
}
#endregion
#region toStage 1-B
if (toStage1eB == true)
{
drawStages = new DrawStages(5, stageManager);
drawSky = new DrawSky(1, stageManager);
loadBoss1 = new LoadTM061(true, stageManager);
playStageMusic = new PlayStageMusic(9, stageBGM);
loopThunderBlast = new LoopThunderBlast(true,
breathSFX);
loopLaser = new LoopLaser(true, breathSFX);
toStage1eB = false;
stageEndCT = 0;
cameraMaxX = 0;
cameraMaxY = 0;
drgnX = 1093;
drgnY = 560;
drgnFacingDir = 13;
drgnHitTimer = 0;
drgnDamageTaken = 0;
clawDir = 2;
breathDir = 6;
clawX = -80 - clawhitboxmod;
breathX = -196;
drgnFaceR = false;
floor1 = new Rectangle(-30, 703, 1400, 20);
wall1 = new Rectangle(0, 0, 8, 1000);
wall2 = new Rectangle(1280, 0, 8, 1000);
#region whistle
whistleRandom = -1;
note1Measure = 0;
note1Beat = 0;
note1xPos = drgnX + 40;
note1yPos = drgnY + 40;
note1xVel = -3;
note1yVel = -2;
note2Measure = 0;
note2Beat = 0;
note2xPos = drgnX + 40;
note2yPos = drgnY + 40;
note2xVel = -3;
note2yVel = -2;
note3Measure = 0;
note3Beat = 0;
note3xPos = drgnX + 40;
note3yPos = drgnY + 40;
note3xVel = -3;
note3yVel = -2;
note4Measure = 0;
note4Beat = 0;
note4xPos = drgnX + 40;
note4yPos = drgnY + 40;
note4xVel = -3;
note4yVel = -2;
#endregion
boss1HP = 15;
boss1X = 60;
boss1Y = 560;
boss1Stamina = 10;
boss1CT = 0;
boss1Frame = 0;
boss1Act = 1;
boss1Facing = 0; //flip 13
boss1AttackTimer = 0;
boss1ExhaustedRecharge = 0;
boss1Exhausted = false;
boss1Disappear = 255;
bossCounterCooldown = 0;
boss1Opacity = 255;
boss1invTimer = 0;
boss1knockbackTimer = 0;
boss1hitTimer = 0;
boss1invBlink = 255;
boss1AttackCT = 0;
boss1ClawHit = false;
boss1BreathHit = false;
boss1Knockback = false;
boss1Counter = false;
attackThundercloud = false;
attackThunderbolt = false;
attackThunderslash = false;
attackThunderblast = false;
slash1 = false;
slash2 = false;
slash3 = false;
slash4 = false;
slash5 = false;
slash6 = false;
slash7 = false;
slash8 = false;
boltUp = false;
boltDn = false;
boss1FaceL = false;
slash1CT = 0;
slash1Frame = 0;
slash2CT = 0;
slash2Frame = 0;
slash3CT = 0;
slash3Frame = 0;
slash4CT = 0;
slash4Frame = 0;
slash5CT = 0;
slash5Frame = 0;
slash6CT = 0;
slash6Frame = 0;
slash7CT = 0;
slash7Frame = 0;
slash8CT = 0;
slash8Frame = 0;
dragonLook = false;
dragonLookY = 305;
dragonLookWait = 0;
dragonLookCT = 0;
mogLook = false;
mogLookX = 6;
mogLookWait = 0;
mogLookCT = 0;
ninjaLook = false;
ninjaLookY = 475;
ninjaLookWait = 0;
ninjaLookCT = 0;
stage1eB = true;
}
#endregion
#region toStage 2-1
if (toStage2e1 == true)
{
drawStages = new DrawStages(6, stageManager);
draw2e1 = new Draw2e1(true, stageManager);
drawSky = new DrawSky(1, stageManager);
drawWater = new DrawWater(1, stageManager);
loadOcean = new LoadOcean(1, stageManager);
loadWaterfall = new LoadWaterfall(1, stageManager);
loadArcher = new LoadArcher(true, stageManager);
loadHandler = new LoadHandler(true, stageManager);
loadSecurity = new LoadSecurity(true, stageManager);
npc2e1 = new Npc2e1(true, stageManager);
puzzleWater = new PuzzleWater(true, stageManager);
playStageMusic = new PlayStageMusic(4, stageBGM);
loopSpin = new LoopSpin(true, breathSFX);
drawTreasureText = new DrawTreasureText(4, stageManager,
languageType);
gateY = 0;
gateX = 0;
waterRisingHeight = 0;
puzzleCT = 0;
waterRisingOn = false;
waterPuzzleComplete = false;
if (npcQuest == 0)
{
niaOn = true;
squireOn = true;
}
if (on2e2 == false && on3e2 == false)
{
tutorialOn = true;
}
#region floor
floor1 = new Rectangle(0, 1200, 1413, 20);
floor2 = new Rectangle(1407, 1247, 198, 20);
floor3 = new Rectangle(1600, 1297, 203, 20);
floor4 = new Rectangle(1797, 1343, 199, 20);
floor5 = new Rectangle(1991, 1397, 1962, 20);
floor6 = new Rectangle(3941, 1476, 1181, 20);
floor7 = new Rectangle(5112, 1844, 923, 20);
floor8 = new Rectangle(6030, 1780, 1140, 20);
floor9 = new Rectangle(7164, 1780, 265, 20);
floor10 = new Rectangle(7416, 2067, 507, 20);
floor11 = new Rectangle(7919, 1861, 485, 20);
floor12 = new Rectangle(8532, 1861, 75, 20);
floor13 = new Rectangle(8068, 2358, 1242, 20);
floor14 = new Rectangle(9276, 2060, 1562, 20);
floor15 = new Rectangle(10805, 2206, 1423, 20);
floor16 = new Rectangle(7166, 1718, 64, 20);
floor17 = new Rectangle(7223, 1666, 67, 20);
floor18 = new Rectangle(7286, 1617, 67, 20);
floor19 = new Rectangle(7348, 1564, 60, 20);
floor20 = new Rectangle(7401, 1514, 65, 20);
floor21 = new Rectangle(7461, 1462, 52, 20);
floor22 = new Rectangle(7507, 1417, 58, 20);
floor23 = new Rectangle(7557, 1371, 47, 20);
floor24 = new Rectangle(7597, 1314, 58, 20);
floor25 = new Rectangle(7645, 1270, 791, 20);
floor26 = new Rectangle(8595, 1276, 620, 20);
floor27 = new Rectangle(9205, 1331, 46, 20);
floor28 = new Rectangle(9242, 1376, 58, 20);
floor29 = new Rectangle(9291, 1427, 53, 20);
floor30 = new Rectangle(9331, 1465, 56, 20);
floor31 = new Rectangle(9374, 1522, 57, 20);
floor32 = new Rectangle(9424, 1573, 55, 20);
floor33 = new Rectangle(9475, 1621, 50, 20);
floor34 = new Rectangle(9521, 1675, 52, 20);
floor35 = new Rectangle(9566, 1721, 57, 20);
floor36 = new Rectangle(9619, 1786, 61, 20);
floor37 = new Rectangle(8306 - gateX, 1861, 276, 32);
#endregion
#region wall
wall1 = new Rectangle(1407, 1205, 6, 48);
wall2 = new Rectangle(1600, 1252, 6, 51);
wall3 = new Rectangle(1797, 1302, 6, 47);
wall4 = new Rectangle(1986, 1348, 6, 55);
wall5 = new Rectangle(3941, 1402, 6, 80);
wall6 = new Rectangle(5112, 1481, 6, 369);
wall7 = new Rectangle(6032, 1785, 6, 65);
wall8 = new Rectangle(7416, 1782, 6, 291);
wall9 = new Rectangle(7655, 1275, 6, 44);
wall10 = new Rectangle(7922, 1866, 6, 207);
wall11 = new Rectangle(8398, 1866, 6, 253);
wall12 = new Rectangle(8555, 1866, 6, 498);
wall13 = new Rectangle(8068, 2114, 6, 235);
wall14 = new Rectangle(8453, 1275, 6, 416);
wall15 = new Rectangle(8614, 1281, 6, 411);
wall16 = new Rectangle(9284, 2065, 6, 299);
wall17 = new Rectangle(9205, 1281, 6, 55);
wall18 = new Rectangle(10805, 2065, 6, 147);
wall19 = new Rectangle(12227, 2211, 6, 700);
wall20 = new Rectangle(0, 0, 6, 3000);
wall21 = new Rectangle(8640, 1866, 6, 800);
#endregion
roof1 = new Rectangle(8068, 2108, 325, 10);
toStage2e1 = false;
stageEndCT = 0;
cameraMaxX = 11803;
cameraMaxY = 2079;
drgnX = 12;
drgnY = 1057;
drgnFacingDir = 0;
drgnHitTimer = 0;
drgnDamageTaken = 0;
clawDir = 0;
breathDir = 0;
clawX = 127;
breathX = 110;
drgnFaceR = true;
waterfall1Act = 0;
waterfall2Act = 0;
waterfallFrame = 0;
waterfallCT = 0;
sprinkler1HP = 60;
sprinkler2HP = 60;
waterRisingPos = 0;
waterRising = false;
drgnUnderwater = false;
#region whistle
whistleRandom = -1;
note1Measure = 0;
note1Beat = 0;
note1xPos = drgnX + 40;
note1yPos = drgnY + 40;
note1xVel = 3;
note1yVel = -2;
note2Measure = 0;
note2Beat = 0;
note2xPos = drgnX + 40;
note2yPos = drgnY + 40;
note2xVel = 3;
note2yVel = -2;
note3Measure = 0;
note3Beat = 0;
note3xPos = drgnX + 40;
note3yPos = drgnY + 40;
note3xVel = 3;
note3yVel = -2;
note4Measure = 0;
note4Beat = 0;
note4xPos = drgnX + 40;
note4yPos = drgnY + 40;
note4xVel = 3;
note4yVel = -2;
#endregion
//handler / shallow
#region e1
e1spawn = true;
e1CT = 0;
e1timer = 0;
e1HP = 12;
e1armor = 0;
e1X = 5412;
e1Y = 1701;
e1projA_X = 5412;
e1projA_Y = 1701;
e1act = 0;
e1facing = 0;
e1frame = 0;
e1Opacity = 255;
e1invTimer = 0;
e1knockbackTimer = 0;
e1projHeight = 0;
e1projWidth = 0;
e1hitTimer = 0;
e1invBlink = 255;
e1Attack = 1;
e1FireVul = 0;
e1BoltVul = 1;
e1AcidVul = 0;
e1faceR = false;
e1invulnerable = false;
e1knockback = false;
e1knockbackRes = false;
e1onGround = true;
e1proximity = false;
e1touchWallL = false;
e1touchWallR = false;
e1breathhit = false;
e1clawhit = false;
e1frozen = false;
e1peaceful = false;
e1frRes = false;
e1BurnVul = false;
e1ShockVul = false;
e1peaceRes = false;
e1coins = false;
e1smoke = false;
e1smokeCT = 0;
e1coinValue = 50;
e1coinType = 0;
e1altAnimCT = 0;
#endregion
//handler / swim
#region e2
e2spawn = true;
e2CT = 0;
e2timer = 0;
e2HP = 12;
e2armor = 0;
e2X = 8900;
e2Y = 2030;
e2projA_X = 8886;
e2projA_Y = 1990;
e2act = 0;
e2facing = 0;
e2frame = 0;
e2Opacity = 255;
e2invTimer = 0;
e2knockbackTimer = 0;
e2projHeight = 0;
e2projWidth = 0;
e2hitTimer = 0;
e2invBlink = 255;
e2Attack = 1;
e2FireVul = 0;
e2BoltVul = 1;
e2AcidVul = 0;
e2faceR = false;
e2invulnerable = false;
e2knockback = false;
e2knockbackRes = false;
e2onGround = true;
e2proximity = false;
e2touchWallL = false;
e2touchWallR = false;
e2breathhit = false;
e2clawhit = false;
e2frozen = false;
e2peaceful = false;
e2frRes = false;
e2BurnVul = false;
e2ShockVul = false;
e2peaceRes = true;
e2coins = false;
e2smoke = false;
e2smokeCT = 0;
e2coinValue = 0;
e2coinType = 0;
e2altAnimCT = 0;
#endregion
#region e3
e3spawn = true;
e3CT = 0;
e3timer = 0;
e3HP = 12;
e3armor = 0;
e3X = 8120;
e3Y = 1718;
e3projA_X = 8120;
e3projA_Y = 1718;
e3act = 0;
e3facing = 0;
e3frame = 0;
e3Opacity = 255;
e3invTimer = 0;
e3knockbackTimer = 0;
e3projHeight = 0;
e3projWidth = 0;
e3hitTimer = 0;
e3invBlink = 255;
e3Attack = 1;
e3FireVul = 0;
e3BoltVul = 1;
e3AcidVul = 0;
e3faceR = false;
e3invulnerable = false;
e3knockback = false;
e3knockbackRes = false;
e3onGround = true;
e3proximity = false;
e3touchWallL = false;
e3touchWallR = false;
e3breathhit = false;
e3clawhit = false;
e3frozen = false;
e3peaceful = false;
e3frRes = false;
e3BurnVul = false;
e3ShockVul = false;
e3peaceRes = false;
e3coins = false;
e3smoke = false;
e3smokeCT = 0;
e3coinValue = 50;
e3coinType = 0;
e3altAnimCT = 0;
#endregion
//handler /land
#region e4
e4spawn = true;
e4CT = 0;
e4timer = 0;
e4HP = 12;
e4armor = 0;
e4X = 10155;
e4Y = 1922;
e4projA_X = 10155;
e4projA_Y = 1922;
e4act = 0;
e4facing = 0;
e4frame = 0;
e4Opacity = 255;
e4invTimer = 0;
e4knockbackTimer = 0;
e4projHeight = 0;
e4projWidth = 0;
e4hitTimer = 0;
e4invBlink = 255;
e4Attack = 1;
e4FireVul = 0;
e4BoltVul = 1;
e4AcidVul = 0;
e4faceR = false;
e4invulnerable = false;
e4knockback = false;
e4knockbackRes = false;
e4onGround = true;
e4proximity = false;
e4touchWallL = false;
e4touchWallR = false;
e4breathhit = false;
e4clawhit = false;
e4frozen = false;
e4peaceful = false;
e4frRes = false;
e4BurnVul = false;
e4ShockVul = false;
e4peaceRes = false;
e4coins = false;
e4smoke = false;
e4smokeCT = 0;
e4coinValue = 40;
e4coinType = 0;
e4altAnimCT = 0;
#endregion
//security
#region e5
e5spawn = true;
e5CT = 0;
e5timer = 0;
e5HP = 99;
e5armor = 99;
e5X = 2800;
e5Y = 1254;
e5projA_X = 2800;
e5projA_Y = 1182;
e5act = 0;
e5facing = 0;
e5frame = 0;
e5Opacity = 255;
e5invTimer = 0;
e5knockbackTimer = 0;
e5projHeight = 0;
e5projWidth = 0;
e5hitTimer = 0;
e5invBlink = 255;
e5Attack = 2;
e5FireVul = 0;
e5BoltVul = 0;
e5AcidVul = 0;
e5faceR = false;
e5invulnerable = false;
e5knockback = false;
e5knockbackRes = true;
e5onGround = true;
e5proximity = false;
e5touchWallL = false;
e5touchWallR = false;
e5breathhit = false;
e5clawhit = false;
e5frozen = false;
e5peaceful = false;
e5frRes = false;
e5BurnVul = false;
e5ShockVul = false;
e5peaceRes = true;
e5coins = false;
e5smoke = false;
e5smokeCT = 0;
e5coinValue = 0;
e5coinType = 0;
e5altAnimCT = 0;
#endregion
#region e6
e6spawn = true;
e6CT = 0;
e6timer = 0;
e6HP = 99;
e6armor = 99;
e6X = 7166;
e6Y = 1634;
e6projA_X = 7166;
e6projA_Y = 1674;
e6act = 0;
e6facing = 0;
e6frame = 0;
e6Opacity = 255;
e6invTimer = 0;
e6knockbackTimer = 0;
e6projHeight = 0;
e6projWidth = 0;
e6hitTimer = 0;
e6invBlink = 255;
e6Attack = 2;
e6FireVul = 0;
e6BoltVul = 0;
e6AcidVul = 0;
e6faceR = false;
e6invulnerable = false;
e6knockback = false;
e6knockbackRes = true;
e6onGround = true;
e6proximity = false;
e6touchWallL = false;
e6touchWallR = false;
e6breathhit = false;
e6clawhit = false;
e6frozen = false;
e6peaceful = false;
e6frRes = false;
e6BurnVul = false;
e6ShockVul = false;
e6peaceRes = true;
e6coins = false;
e6smoke = false;
e6smokeCT = 0;
e6coinValue = 0;
e6coinType = 0;
e6altAnimCT = 0;
#endregion
//archer
#region e7
e7spawn = true;
e7CT = 0;
e7timer = 0;
e7HP = 5;
e7armor = 0;
e7X = 7900;
e7Y = 1127;
e7act = 0;
e7facing = 0;
e7frame = 0;
e7Opacity = 255;
e7invTimer = 0;
e7knockbackTimer = 0;
e7hitTimer = 0;
e7invBlink = 255;
e7Attack = 1;
e7FireVul = 0;
e7BoltVul = 0;
e7AcidVul = 0;
e7faceR = false;
e7invulnerable = false;
e7knockback = false;
e7knockbackRes = false;
e7onGround = true;
e7proximity = false;
e7touchWallL = false;
e7touchWallR = false;
e7breathhit = false;
e7clawhit = false;
e7frozen = false;
e7peaceful = false;
e7frRes = false;
e7BurnVul = true;
e7ShockVul = false;
e7peaceRes = false;
e7coins = false;
e7smoke = false;
e7smokeCT = 0;
e7coinValue = 60;
e7coinType = 0;
e7altAnimCT = 0;
#endregion
#region e8
e8spawn = true;
e8CT = 0;
e8timer = 0;
e8HP = 5;
e8armor = 0;
e8X = 8600;
e8Y = 1133;
e8act = 0;
e8facing = 0;
e8frame = 0;
e8Opacity = 255;
e8invTimer = 0;
e8knockbackTimer = 0;
e8hitTimer = 0;
e8invBlink = 255;
e8Attack = 1;
e8FireVul = 0;
e8BoltVul = 0;
e8AcidVul = 0;
e8faceR = false;
e8invulnerable = false;
e8knockback = false;
e8knockbackRes = false;
e8onGround = true;
e8proximity = false;
e8touchWallL = false;
e8touchWallR = false;
e8breathhit = false;
e8clawhit = false;
e8frozen = false;
e8peaceful = false;
e8frRes = false;
e8BurnVul = true;
e8ShockVul = false;
e8peaceRes = false;
e8coins = false;
e8smoke = false;
e8smokeCT = 0;
e8coinValue = 60;
e8coinType = 0;
e8altAnimCT = 0;
#endregion
stage2e1 = true;
}
#endregion
#region toStage 2-2
if (toStage2e2 == true)
{
drawStages = new DrawStages(7, stageManager);
drawSky = new DrawSky(1, stageManager);
loadOcean = new LoadOcean(1, stageManager);
loadHandler = new LoadHandler(true, stageManager);
loadXbow = new LoadXbow(true, stageManager);
loadTentacle = new LoadTentacle(true, stageManager);
npc2e2 = new Npc2e2(true, stageManager);
playStageMusic = new PlayStageMusic(4, stageBGM);
loopSpin = new LoopSpin(true, breathSFX);
puzzleHovercraft = new PuzzleHovercraft(true,
stageManager);
loadFlyss = new LoadFlyss(true, stageManager);
drawTreasureText = new DrawTreasureText(5, stageManager,
languageType);
#region floor
floor1 = new Rectangle(0, 1326, 158, 10);
floor2 = new Rectangle(352, 1216, 627, 10);
floor3 = new Rectangle(122, 1528, 553, 10);
floor4 = new Rectangle(575, 1913, 671, 10);
floor5 = new Rectangle(899, 2129, 224, 10);
floor6 = new Rectangle(582, 2321, 331, 10);
floor7 = new Rectangle(165, 2732, 277, 10);
floor8 = new Rectangle(435, 2868, 228, 10);
floor9 = new Rectangle(502, 3123, 464, 10);
floor10 = new Rectangle(944, 3423, 224, 10);
floor11 = new Rectangle(0, 3817, 5574, 10);
floor12 = new Rectangle(2763, 3531, 1030, 10);
floor13 = new Rectangle(3965, 3538, 900, 10);
floor14 = new Rectangle(2308, 3112, 487, 10);
floor15 = new Rectangle(2934, 3112, 360, 10);
floor16 = new Rectangle(2246, 2601, 875, 10);
floor17 = new Rectangle(3346, 3234, 895, 10);
floor18 = new Rectangle(4325, 3140, 235, 10);
floor19 = new Rectangle(3977, 2629, 602, 10);
floor20 = new Rectangle(3396, 2609, 375, 10);
floor21 = new Rectangle(2203, 2100, 511, 10);
floor22 = new Rectangle(3621, 2089, 64, 10);
floor23 = new Rectangle(3678, 1971, 235, 10);
floor24 = new Rectangle(3910, 1884, 627, 10);
floor25 = new Rectangle(4755, 2114, 819, 10);
floor26 = new Rectangle(4712, 1583, 256, 10);
floor27 = new Rectangle(4373, 1578, 241, 10);
floor28 = new Rectangle(3167, 1583, 1027, 10);
floor29 = new Rectangle(2693, 1220, 512, 10);
floor30 = new Rectangle(3350, 1351, 716, 10);
floor31 = new Rectangle(4042, 1217, 1532, 10);
floor32 = new Rectangle(1560, 1209, 393, 10);
floor33 = new Rectangle(1551, 3537, 392, 10);
#endregion
#region wall
wall1 = new Rectangle(122, 1331, 6, 202);
wall2 = new Rectangle(357, 1226, 6, 131);
wall3 = new Rectangle(651, 1532, 6, 240);
wall4 = new Rectangle(951, 1226, 6, 523);
wall5 = new Rectangle(821, 1340, 6, 426);
wall6 = new Rectangle(449, 1731, 6, 844);
wall7 = new Rectangle(589, 1918, 6, 250);
wall8 = new Rectangle(797, 1968, 6, 196);
wall9 = new Rectangle(5574, 0, 6, 5000);
wall10 = new Rectangle(193, 2134, 6, 194);
wall11 = new Rectangle(1212, 1917, 6, 1694);
wall12 = new Rectangle(165, 2425, 6, 308);
wall13 = new Rectangle(320, 2423, 6, 181);
wall14 = new Rectangle(435, 2737, 6, 137);
wall15 = new Rectangle(817, 2669, 6, 308);
wall16 = new Rectangle(651, 2873, 6, 85);
wall17 = new Rectangle(1148, 2954, 6, 470);
wall18 = new Rectangle(951, 3128, 6, 301);
wall19 = new Rectangle(330, 2940, 6, 878);
wall20 = new Rectangle(507, 3128, 6, 507);
wall21 = new Rectangle(2254, 2606, 6, 1003);
wall22 = new Rectangle(2247, 2105, 6, 308);
wall23 = new Rectangle(2714, 1225, 6, 881);
wall24 = new Rectangle(2310, 2886, 6, 227);
wall25 = new Rectangle(2780, 3117, 6, 420);
wall26 = new Rectangle(3293, 2413, 6, 699);
wall27 = new Rectangle(2936, 3117, 6, 243);
wall28 = new Rectangle(3739, 3536, 6, 104);
wall29 = new Rectangle(3970, 3543, 6, 100);
wall30 = new Rectangle(4548, 3145, 6, 175);
wall31 = new Rectangle(4336, 2924, 6, 217);
wall32 = new Rectangle(4565, 2634, 6, 330);
wall33 = new Rectangle(4755, 2119, 6, 1426);
wall34 = new Rectangle(4577, 1852, 6, 544);
wall35 = new Rectangle(4697, 1588, 6, 260);
wall36 = new Rectangle(4718, 1386, 6, 199);
wall37 = new Rectangle(5143, 1375, 6, 430);
wall38 = new Rectangle(3978, 2634, 6, 321);
wall39 = new Rectangle(3752, 2614, 6, 307);
wall40 = new Rectangle(3499, 2927, 6, 90);
wall41 = new Rectangle(3351, 3014, 6, 220);
wall42 = new Rectangle(4240, 2930, 6, 305);
wall43 = new Rectangle(3402, 1588, 6, 1027);
wall44 = new Rectangle(3643, 2094, 6, 337);
wall45 = new Rectangle(3681, 1976, 6, 119);
wall46 = new Rectangle(3912, 1889, 6, 88);
wall47 = new Rectangle(4521, 1665, 6, 220);
wall48 = new Rectangle(4383, 1583, 6, 80);
wall49 = new Rectangle(4193, 1588, 6, 44);
wall50 = new Rectangle(4606, 1290, 6, 289);
wall51 = new Rectangle(4372, 1289, 6, 148);
wall52 = new Rectangle(3167, 1225, 6, 364);
wall53 = new Rectangle(3353, 1356, 6, 76);
wall54 = new Rectangle(4056, 1222, 6, 136);
wall55 = new Rectangle(-12, 0, 10, 5000);
wall56 = new Rectangle(1098, 1968, 6, 161);
wall57 = new Rectangle(913, 2134, 6, 194);
wall58 = new Rectangle(586, 2326, 6, 368);
wall59 = new Rectangle(1530, 925, 95, 280);
wall60 = new Rectangle(1550, 3542, 30, 400);
wall61 = new Rectangle(1914, 3542, 30, 400);
wall62 = new Rectangle(3098, 2606, 6, 328);
#endregion
#region roof
roof1 = new Rectangle(357, 1339, 465, 10);
roof2 = new Rectangle(449, 1740, 203, 10);
roof3 = new Rectangle(821, 1743, 131, 10);
roof4 = new Rectangle(797, 1973, 302, 10);
roof5 = new Rectangle(589, 2154, 209, 10);
roof6 = new Rectangle(165, 2431, 156, 10);
roof7 = new Rectangle(320, 2596, 130, 10);
roof8 = new Rectangle(586, 2675, 232, 10);
roof9 = new Rectangle(330, 2941, 322, 10);
roof10 = new Rectangle(817, 2963, 332, 10);
roof11 = new Rectangle(507, 3599, 706, 10);
roof12 = new Rectangle(4372, 1292, 235, 10);
roof13 = new Rectangle(3353, 1434, 1020, 10);
roof14 = new Rectangle(4718, 1384, 426, 10);
roof15 = new Rectangle(3402, 1628, 792, 10);
roof16 = new Rectangle(4383, 1667, 139, 10);
roof17 = new Rectangle(4577, 1857, 391, 10);
roof18 = new Rectangle(5143, 1835, 431, 10);
roof19 = new Rectangle(2247, 2419, 1047, 10);
roof20 = new Rectangle(3643, 2410, 935, 10);
roof21 = new Rectangle(2310, 2909, 789, 10);
roof22 = new Rectangle(3499, 2935, 254, 10);
roof23 = new Rectangle(3978, 2943, 263, 10);
roof24 = new Rectangle(4336, 2952, 230, 10);
roof25 = new Rectangle(3351, 3020, 149, 10);
roof26 = new Rectangle(2936, 3347, 1613, 10);
roof27 = new Rectangle(2254, 3628, 1525, 10);
roof28 = new Rectangle(3970, 3653, 1604, 10);
#endregion
toStage2e2 = false;
stageEndCT = 0;
cameraMaxX = 4246;
cameraMaxY = 3335;
drgnX = 12;
drgnY = 1183;
drgnFacingDir = 0;
drgnHitTimer = 0;
drgnDamageTaken = 0;
clawDir = 0;
breathDir = 0;
clawX = 127;
breathX = 110;
drgnFaceR = true;
#region whistle
whistleRandom = -1;
note1Measure = 0;
note1Beat = 0;
note1xPos = drgnX + 40;
note1yPos = drgnY + 40;
note1xVel = 3;
note1yVel = -2;
note2Measure = 0;
note2Beat = 0;
note2xPos = drgnX + 40;
note2yPos = drgnY + 40;
note2xVel = 3;
note2yVel = -2;
note3Measure = 0;
note3Beat = 0;
note3xPos = drgnX + 40;
note3yPos = drgnY + 40;
note3xVel = 3;
note3yVel = -2;
note4Measure = 0;
note4Beat = 0;
note4xPos = drgnX + 40;
note4yPos = drgnY + 40;
note4xVel = 3;
note4yVel = -2;
#endregion
#region light
light1X = 0;
light2X = 0;
light3X = 0;
light4X = 0;
light1Frame = 0;
light2Frame = 0;
light3Frame = 0;
light4Frame = 0;
light1CT = 0;
light2CT = 0;
light3CT = 0;
light4CT = 0;
light1Act = 0;
light2Act = 0;
light3Act = 0;
light4Act = 0;
light1Wait = 299;
light2Wait = 239;
light3Wait = 119;
light4Wait = 29;
light1On = false;
light2On = false;
light3On = false;
light4On = false;
#endregion
fishermanCT = 0;
fishermanFrame = 0;
fishermanAct = 0;
fishermanLoc = 0;
hoverCT = 0;
hoverFrame = 0;
hoverAct = 0;
hoverHP = 60;
hoverY = 0;
puzzleExplosionCT = 0;
puzzleExplosion = false;
eventYVel = 0;
chestAct = 0;
hovercraftOn = true;
hovercraftSink = false;
attackedFish = false;
drgnUnderwater = true;
#region enemies
//crossbow
#region e1
e1spawn = true;
e1CT = 0;
e1timer = 0;
e1HP = 12;
e1armor = 0;
e1X = 552;
e1Y = 1073;
e1act = 0;
e1facing = 0;
e1frame = 0;
e1Opacity = 255;
e1invTimer = 0;
e1knockbackTimer = 0;
e1projHeight = 0;
e1projWidth = 0;
e1hitTimer = 0;
e1invBlink = 255;
e1Attack = 1;
e1FireVul = 0;
e1BoltVul = 1;
e1AcidVul = 0;
e1faceR = false;
e1invulnerable = false;
e1knockback = false;
e1knockbackRes = false;
e1onGround = true;
e1proximity = false;
e1touchWallL = false;
e1touchWallR = false;
e1breathhit = false;
e1clawhit = false;
e1frozen = false;
e1peaceful = false;
e1frRes = false;
e1BurnVul = false;
e1ShockVul = false;
e1peaceRes = false;
e1coins = false;
e1smoke = false;
e1smokeCT = 0;
e1coinValue = 60;
e1coinType = 0;
e1altAnimCT = 0;
#endregion
#region e2
e2spawn = true;
e2CT = 0;
e2timer = 0;
e2HP = 12;
e2armor = 0;
e2X = 905;
e2Y = 1770;
e2act = 0;
e2facing = 0;
e2frame = 0;
e2Opacity = 255;
e2invTimer = 0;
e2knockbackTimer = 0;
e2projHeight = 0;
e2projWidth = 0;
e2hitTimer = 0;
e2invBlink = 255;
e2Attack = 1;
e2FireVul = 0;
e2BoltVul = 1;
e2AcidVul = 0;
e2faceR = false;
e2invulnerable = false;
e2knockback = false;
e2knockbackRes = false;
e2onGround = true;
e2proximity = false;
e2touchWallL = false;
e2touchWallR = false;
e2breathhit = false;
e2clawhit = false;
e2frozen = false;
e2peaceful = false;
e2frRes = false;
e2BurnVul = false;
e2ShockVul = false;
e2peaceRes = false;
e2coins = false;
e2smoke = false;
e2smokeCT = 0;
e2coinValue = 70;
e2coinType = 0;
e2altAnimCT = 0;
#endregion
#region e3
e3spawn = true;
e3CT = 0;
e3timer = 0;
e3HP = 12;
e3armor = 0;
e3X = 527;
e3Y = 2985;
e3act = 0;
e3facing = 0;
e3frame = 0;
e3Opacity = 255;
e3invTimer = 0;
e3knockbackTimer = 0;
e3projHeight = 0;
e3projWidth = 0;
e3hitTimer = 0;
e3invBlink = 255;
e3Attack = 1;
e3FireVul = 0;
e3BoltVul = 1;
e3AcidVul = 0;
e3faceR = false;
e3invulnerable = false;
e3knockback = false;
e3knockbackRes = false;
e3onGround = true;
e3proximity = false;
e3touchWallL = false;
e3touchWallR = false;
e3breathhit = false;
e3clawhit = false;
e3frozen = false;
e3peaceful = false;
e3frRes = false;
e3BurnVul = false;
e3ShockVul = false;
e3peaceRes = false;
e3coins = false;
e3smoke = false;
e3smokeCT = 0;
e3coinValue = 60;
e3coinType = 0;
e3altAnimCT = 0;
#endregion
#region e4
e4spawn = true;
e4CT = 0;
e4timer = 0;
e4HP = 12;
e4armor = 0;
e4X = 2780;
e4Y = 3674;
e4act = 0;
e4facing = 0;
e4frame = 0;
e4Opacity = 255;
e4invTimer = 0;
e4knockbackTimer = 0;
e4projHeight = 0;
e4projWidth = 0;
e4hitTimer = 0;
e4invBlink = 255;
e4Attack = 1;
e4FireVul = 0;
e4BoltVul = 1;
e4AcidVul = 0;
e4faceR = false;
e4invulnerable = false;
e4knockback = false;
e4knockbackRes = false;
e4onGround = true;
e4proximity = false;
e4touchWallL = false;
e4touchWallR = false;
e4breathhit = false;
e4clawhit = false;
e4frozen = false;
e4peaceful = false;
e4frRes = false;
e4BurnVul = false;
e4ShockVul = false;
e4peaceRes = false;
e4coins = false;
e4smoke = false;
e4smokeCT = 0;
e4coinValue = 60;
e4coinType = 0;
e4altAnimCT = 0;
#endregion
#region e5
e5spawn = true;
e5CT = 0;
e5timer = 0;
e5HP = 12;
e5armor = 0;
e5X = 3421;
e5Y = 3091;
e5act = 0;
e5facing = 0;
e5frame = 0;
e5Opacity = 255;
e5invTimer = 0;
e5knockbackTimer = 0;
e5projHeight = 0;
e5projWidth = 0;
e5hitTimer = 0;
e5invBlink = 255;
e5Attack = 1;
e5FireVul = 0;
e5BoltVul = 1;
e5AcidVul = 0;
e5faceR = false;
e5invulnerable = false;
e5knockback = false;
e5knockbackRes = false;
e5onGround = true;
e5proximity = false;
e5touchWallL = false;
e5touchWallR = false;
e5breathhit = false;
e5clawhit = false;
e5frozen = false;
e5peaceful = false;
e5frRes = false;
e5BurnVul = false;
e5ShockVul = false;
e5peaceRes = false;
e5coins = false;
e5smoke = false;
e5smokeCT = 0;
e5coinValue = 600;
e5coinType = 0;
e5altAnimCT = 0;
#endregion
#region e7
e7spawn = true;
e7CT = 0;
e7timer = 0;
e7HP = 12;
e7armor = 0;
e7X = 4742;
e7Y = 1440;
e7act = 0;
e7facing = 0;
e7frame = 0;
e7Opacity = 255;
e7invTimer = 0;
e7knockbackTimer = 0;
e7projHeight = 0;
e7projWidth = 0;
e7hitTimer = 0;
e7invBlink = 255;
e7Attack = 1;
e7FireVul = 0;
e7BoltVul = 1;
e7AcidVul = 0;
e7faceR = false;
e7invulnerable = false;
e7knockback = false;
e7knockbackRes = false;
e7onGround = true;
e7proximity = false;
e7touchWallL = false;
e7touchWallR = false;
e7breathhit = false;
e7clawhit = false;
e7frozen = false;
e7peaceful = false;
e7frRes = false;
e7BurnVul = false;
e7ShockVul = false;
e7peaceRes = false;
e7coins = false;
e7smoke = false;
e7smokeCT = 0;
e7coinValue = 80;
e7coinType = 0;
e7altAnimCT = 0;
#endregion
//handler - swim
#region e8
e8spawn = true;
e8CT = 0;
e8timer = 0;
e8HP = 12;
e8armor = 0;
e8X = 3681;
e8Y = 1185;
e8projA_X = 3667;
e8projA_Y = 1225;
e8act = 0;
e8facing = 0;
e8frame = 0;
e8Opacity = 255;
e8invTimer = 0;
e8knockbackTimer = 0;
e8projHeight = 0;
e8projWidth = 0;
e8hitTimer = 0;
e8invBlink = 255;
e8Attack = 1;
e8FireVul = 0;
e8BoltVul = 1;
e8AcidVul = 0;
e8faceR = false;
e8invulnerable = false;
e8knockback = false;
e8knockbackRes = false;
e8onGround = true;
e8proximity = false;
e8touchWallL = false;
e8touchWallR = false;
e8breathhit = false;
e8clawhit = false;
e8frozen = false;
e8peaceful = false;
e8frRes = false;
e8BurnVul = false;
e8ShockVul = false;
e8peaceRes = true;
e8coins = false;
e8smoke = false;
e8smokeCT = 0;
e8coinValue = 0;
e8coinType = 0;
e8altAnimCT = 0;
#endregion
#region e9
e9spawn = true;
e9CT = 0;
e9timer = 0;
e9HP = 12;
e9armor = 0;
e9X = 3600;
e9Y = 3388;
e9act = 0;
e9facing = 0;
e9frame = 0;
e9Opacity = 255;
e9invTimer = 0;
e9knockbackTimer = 0;
e9projHeight = 0;
e9projWidth = 0;
e9hitTimer = 0;
e9invBlink = 255;
e9Attack = 1;
e9FireVul = 0;
e9BoltVul = 1;
e9AcidVul = 0;
e9faceR = false;
e9invulnerable = false;
e9knockback = false;
e9knockbackRes = false;
e9onGround = true;
e9proximity = false;
e9touchWallL = false;
e9touchWallR = false;
e9breathhit = false;
e9clawhit = false;
e9frozen = false;
e9peaceful = false;
e9frRes = false;
e9BurnVul = false;
e9ShockVul = false;
e9peaceRes = false;
e9coins = false;
e9smoke = false;
e9smokeCT = 0;
e9coinValue = 60;
e9coinType = 0;
e9altAnimCT = 0;
#endregion
#region e10
e10spawn = true;
e10CT = 0;
e10timer = 0;
e10HP = 12;
e10armor = 0;
e10X = 3402;
e10Y = 2466;
e10act = 0;
e10facing = 0;
e10frame = 0;
e10Opacity = 255;
e10invTimer = 0;
e10knockbackTimer = 0;
e10projHeight = 0;
e10projWidth = 0;
e10hitTimer = 0;
e10invBlink = 255;
e10Attack = 1;
e10FireVul = 0;
e10BoltVul = 1;
e10AcidVul = 0;
e10faceR = false;
e10invulnerable = false;
e10knockback = false;
e10knockbackRes = false;
e10onGround = true;
e10proximity = false;
e10touchWallL = false;
e10touchWallR = false;
e10breathhit = false;
e10clawhit = false;
e10frozen = false;
e10peaceful = false;
e10frRes = false;
e10BurnVul = false;
e10ShockVul = false;
e10peaceRes = false;
e10coins = false;
e10smoke = false;
e10smokeCT = 0;
e10coinValue = 60;
e10coinType = 0;
e10altAnimCT = 0;
#endregion
#region e11
e11spawn = true;
e11CT = 0;
e11timer = 0;
e11HP = 12;
e11armor = 0;
e11X = 2693;
e11Y = 2458;
e11act = 0;
e11facing = 0;
e11frame = 0;
e11Opacity = 255;
e11invTimer = 0;
e11knockbackTimer = 0;
e11projHeight = 0;
e11projWidth = 0;
e11hitTimer = 0;
e11invBlink = 255;
e11Attack = 1;
e11FireVul = 0;
e11BoltVul = 1;
e11AcidVul = 0;
e11faceR = false;
e11invulnerable = false;
e11knockback = false;
e11knockbackRes = false;
e11onGround = true;
e11proximity = false;
e11touchWallL = false;
e11touchWallR = false;
e11breathhit = false;
e11clawhit = false;
e11frozen = false;
e11peaceful = false;
e11frRes = false;
e11BurnVul = false;
e11ShockVul = false;
e11peaceRes = false;
e11coins = false;
e11smoke = false;
e11smokeCT = 0;
e11coinValue = 60;
e11coinType = 0;
e11altAnimCT = 0;
#endregion
#endregion
#region tentacles
obs1Frame = 0;
obs2Frame = 1;
obs3Frame = 2;
#endregion
#region NPC
e18X = 2180;
e19X = 651;
e20X = 1412;
npc1FaceR = false;
npc2FaceR = false;
npc3FaceR = false;
#endregion
stage2e2 = true;
}
#endregion
#region toStage 2-3
if (toStage2e3 == true)
{
drawStages = new DrawStages(8, stageManager);
drawSky = new DrawSky(1, stageManager);
drawAbyss = new DrawAbyss(true, stageManager);
loadStampede = new LoadStampede(true, stageManager);
loadHandler = new LoadHandler(true, stageManager);
loadBone = new LoadBone(true, stageManager);
loadTuba = new LoadTuba(true, stageManager);
loadSquire = new LoadSquire(true, stageManager);
loadXbow = new LoadXbow(true, stageManager);
loadGust = new LoadGust(true, stageManager);
npc2e3 = new Npc2e3(true, stageManager);
loadOcean = new LoadOcean(1, stageManager);
playStageMusic = new PlayStageMusic(4, stageBGM);
loopSpin = new LoopSpin(true, breathSFX);
drawTreasureText = new DrawTreasureText(6, stageManager,
languageType);
talk2e3 = new Rectangle(4722, 1347, 40, 144);
#region floor
floor1 = new Rectangle(0, 1785, 501, 10);
floor2 = new Rectangle(721, 1740, 544, 10);
floor3 = new Rectangle(1349, 1740, 560, 10);
floor4 = new Rectangle(2032, 1725, 73, 10);
floor5 = new Rectangle(2101, 1781, 255, 10);
floor6 = new Rectangle(2349, 1720, 54, 10);
floor7 = new Rectangle(2563, 1692, 817, 10);
floor8 = new Rectangle(2619, 1562, 615, 10);
floor9 = new Rectangle(3439, 1497, 450, 10);
floor10 = new Rectangle(3877, 1386, 512, 10);
floor11 = new Rectangle(4380, 1490, 612, 10);
floor12 = new Rectangle(4443, 1845, 485, 10);
floor13 = new Rectangle(4982, 1439, 249, 10);
floor14 = new Rectangle(5216, 1391, 323, 10);
floor15 = new Rectangle(5733, 1754, 340, 10);
floor16 = new Rectangle(6061, 1829, 298, 10);
floor17 = new Rectangle(6751, 1790, 446, 10);
floor18 = new Rectangle(6793, 1710, 102, 10);
floor19 = new Rectangle(7033, 1637, 96, 10);
floor20 = new Rectangle(6802, 1554, 94, 10);
floor21 = new Rectangle(6804, 1487, 100, 10);
floor22 = new Rectangle(6504, 1355, 247, 10);
floor23 = new Rectangle(6960, 1369, 410, 10);
floor24 = new Rectangle(7368, 1545, 563, 10);
floor25 = new Rectangle(7926, 1467, 523, 10);
floor26 = new Rectangle(8445, 1547, 496, 10);
floor27 = new Rectangle(9497, 1794, 503, 10);
#endregion
#region temp wall
L1 = new Rectangle(741, 1745, 6, 100);
R1 = new Rectangle(1255, 1745, 6, 100);
L2 = new Rectangle(1369, 1745, 6, 100);
R2 = new Rectangle(1879, 1745, 6, 100);
L3 = new Rectangle(2052, 1730, 6, 125);
R3 = new Rectangle(2383, 1725, 6, 125);
L4 = new Rectangle(2583, 1697, 6, 150);
R4 = new Rectangle(3330, 1697, 6, 150);
L5 = new Rectangle(3427, 1502, 6, 20);
R5 = new Rectangle(5551, 1396, 6, 100);
L6 = new Rectangle(5743, 1759, 6, 100);
R6 = new Rectangle(6349, 1834, 6, 29);
L7 = new Rectangle(6492, 1360, 6, 20);
R7 = new Rectangle(6763, 1360, 6, 20);
L8 = new Rectangle(6948, 1374, 6, 20);
R8 = new Rectangle(8953, 1552, 6, 20);
L9 = new Rectangle(9485, 1799, 6, 20);
R9 = new Rectangle(10012, 1799, 6, 20);
L10 = new Rectangle(6739, 1795, 6, 20);
R10 = new Rectangle(7209, 1795, 6, 20);
#endregion
#region wall
wall1 = new Rectangle(401, 1790, 6, 1000);
wall2 = new Rectangle(-20, 0, 6, 4000);
wall3 = new Rectangle(2095, 1730, 6, 57);
wall4 = new Rectangle(2352, 1725, 6, 62);
wall5 = new Rectangle(3880, 1391, 6, 112);
wall6 = new Rectangle(4387, 1391, 6, 105);
wall7 = new Rectangle(4983, 1444, 6, 52);
wall8 = new Rectangle(5219, 1396, 6, 49);
wall9 = new Rectangle(6060, 1759, 6, 76);
wall10 = new Rectangle(7368, 1374, 6, 171);
wall11 = new Rectangle(7927, 1472, 6, 73);
wall12 = new Rectangle(8446, 1472, 6, 81);
wall13 = new Rectangle(9797, 0, 6, 4000);
wall14 = new Rectangle(5516, 1396, 6, 175);
#endregion
#region roof
roof1 = new Rectangle(9497, 1814, 503, 10);
roof2 = new Rectangle(741, 1845, 514, 10);
roof3 = new Rectangle(1369, 1845, 510, 10);
roof4 = new Rectangle(2052, 1850, 331, 10);
roof5 = new Rectangle(2583, 1847, 747, 10);
roof6 = new Rectangle(3527, 1606, 2024, 10);
roof7 = new Rectangle(5743, 1859, 606, 10);
#endregion
toStage2e3 = false;
stageEndCT = 0;
cameraMaxX = 8523;
cameraMaxY = 1377;
drgnX = 12;
drgnY = 1642;
drgnFacingDir = 0;
drgnHitTimer = 0;
drgnDamageTaken = 0;
clawDir = 0;
breathDir = 0;
clawX = 127;
breathX = 110;
drgnFaceR = true;
gustYMod = 0;
drgnUnderwater = false;
if (npcQuest == 1)
{
niaOn = true;
bowOn = true;
}
else
{
niaOn = false;
bowOn = false;
}
#region whistle
whistleRandom = -1;
note1Measure = 0;
note1Beat = 0;
note1xPos = drgnX + 40;
note1yPos = drgnY + 40;
note1xVel = 3;
note1yVel = -2;
note2Measure = 0;
note2Beat = 0;
note2xPos = drgnX + 40;
note2yPos = drgnY + 40;
note2xVel = 3;
note2yVel = -2;
note3Measure = 0;
note3Beat = 0;
note3xPos = drgnX + 40;
note3yPos = drgnY + 40;
note3xVel = 3;
note3yVel = -2;
note4Measure = 0;
note4Beat = 0;
note4xPos = drgnX + 40;
note4yPos = drgnY + 40;
note4xVel = 3;
note4yVel = -2;
#endregion
#region enemies
//squire
#region e1
e1spawn = true;
e1CT = 0;
e1timer = 0;
e1HP = 6;
e1armor = 0;
e1X = 930;
e1Y = 1597;
e1act = 0;
e1facing = 0;
e1frame = 0;
e1Opacity = 255;
e1invTimer = 0;
e1knockbackTimer = 0;
e1hitTimer = 0;
e1invBlink = 255;
e1Attack = 1;
e1FireVul = 0;
e1BoltVul = 0;
e1AcidVul = 0;
e1faceR = false;
e1invulnerable = false;
e1knockback = false;
e1knockbackRes = false;
e1onGround = true;
e1proximity = false;
e1touchWallL = false;
e1touchWallR = false;
e1breathhit = false;
e1clawhit = false;
e1frozen = false;
e1peaceful = false;
e1frRes = false;
e1BurnVul = false;
e1ShockVul = false;
e1peaceRes = false;
e1coins = false;
e1smoke = false;
e1smokeCT = 0;
e1coinValue = 30;
e1coinType = 0;
e1altAnimCT = 0;
#endregion
//crossbow
#region e2
e2spawn = true;
e2CT = 0;
e2timer = 0;
e2HP = 12;
e2armor = 0;
e2X = 3000;
e2Y = 1549;
e2act = 0;
e2facing = 0;
e2frame = 0;
e2Opacity = 255;
e2invTimer = 0;
e2knockbackTimer = 0;
e2projHeight = 0;
e2projWidth = 0;
e2hitTimer = 0;
e2invBlink = 255;
e2Attack = 1;
e2FireVul = 0;
e2BoltVul = 1;
e2AcidVul = 0;
e2faceR = false;
e2invulnerable = false;
e2knockback = false;
e2knockbackRes = false;
e2onGround = true;
e2proximity = false;
e2touchWallL = false;
e2touchWallR = false;
e2breathhit = false;
e2clawhit = false;
e2frozen = false;
e2peaceful = false;
e2frRes = false;
e2BurnVul = false;
e2ShockVul = false;
e2peaceRes = false;
e2coins = false;
e2smoke = false;
e2smokeCT = 0;
e2coinValue = 70;
e2coinType = 0;
e2altAnimCT = 0;
#endregion
#region e3
e3spawn = true;
e3CT = 0;
e3timer = 0;
e3HP = 12;
e3armor = 0;
e3X = 6161;
e3Y = 1686;
e3act = 0;
e3facing = 0;
e3frame = 0;
e3Opacity = 255;
e3invTimer = 0;
e3knockbackTimer = 0;
e3projHeight = 0;
e3projWidth = 0;
e3hitTimer = 0;
e3invBlink = 255;
e3Attack = 1;
e3FireVul = 0;
e3BoltVul = 1;
e3AcidVul = 0;
e3faceR = false;
e3invulnerable = false;
e3knockback = false;
e3knockbackRes = false;
e3onGround = true;
e3proximity = false;
e3touchWallL = false;
e3touchWallR = false;
e3breathhit = false;
e3clawhit = false;
e3frozen = false;
e3peaceful = false;
e3frRes = false;
e3BurnVul = false;
e3ShockVul = false;
e3peaceRes = false;
e3coins = false;
e3smoke = false;
e3smokeCT = 0;
e3coinValue = 60;
e3coinType = 0;
e3altAnimCT = 0;
#endregion
//tuba
#region e4
e4spawn = true;
e4CT = 0;
e4timer = 0;
e4reload = 121;
e4HP = 25;
e4armor = 0;
e4X = 7210;
e4Y = 1226;
e4act = 0;
e4facing = 0;
e4frame = 0;
e4Opacity = 255;
e4invTimer = 0;
e4knockbackTimer = 0;
e4projHeight = 0;
e4projWidth = 0;
e4hitTimer = 0;
e4invBlink = 255;
e4Attack = 1;
e4FireVul = 2;
e4BoltVul = 0;
e4AcidVul = 0;
e4faceR = false;
e4invulnerable = false;
e4knockback = false;
e4knockbackRes = false;
e4onGround = true;
e4proximity = false;
e4touchWallL = false;
e4touchWallR = false;
e4breathhit = false;
e4clawhit = false;
e4frozen = false;
e4peaceful = false;
e4frRes = false;
e4BurnVul = true;
e4ShockVul = false;
e4peaceRes = false;
e4coins = false;
e4smoke = false;
e4smokeCT = 0;
e4coinValue = 40;
e4coinType = 0;
e4altAnimCT = 0;
#endregion
#region e5
e5spawn = true;
e5CT = 0;
e5timer = 0;
e5reload = 121;
e5HP = 25;
e5armor = 0;
e5X = 8126;
e5Y = 1324;
e5act = 0;
e5facing = 0;
e5frame = 0;
e5Opacity = 255;
e5invTimer = 0;
e5knockbackTimer = 0;
e5projHeight = 0;
e5projWidth = 0;
e5hitTimer = 0;
e5invBlink = 255;
e5Attack = 1;
e5FireVul = 2;
e5BoltVul = 0;
e5AcidVul = 0;
e5faceR = false;
e5invulnerable = false;
e5knockback = false;
e5knockbackRes = false;
e5onGround = true;
e5proximity = false;
e5touchWallL = false;
e5touchWallR = false;
e5breathhit = false;
e5clawhit = false;
e5frozen = false;
e5peaceful = false;
e5frRes = false;
e5BurnVul = true;
e5ShockVul = false;
e5peaceRes = false;
e5coins = false;
e5smoke = false;
e5smokeCT = 0;
e5coinValue = 40;
e5coinType = 0;
e5altAnimCT = 0;
#endregion
//trombone
#region e6
e6spawn = true;
e6CT = 0;
e6timer = 0;
e6HP = 26;
e6armor = 0;
e6X = 6555;
e6Y = 1212;
e6act = 0;
e6facing = 0;
e6frame = 0;
e6Opacity = 255;
e6invTimer = 0;
e6knockbackTimer = 0;
e6projHeight = 0;
e6projWidth = 0;
e6hitTimer = 0;
e6invBlink = 255;
e6Attack = 1;
e6FireVul = 2;
e6BoltVul = 0;
e6AcidVul = 0;
e6faceR = false;
e6invulnerable = false;
e6knockback = false;
e6knockbackRes = false;
e6onGround = true;
e6proximity = false;
e6touchWallL = false;
e6touchWallR = false;
e6breathhit = false;
e6clawhit = false;
e6frozen = false;
e6peaceful = false;
e6frRes = false;
e6BurnVul = true;
e6ShockVul = false;
e6peaceRes = false;
e6coins = false;
e6smoke = false;
e6smokeCT = 0;
e6coinValue = 60;
e6coinType = 0;
e6altAnimCT = 0;
#endregion
#region e7
e7spawn = true;
e7CT = 0;
e7timer = 0;
e7HP = 26;
e7armor = 0;
e7X = 7368;
e7Y = 1402;
e7act = 0;
e7facing = 0;
e7frame = 0;
e7Opacity = 255;
e7invTimer = 0;
e7knockbackTimer = 0;
e7projHeight = 0;
e7projWidth = 0;
e7hitTimer = 0;
e7invBlink = 255;
e7Attack = 1;
e7FireVul = 2;
e7BoltVul = 0;
e7AcidVul = 0;
e7faceR = false;
e7invulnerable = false;
e7knockback = false;
e7knockbackRes = false;
e7onGround = true;
e7proximity = false;
e7touchWallL = false;
e7touchWallR = false;
e7breathhit = false;
e7clawhit = false;
e7frozen = false;
e7peaceful = false;
e7frRes = false;
e7BurnVul = true;
e7ShockVul = false;
e7peaceRes = false;
e7coins = false;
e7smoke = false;
e7smokeCT = 0;
e7coinValue = 60;
e7coinType = 0;
e7altAnimCT = 0;
#endregion
//handler - swim
#region e8
e8spawn = true;
e8CT = 0;
e8timer = 0;
e8HP = 12;
e8armor = 0;
e8X = 3837;
e8Y = 1774;
e8projA_X = 3823;
e8projA_Y = 1814;
e8act = 0;
e8facing = 0;
e8frame = 0;
e8Opacity = 255;
e8invTimer = 0;
e8knockbackTimer = 0;
e8projHeight = 0;
e8projWidth = 0;
e8hitTimer = 0;
e8invBlink = 255;
e8Attack = 1;
e8FireVul = 0;
e8BoltVul = 1;
e8AcidVul = 0;
e8faceR = false;
e8invulnerable = false;
e8knockback = false;
e8knockbackRes = false;
e8onGround = true;
e8proximity = false;
e8touchWallL = false;
e8touchWallR = false;
e8breathhit = false;
e8clawhit = false;
e8frozen = false;
e8peaceful = false;
e8frRes = false;
e8BurnVul = false;
e8ShockVul = false;
e8peaceRes = true;
e8coins = false;
e8smoke = false;
e8smokeCT = 0;
e8coinValue = 0;
e8coinType = 0;
e8altAnimCT = 0;
#endregion
#region e9
e9spawn = true;
e9CT = 0;
e9timer = 0;
e9HP = 12;
e9armor = 0;
e9X = 6960;
e9Y = 1774;
e9projA_X = 6946;
e9projA_Y = 1814;
e9act = 0;
e9facing = 0;
e9frame = 0;
e9Opacity = 255;
e9invTimer = 0;
e9knockbackTimer = 0;
e9projHeight = 0;
e9projWidth = 0;
e9hitTimer = 0;
e9invBlink = 255;
e9Attack = 1;
e9FireVul = 0;
e9BoltVul = 1;
e9AcidVul = 0;
e9faceR = false;
e9invulnerable = false;
e9knockback = false;
e9knockbackRes = false;
e9onGround = true;
e9proximity = false;
e9touchWallL = false;
e9touchWallR = false;
e9breathhit = false;
e9clawhit = false;
e9frozen = false;
e9peaceful = false;
e9frRes = false;
e9BurnVul = false;
e9ShockVul = false;
e9peaceRes = true;
e9coins = false;
e9smoke = false;
e9smokeCT = 0;
e9coinValue = 0;
e9coinType = 0;
e9altAnimCT = 0;
#endregion
#region e10
e10spawn = true;
e10CT = 0;
e10timer = 0;
e10HP = 12;
e10armor = 0;
e10X = 8950;
e10Y = 1774;
e10projA_X = 8936;
e10projA_Y = 1814;
e10act = 0;
e10facing = 0;
e10frame = 0;
e10Opacity = 255;
e10invTimer = 0;
e10knockbackTimer = 0;
e10projHeight = 0;
e10projWidth = 0;
e10hitTimer = 0;
e10invBlink = 255;
e10Attack = 1;
e10FireVul = 0;
e10BoltVul = 1;
e10AcidVul = 0;
e10faceR = false;
e10invulnerable = false;
e10knockback = false;
e10knockbackRes = false;
e10onGround = true;
e10proximity = false;
e10touchWallL = false;
e10touchWallR = false;
e10breathhit = false;
e10clawhit = false;
e10frozen = false;
e10peaceful = false;
e10frRes = false;
e10BurnVul = false;
e10ShockVul = false;
e10peaceRes = true;
e10coins = false;
e10smoke = false;
e10smokeCT = 0;
e10coinValue = 0;
e10coinType = 0;
e10altAnimCT = 0;
#endregion
//stampede
#region e11
e11HP = 100;
e11X = -600;
e11spawn = true;
#endregion
#endregion
stage2e3 = true;
}
#endregion
#region toStage 2-4
if (toStage2e4 == true)
{
drawStages = new DrawStages(9, stageManager);
drawSky = new DrawSky(1, stageManager);
draw2e4 = new Draw2e4(true, stageManager);
loadOcean = new LoadOcean(1, stageManager);
loadArcher = new LoadArcher(true, stageManager);
loadCD = new LoadCD(true, stageManager);
loadSecurity = new LoadSecurity(true, stageManager);
loadHandler = new LoadHandler(true, stageManager);
loadSwordmaster = new LoadSwordmaster(true,
stageManager);
loadBone = new LoadBone(true, stageManager);
loadSax = new LoadSax(true, stageManager);
loadTuba = new LoadTuba(true, stageManager);
npc2e4 = new Npc2e4(true, stageManager);
playStageMusic = new PlayStageMusic(4, stageBGM);
puzzleCruise = new PuzzleCruise(true, stageManager);
loopFlameAtk = new LoopFlameAtk(true, breathSFX);
loopFireBreathAlt = new LoopFireBreathAlt(true,
breathSFX);
loopSpin = new LoopSpin(true, breathSFX);
drawTreasureText = new DrawTreasureText(7, stageManager,
languageType);
#region floor
floor1 = new Rectangle(507, 2555, 2887, 10);
#region West
floor2 = new Rectangle(505, 2481, 390, 10);
floor3 = new Rectangle(505, 2416, 339, 10);
floor4 = new Rectangle(505, 2357, 283, 10);
floor5 = new Rectangle(505, 2300, 227, 10);
floor6 = new Rectangle(505, 2245, 173, 10);
floor7 = new Rectangle(507, 2195, 127, 10);
floor8 = new Rectangle(508, 2149, 66, 10);
floor9 = new Rectangle(516, 2110, 2292, 10);
floor10 = new Rectangle(2523, 2064, 283, 10);
floor11 = new Rectangle(2564, 2011, 245, 10);
floor12 = new Rectangle(2611, 1949, 195, 10);
floor13 = new Rectangle(2653, 1897, 155, 10);
floor14 = new Rectangle(2691, 1849, 118, 10);
floor15 = new Rectangle(2721, 1808, 86, 10);
floor16 = new Rectangle(2756, 1758, 51, 10);
floor17 = new Rectangle(505, 1706, 2889, 10);
floor18 = new Rectangle(553, 1690, 316, 10);
floor19 = new Rectangle(552, 1644, 272, 10);
floor20 = new Rectangle(555, 1599, 241, 10);
floor21 = new Rectangle(556, 1554, 196, 10);
floor22 = new Rectangle(557, 1510, 156, 10);
floor23 = new Rectangle(556, 1468, 113, 10);
floor24 = new Rectangle(556, 1429, 83, 10);
floor25 = new Rectangle(555, 1394, 57, 10);
floor26 = new Rectangle(553, 1360, 28, 10);
floor27 = new Rectangle(539, 1322, 2314, 10);
floor28 = new Rectangle(2507, 1285, 346, 10);
floor29 = new Rectangle(2537, 1249, 316, 10);
floor30 = new Rectangle(2558, 1206, 293, 10);
floor31 = new Rectangle(2608, 1158, 243, 10);
floor32 = new Rectangle(2633, 1116, 218, 10);
floor33 = new Rectangle(2671, 1074, 180, 10);
floor34 = new Rectangle(2707, 1034, 144, 10);
floor35 = new Rectangle(2730, 997, 121, 10);
floor36 = new Rectangle(2766, 963, 85, 10);
floor37 = new Rectangle(0, 907, 3394, 10);
floor38 = new Rectangle(1268, 867, 742, 10);
floor39 = new Rectangle(1304, 824, 669, 10);
floor40 = new Rectangle(1345, 777, 593, 10);
floor41 = new Rectangle(1380, 732, 516, 10);
floor42 = new Rectangle(1418, 695, 444, 10);
floor43 = new Rectangle(1447, 659, 387, 10);
floor44 = new Rectangle(1477, 626, 320, 10);
floor45 = new Rectangle(1514, 597, 253, 10);
floor46 = new Rectangle(1546, 565, 180, 10);
floor47 = new Rectangle(0, 510, 3394, 10);
#endregion
#region East
floor48 = new Rectangle(2487, 2498, 118, 10);
floor49 = new Rectangle(2559, 2458, 95, 10);
floor50 = new Rectangle(2607, 2421, 106, 10);
floor51 = new Rectangle(2650, 2381, 142, 10);
floor52 = new Rectangle(2625, 2342, 93, 10);
floor53 = new Rectangle(2560, 2304, 106, 10);
floor54 = new Rectangle(2498, 2267, 122, 10);
floor55 = new Rectangle(2493, 2244, 98, 10);
floor56 = new Rectangle(2541, 2206, 103, 10);
floor57 = new Rectangle(2587, 2171, 100, 10);
floor58 = new Rectangle(2648, 2133, 139, 10);
floor59 = new Rectangle(2624, 2092, 93, 10);
floor60 = new Rectangle(2577, 2058, 93, 10);
floor61 = new Rectangle(2503, 2023, 100, 10);
floor62 = new Rectangle(2491, 1978, 111, 10);
floor63 = new Rectangle(2545, 1947, 111, 10);
floor64 = new Rectangle(2603, 1914, 120, 10);
floor65 = new Rectangle(2659, 1883, 129, 10);
floor66 = new Rectangle(2638, 1856, 94, 10);
floor67 = new Rectangle(2574, 1818, 92, 10);
floor68 = new Rectangle(2492, 1787, 121, 10);
floor69 = new Rectangle(2489, 1753, 100, 10);
floor70 = new Rectangle(1819, 1719, 1575, 10);
floor71 = new Rectangle(1623, 1755, 206, 10);
floor72 = new Rectangle(0, 1728, 1632, 10);
floor73 = new Rectangle(0, 1686, 477, 10);
floor74 = new Rectangle(0, 1656, 395, 10);
floor75 = new Rectangle(0, 1611, 314, 10);
floor76 = new Rectangle(0, 1564, 263, 10);
floor77 = new Rectangle(0, 1507, 212, 10);
floor78 = new Rectangle(0, 1447, 149, 10);
floor79 = new Rectangle(0, 1398, 103, 10);
floor80 = new Rectangle(0, 1354, 46, 10);
floor81 = new Rectangle(0, 1324, 598, 10);
floor82 = new Rectangle(809, 1327, 473, 10);
floor83 = new Rectangle(1415, 1271, 241, 10);
floor84 = new Rectangle(1653, 1205, 268, 10);
floor85 = new Rectangle(2056, 1182, 1338, 10);
floor86 = new Rectangle(2044, 932, 154, 10);
floor87 = new Rectangle(2349, 828, 1045, 10);
floor88 = new Rectangle(1470, 1061, 472, 10);
floor89 = new Rectangle(1070, 1057, 253, 10);
floor90 = new Rectangle(815, 965, 267, 10);
floor91 = new Rectangle(581, 1030, 137, 10);
floor92 = new Rectangle(312, 937, 160, 10);
floor93 = new Rectangle(150, 972, 93, 10);
floor94 = new Rectangle(0, 825, 125, 10);
floor95 = new Rectangle(476, 734, 613, 10);
#endregion
#endregion
#region temp wall
L1 = new Rectangle(-12, 1325, 6, 20);
L2 = new Rectangle(797, 1332, 6, 20);
L3 = new Rectangle(1403, 1276, 6, 20);
L4 = new Rectangle(2044, 1187, 6, 20);
L5 = new Rectangle(2032, 937, 6, 20);
L6 = new Rectangle(2337, 833, 6, 20);
L7 = new Rectangle(1458, 1066, 6, 20);
L8 = new Rectangle(1058, 1062, 6, 20);
L9 = new Rectangle(803, 970, 6, 20);
L10 = new Rectangle(569, 1035, 6, 20);
L11 = new Rectangle(300, 942, 6, 20);
L12 = new Rectangle(138, 977, 6, 20);
L13 = new Rectangle(-12, 830, 6, 20);
L14 = new Rectangle(464, 739, 6, 20);
R1 = new Rectangle(610, 1329, 6, 20);
R2 = new Rectangle(1294, 1332, 6, 20);
R3 = new Rectangle(1668, 1276, 6, 20);
R4 = new Rectangle(1933, 1210, 6, 20);
R5 = new Rectangle(3406, 1187, 6, 20);
R6 = new Rectangle(2210, 937, 6, 20);
R7 = new Rectangle(3406, 833, 6, 20);
R8 = new Rectangle(1954, 1066, 6, 20);
R9 = new Rectangle(1335, 1062, 6, 20);
R10 = new Rectangle(730, 1035, 6, 20);
R11 = new Rectangle(484, 942, 6, 20);
R12 = new Rectangle(255, 977, 6, 20);
R13 = new Rectangle(137, 830, 6, 20);
R14 = new Rectangle(1101, 739, 6, 20);
#endregion
#region wall
wall1 = new Rectangle(-12, 0, 20, 2900);
wall2 = new Rectangle(3390, 0, 20, 2900);
wall3 = new Rectangle(543, 1731, 6, 1127);
wall4 = new Rectangle(2807, 1731, 600, 379);
wall5 = new Rectangle(894, 1332, 6, 30);
wall6 = new Rectangle(2524, 1731, 6, 30);
wall7 = new Rectangle(2817, 1332, 6, 161);
wall8 = new Rectangle(552, 927, 6, 804);
wall9 = new Rectangle(2817, 927, 6, 405);
wall10 = new Rectangle(2508, 927, 6, 30);
wall12 = new Rectangle(533, 530, 6, 150);
wall13 = new Rectangle(1269, 530, 6, 30);
wall14 = new Rectangle(2009, 530, 6, 30);
wall15 = new Rectangle(2288, 1724, 6, 404);
wall16 = new Rectangle(1820, 1724, 6, 37);
wall17 = new Rectangle(1631, 1733, 6, 28);
wall18 = new Rectangle(1655, 1210, 6, 67);
wall19 = new Rectangle(1081, 970, 6, 93);
wall20 = new Rectangle(1718, 465, 6, 170);
wall21 = new Rectangle(1753, 611, 6, 134);
wall22 = new Rectangle(603, 0, 6, 500);
wall23 = new Rectangle(894, 2115, 6, 30);
wall24 = new Rectangle(1180, 557, 12, 500); //Flame
Pillar 3
wall25 = new Rectangle(533, 705, 6, 218); //Door L
wall26 = new Rectangle(2816, 687, 6, 218); //Door R
wall27 = new Rectangle(0, 1733, 1632, 40);
wall28 = new Rectangle(0, 1691, 477, 40);
wall29 = new Rectangle(0, 1661, 395, 40);
wall30 = new Rectangle(0, 1616, 314, 40);
wall31 = new Rectangle(0, 1569, 263, 40);
wall32 = new Rectangle(0, 1512, 212, 40);
wall33 = new Rectangle(0, 1452, 149, 40);
wall34 = new Rectangle(0, 1403, 103, 40);
wall35 = new Rectangle(0, 1359, 46, 40);
#endregion
#region roof
roof1 = new Rectangle(894, 2116, 1393, 10);
roof2 = new Rectangle(0, 1726, 2524, 10);
roof3 = new Rectangle(868, 1327, 2526, 10);
roof4 = new Rectangle(0, 922, 2508, 10);
roof5 = new Rectangle(0, 525, 1269, 10);
roof6 = new Rectangle(2009, 525, 1385, 10);
roof7 = new Rectangle(0, 133, 3394, 10);
roof8 = new Rectangle(2349, 828, 1045, 10);
roof9 = new Rectangle(455, 745, 1262, 10);
roof10 = new Rectangle(0, 465, 1719, 10);
roof11 = new Rectangle(1718, 611, 1676, 10);
roof12 = new Rectangle(1070, 1067, 253, 10);
roof13 = new Rectangle(1470, 1071, 322, 10);
#endregion
toStage2e4 = false;
stageEndCT = 0;
cameraMaxX = 2107;
cameraMaxY = 1916;
cameraMinY = 40;
drgnX = 1360;
drgnY = 2412;
drgnFacingDir = 0;
drgnHitTimer = 0;
drgnDamageTaken = 0;
clawDir = 0;
breathDir = 0;
clawX = 127;
breathX = 110;
drgnFaceR = true;
stage2e4Left = false;
stage2e4Right = false;
e20X = 400;
#region puzzle
door1CT = 0;
door1Frame = 0;
door2CT = 0;
door2Frame = 0;
fire1Wait = 0;
fire1CT = 0;
fire1Frame = 0;
fire1Act = 0;
fire1Freeze = 0;
fire2Wait = 0;
fire2CT = 0;
fire2Frame = 0;
fire2Act = 0;
fire2Freeze = 0;
fire3Wait = 0;
fire3CT = 0;
fire3Frame = 0;
fire3Act = 0;
fire3Freeze = 0;
fire4Wait = 0;
fire4CT = 0;
fire4Frame = 0;
fire4Act = 0;
fire4Freeze = 0;
fire5Wait = 0;
fire5CT = 0;
fire5Frame = 0;
fire5Act = 0;
fire5Freeze = 0;
haveKey = false;
door1Open = false;
door2Open = false;
#endregion
#region whistle
whistleRandom = -1;
note1Measure = 0;
note1Beat = 0;
note1xPos = drgnX + 40;
note1yPos = drgnY + 40;
note1xVel = 3;
note1yVel = -2;
note2Measure = 0;
note2Beat = 0;
note2xPos = drgnX + 40;
note2yPos = drgnY + 40;
note2xVel = 3;
note2yVel = -2;
note3Measure = 0;
note3Beat = 0;
note3xPos = drgnX + 40;
note3yPos = drgnY + 40;
note3xVel = 3;
note3yVel = -2;
note4Measure = 0;
note4Beat = 0;
note4xPos = drgnX + 40;
note4yPos = drgnY + 40;
note4xVel = 3;
note4yVel = -2;
#endregion
#region enemies
//swordmaster
#region e1
e1spawn = true;
e1CT = 0;
e1timer = 0;
e1HP = 45;
e1armor = 1;
e1X = 2246;
e1Y = 1573;
e1act = 0;
e1facing = 0;
e1frame = 0;
e1Opacity = 255;
e1invTimer = 0;
e1knockbackTimer = 0;
e1projHeight = 0;
e1projWidth = 0;
e1hitTimer = 0;
e1invBlink = 255;
e1Attack = 3;
e1FireVul = 0;
e1BoltVul = 0;
e1AcidVul = 0;
e1faceR = false;
e1invulnerable = false;
e1knockback = false;
e1knockbackRes = false;
e1onGround = true;
e1proximity = false;
e1touchWallL = false;
e1touchWallR = false;
e1breathhit = false;
e1clawhit = false;
e1frozen = false;
e1peaceful = false;
e1frRes = false;
e1BurnVul = false;
e1ShockVul = false;
e1peaceRes = false;
e1coins = false;
e1smoke = false;
e1smokeCT = 0;
e1coinValue = 0;
e1coinType = 0;
e1altAnimCT = 0;
#endregion
//sax
#region e2
e2spawn = true;
e2CT = 0;
e2timer = 0;
e2HP = 17;
e2armor = 0;
e2X = 1600;
e2Y = 764;
e2act = 0;
e2facing = 0;
e2frame = 0;
e2Opacity = 255;
e2invTimer = 0;
e2knockbackTimer = 0;
e2projHeight = 0;
e2projWidth = 0;
e2hitTimer = 0;
e2invBlink = 255;
e2Attack = 1;
e2FireVul = 2;
e2BoltVul = 0;
e2AcidVul = 0;
e2faceR = false;
e2invulnerable = false;
e2knockback = false;
e2knockbackRes = false;
e2onGround = true;
e2proximity = false;
e2touchWallL = false;
e2touchWallR = false;
e2breathhit = false;
e2clawhit = false;
e2frozen = false;
e2peaceful = false;
e2frRes = false;
e2BurnVul = true;
e2ShockVul = false;
e2peaceRes = false;
e2coins = false;
e2smoke = false;
e2smokeCT = 0;
e2coinValue = 30;
e2coinType = 0;
e2altAnimCT = 0;
#endregion
//trombone
#region e3
e3spawn = true;
e3CT = 0;
e3timer = 0;
e3HP = 26;
e3armor = 0;
e3X = 1141;
e3Y = 764;
e3act = 0;
e3facing = 0;
e3frame = 0;
e3Opacity = 255;
e3invTimer = 0;
e3knockbackTimer = 0;
e3projHeight = 0;
e3projWidth = 0;
e3hitTimer = 0;
e3invBlink = 255;
e3Attack = 1;
e3FireVul = 2;
e3BoltVul = 0;
e3AcidVul = 0;
e3faceR = false;
e3invulnerable = false;
e3knockback = false;
e3knockbackRes = false;
e3onGround = true;
e3proximity = false;
e3touchWallL = false;
e3touchWallR = false;
e3breathhit = false;
e3clawhit = false;
e3frozen = false;
e3peaceful = false;
e3frRes = false;
e3BurnVul = true;
e3ShockVul = false;
e3peaceRes = false;
e3coins = false;
e3smoke = false;
e3smokeCT = 0;
e3coinValue = 60;
e3coinType = 0;
e3altAnimCT = 0;
#endregion
//tuba
#region e4
e4spawn = true;
e4CT = 0;
e4timer = 0;
e4reload = 121;
e4HP = 25;
e4armor = 0;
e4X = 2010;
e4Y = 764;
e4act = 0;
e4facing = 0;
e4frame = 0;
e4Opacity = 255;
e4invTimer = 0;
e4knockbackTimer = 0;
e4projHeight = 0;
e4projWidth = 0;
e4hitTimer = 0;
e4invBlink = 255;
e4Attack = 1;
e4FireVul = 2;
e4BoltVul = 0;
e4AcidVul = 0;
e4faceR = false;
e4invulnerable = false;
e4knockback = false;
e4knockbackRes = false;
e4onGround = true;
e4proximity = false;
e4touchWallL = false;
e4touchWallR = false;
e4breathhit = false;
e4clawhit = false;
e4frozen = false;
e4peaceful = false;
e4frRes = false;
e4BurnVul = true;
e4ShockVul = false;
e4peaceRes = false;
e4coins = false;
e4smoke = false;
e4smokeCT = 0;
e4coinValue = 40;
e4coinType = 0;
e4altAnimCT = 0;
#endregion
//handler - land
#region e5
e5spawn = true;
e5CT = 0;
e5timer = 0;
e5HP = 12;
e5armor = 0;
e5X = 1304;
e5Y = 1973;
e5projA_X = 10155;
e5projA_Y = 1922;
e5act = 0;
e5facing = 0;
e5frame = 0;
e5Opacity = 255;
e5invTimer = 0;
e5knockbackTimer = 0;
e5projHeight = 0;
e5projWidth = 0;
e5hitTimer = 0;
e5invBlink = 255;
e5Attack = 1;
e5FireVul = 0;
e5BoltVul = 1;
e5AcidVul = 0;
e5faceR = false;
e5invulnerable = false;
e5knockback = false;
e5knockbackRes = false;
e5onGround = true;
e5proximity = false;
e5touchWallL = false;
e5touchWallR = false;
e5breathhit = false;
e5clawhit = false;
e5frozen = false;
e5peaceful = false;
e5frRes = false;
e5BurnVul = false;
e5ShockVul = false;
e5peaceRes = false;
e5coins = false;
e5smoke = false;
e5smokeCT = 0;
e5coinValue = 40;
e5coinType = 0;
e5altAnimCT = 0;
#endregion
//heavy CD
#region e6
e6spawn = true;
e6CT = 0;
e6timer = 0;
e6HP = 12;
e6armor = 2;
e6X = 900;
e6Y = 1184;
e6act = 0;
e6facing = 0;
e6frame = 0;
e6Opacity = 255;
e6invTimer = 0;
e6knockbackTimer = 0;
e6hitTimer = 0;
e6invBlink = 255;
e6Attack = 1;
e6FireVul = 0;
e6BoltVul = 0;
e6AcidVul = 2;
e6faceR = false;
e6invulnerable = false;
e6knockback = false;
e6knockbackRes = false;
e6onGround = true;
e6proximity = false;
e6touchWallL = false;
e6touchWallR = false;
e6breathhit = false;
e6clawhit = false;
e6frozen = false;
e6peaceful = false;
e6frRes = false;
e6BurnVul = false;
e6ShockVul = false;
e6peaceRes = false;
e6coins = false;
e6smoke = false;
e6smokeCT = 0;
e6coinValue = 30;
e6coinType = 0;
e6altAnimCT = 0;
#endregion
//archer
#region e7
e7spawn = true;
e7CT = 0;
e7timer = 0;
e7HP = 5;
e7armor = 0;
e7X = 1050;
e7Y = 1184;
e7act = 0;
e7facing = 0;
e7frame = 0;
e7Opacity = 255;
e7invTimer = 0;
e7knockbackTimer = 0;
e7hitTimer = 0;
e7invBlink = 255;
e7Attack = 1;
e7FireVul = 0;
e7BoltVul = 0;
e7AcidVul = 0;
e7faceR = false;
e7invulnerable = false;
e7knockback = false;
e7knockbackRes = false;
e7onGround = true;
e7proximity = false;
e7touchWallL = false;
e7touchWallR = false;
e7breathhit = false;
e7clawhit = false;
e7frozen = false;
e7peaceful = false;
e7frRes = false;
e7BurnVul = true;
e7ShockVul = false;
e7peaceRes = false;
e7coins = false;
e7smoke = false;
e7smokeCT = 0;
e7coinValue = 40;
e7coinType = 0;
e7altAnimCT = 0;
#endregion
//security
#region e8
e8spawn = true;
e8CT = 0;
e8timer = 0;
e8HP = 99;
e8armor = 99;
e8X = 809;
e8Y = 1585;
e8projA_X = 2800;
e8projA_Y = 1657;
e8act = 0;
e8facing = 0;
e8frame = 0;
e8Opacity = 255;
e8invTimer = 0;
e8knockbackTimer = 0;
e8projHeight = 0;
e8projWidth = 0;
e8hitTimer = 0;
e8invBlink = 255;
e8Attack = 2;
e8FireVul = 0;
e8BoltVul = 0;
e8AcidVul = 0;
e8faceR = false;
e8invulnerable = false;
e8knockback = false;
e8knockbackRes = true;
e8onGround = true;
e8proximity = false;
e8touchWallL = false;
e8touchWallR = false;
e8breathhit = false;
e8clawhit = false;
e8frozen = false;
e8peaceful = false;
e8frRes = false;
e8BurnVul = false;
e8ShockVul = false;
e8peaceRes = true;
e8coins = false;
e8smoke = false;
e8smokeCT = 0;
e8coinValue = 0;
e8coinType = 0;
e8altAnimCT = 0;
#endregion
#region e9
e9spawn = true;
e9CT = 0;
e9timer = 0;
e9HP = 99;
e9armor = 99;
e9X = 1570;
e9Y = 918;
e9projA_X = 2800;
e9projA_Y = 990;
e9act = 0;
e9facing = 0;
e9frame = 0;
e9Opacity = 255;
e9invTimer = 0;
e9knockbackTimer = 0;
e9projHeight = 0;
e9projWidth = 0;
e9hitTimer = 0;
e9invBlink = 255;
e9Attack = 2;
e9FireVul = 0;
e9BoltVul = 0;
e9AcidVul = 0;
e9faceR = false;
e9invulnerable = false;
e9knockback = false;
e9knockbackRes = true;
e9onGround = true;
e9proximity = false;
e9touchWallL = false;
e9touchWallR = false;
e9breathhit = false;
e9clawhit = false;
e9frozen = false;
e9peaceful = false;
e9frRes = false;
e9BurnVul = false;
e9ShockVul = false;
e9peaceRes = true;
e9coins = false;
e9smoke = false;
e9smokeCT = 0;
e9coinValue = 0;
e9coinType = 0;
e9altAnimCT = 0;
#endregion
#endregion
stage2e4 = true;
}
#endregion
#region toStage 2-B
if (toStage2eB == true)
{
drawStages = new DrawStages(10, stageManager);
drawSky = new DrawSky(1, stageManager);
loadCaptain = new LoadCaptain(true, stageManager);
playStageMusic = new PlayStageMusic(9, stageBGM);
#region floor
floor1 = new Rectangle(0, 570, 779, 10);
floor2 = new Rectangle(778, 530, 551, 10);
#endregion
#region wall
wall1 = new Rectangle(-12, -2000, 6, 4000);
wall2 = new Rectangle(780, 535, 6, 41);
wall3 = new Rectangle(1282, -2000, 6, 4000);
#endregion
toStage2eB = false;
stageEndCT = 0;
cameraMaxX = 0;
cameraMaxY = 0;
drgnX = 993;
drgnY = 387;
drgnFacingDir = 13;
clawDir = 2;
breathDir = 6;
clawX = -80 - clawhitboxmod;
breathX = -196;
drgnFaceR = false;
#region whistle
whistleRandom = -1;
note1Measure = 0;
note1Beat = 0;
note1xPos = drgnX + 40;
note1yPos = drgnY + 40;
note1xVel = -3;
note1yVel = -2;
note2Measure = 0;
note2Beat = 0;
note2xPos = drgnX + 40;
note2yPos = drgnY + 40;
note2xVel = -3;
note2yVel = -2;
note3Measure = 0;
note3Beat = 0;
note3xPos = drgnX + 40;
note3yPos = drgnY + 40;
note3xVel = -3;
note3yVel = -2;
note4Measure = 0;
note4Beat = 0;
note4xPos = drgnX + 40;
note4yPos = drgnY + 40;
note4xVel = -3;
note4yVel = -2;
#endregion
#region Boss 2 Variables
shipExplosionCT = 0;
captainCT = 0;
captainFrame = 0;
captainAct = 0;
captainInvBlink = 255;
captainInvCounter = 0;
rocket1Z = 0;
rocket2Z = 0;
rocket3Z = 0;
rocket4Z = 0;
shipHP = 60;
captainAttackSide = false;
captainAttackTop = false;
captainAttackLaser = false;
standOnRocket = false;
rocketStandVel = 0;
captainReload = 0;
captainRNG = 0;
smoke1CT = 0;
smoke1Frame = 0;
smoke1Act = 0;
rocketDiag1X = 0;
rocketDiag1Y = 0;
smoke1On = false;
rocketDiag1X = 0;
rocketDiag1Y = 0;
rocketDiag1On = false;
smoke2CT = 0;
smoke2Frame = 0;
smoke2Act = 0;
rocketDiag2X = 0;
rocketDiag2Y = 0;
smoke2On = false;
rocketDiag2On = false;
smoke3CT = 0;
smoke3Frame = 0;
smoke3Act = 0;
rocketDiag3X = 0;
rocketDiag3Y = 0;
smoke3On = false;
rocketDiag3On = false;
smoke4CT = 0;
smoke4Frame = 0;
smoke4Act = 0;
rocketDiag4X = 0;
rocketDiag4Y = 0;
smoke4On = false;
rocketDiag4On = false;
rocket1Atk = 2;
rocket1CT = 0;
rocket1Frame = 0;
rocket1Act = 0;
rocket1Vel = 0;
rocket1VelTimer = 0;
rocket1On = false;
rocket1Move = false;
rocket2Atk = 2;
rocket2CT = 0;
rocket2Frame = 0;
rocket2Act = 0;
rocket2Vel = 0;
rocket2VelTimer = 0;
rocket2On = false;
rocket2Move = false;
rocket3Atk = 2;
rocket3CT = 0;
rocket3Frame = 0;
rocket3Act = 0;
rocket3Vel = 0;
rocket3VelTimer = 0;
rocket3On = false;
rocket3Move = false;
rocket4Atk = 2;
rocket4CT = 0;
rocket4Frame = 0;
rocket4Act = 0;
rocket4Vel = 0;
rocket4VelTimer = 0;
rocket4On = false;
rocket4Move = false;
rocket1X = 0;
rocket1Y = 0;
rocket2X = 0;
rocket2Y = 0;
rocket3X = 0;
rocket3Y = 0;
rocket4X = 0;
rocket4Y = 0;
scanAtk = 8;
scanCounter = 0;
scanLaserCT = 0;
scanLaserFrame = 0;
scanLaserX = 0;
scanLaserY = 0;
scanLaserOn = false;
trackerCT = 0;
trackerFrame = 0;
trackerVerticalX = 0;
trackerVerticalY = 0;
trackerHorizontalX = 0;
trackerHorizontalY = 0;
trackerOn = false;
#endregion
stage2eB = true;
}
#endregion
#region toStage 3-1
if (toStage3e1 == true)
{
drawStages = new DrawStages(11, stageManager);
drawSky = new DrawSky(3, stageManager);
loadOcean = new LoadOcean(2, stageManager);
loadHazmat = new LoadHazmat(true, stageManager);
loadLancer = new LoadLancer(true, stageManager);
loadCD = new LoadCD(true, stageManager);
loadArcher = new LoadArcher(true, stageManager);
loadToxicball = new LoadToxicball(true, stageManager);
npc3e1 = new Npc3e1(true, stageManager);
loopAcid = new LoopAcid(true, breathSFX);
playStageMusic = new PlayStageMusic(5, stageBGM);
drawTreasureText = new DrawTreasureText(8, stageManager,
languageType);
puzzleBoat = new PuzzleBoat(true, stageManager);
if (on2e2 == false && on3e2 == false)
{
tutorialOn = true;
}
#region floor
floor1 = new Rectangle(9305, 1303, 190, 20);
floor2 = new Rectangle(9252, 1327, 53, 20);
floor3 = new Rectangle(9221, 1369, 84, 20);
floor4 = new Rectangle(9177, 1417, 130, 20);
floor5 = new Rectangle(9125, 1467, 182, 20);
floor6 = new Rectangle(9067, 1519, 242, 20);
floor7 = new Rectangle(9026, 1574, 284, 20);
floor8 = new Rectangle(8974, 1630, 336, 20);
floor9 = new Rectangle(8921, 1676, 390, 20);
floor10 = new Rectangle(8764, 1719, 548, 20);
floor11 = new Rectangle(0, 1791, 10000, 20); // ACID
LAYER
floor12 = new Rectangle(5620, 1732, 1025, 20);
floor13 = new Rectangle(5980, 1707, 268, 20);
floor14 = new Rectangle(5963, 1658, 259, 20);
floor15 = new Rectangle(5954, 1604, 210, 20);
floor16 = new Rectangle(5938, 1549, 183, 20);
floor17 = new Rectangle(5924, 1501, 148, 20);
floor18 = new Rectangle(5905, 1445, 114, 20);
floor19 = new Rectangle(5897, 1393, 81, 20);
floor20 = new Rectangle(5888, 1349, 64, 20);
floor21 = new Rectangle(6169, 1310, 2773, 20);
floor22 = new Rectangle(4670, 1333, 1222, 20);
floor23 = new Rectangle(4154, 1333, 254, 20);
floor24 = new Rectangle(3519, 1333, 578, 20);
floor25 = new Rectangle(507, 1333, 2862, 20);
floor26 = new Rectangle(0, 1741, 659, 20);
floor27 = new Rectangle(224, 1656, 327, 20);
floor28 = new Rectangle(225, 1587, 278, 20);
floor29 = new Rectangle(225, 1526, 218, 20);
floor30 = new Rectangle(222, 1462, 170, 20);
floor31 = new Rectangle(219, 1407, 120, 20);
floor32 = new Rectangle(220, 1351, 61, 20);
floor33 = new Rectangle(0, 1318, 223, 20);
#endregion
#region temp wall
L1 = new Rectangle(6157, 1315, 6, 20);
L2 = new Rectangle(4658, 1338, 6, 20);
L3 = new Rectangle(4142, 1338, 6, 20);
L4 = new Rectangle(3507, 1338, 6, 20);
L5 = new Rectangle(495, 1338, 6, 20);
R1 = new Rectangle(8954, 1315, 6, 20);
R2 = new Rectangle(5904, 1338, 6, 20);
R3 = new Rectangle(4420, 1338, 6, 20);
R4 = new Rectangle(4109, 1338, 6, 20);
R5 = new Rectangle(3381, 1338, 6, 20);
#endregion
#region wall
wall1 = new Rectangle(9312, 1308, 6, 417);
wall2 = new Rectangle(6174, 1315, 6, 40);
wall3 = new Rectangle(8929, 1315, 6, 40);
wall4 = new Rectangle(5891, 1338, 6, 40);
wall5 = new Rectangle(220, 1323, 6, 424);
wall6 = new Rectangle(512, 1338, 6, 40);
wall7 = new Rectangle(0, 0, 6, 4000);
wall8 = new Rectangle(8749, 1724, 6, 1000);
wall9 = new Rectangle(6635, 1737, 6, 1000);
wall10 = new Rectangle(5625, 1737, 6, 1000);
wall11 = new Rectangle(650, 1746, 6, 1000);
wall12 = new Rectangle(285, 1356, 6, 1000);
wall13 = new Rectangle(343, 1412, 6, 1000);
wall14 = new Rectangle(396, 1477, 6, 1000);
wall15 = new Rectangle(447, 1531, 6, 1000);
wall16 = new Rectangle(507, 1592, 6, 1000);
wall17 = new Rectangle(555, 1661, 6, 1000);
wall18 = new Rectangle(9257, 1332, 6, 1000);
wall19 = new Rectangle(9226, 1374, 6, 1000);
wall20 = new Rectangle(9182, 1422, 6, 1000);
wall21 = new Rectangle(9130, 1472, 6, 1000);
wall22 = new Rectangle(9072, 1524, 6, 1000);
wall23 = new Rectangle(9031, 1579, 6, 1000);
wall24 = new Rectangle(8979, 1635, 6, 1000);
wall25 = new Rectangle(8926, 1681, 6, 1000);
wall26 = new Rectangle(9510, 0, 200, 2000);
#endregion
#region roof
roof1 = new Rectangle(1619, 1320, 2773, 10);
roof2 = new Rectangle(4670, 1333, 1222, 10);
roof3 = new Rectangle(507, 1336, 2862, 10);
#endregion
toStage3e1 = false;
stageEndCT = 0;
cameraMaxX = 8187;
cameraMaxY = 1160;
drgnX = 9310;
drgnY = 1160;
drgnFacingDir = 13;
clawDir = 2;
breathDir = 6;
clawX = -80 - clawhitboxmod;
breathX = -196;
drgnFaceR = false;
#region whistle
whistleRandom = -1;
note1Measure = 0;
note1Beat = 0;
note1xPos = drgnX + 40;
note1yPos = drgnY + 40;
note1xVel = -3;
note1yVel = -2;
note2Measure = 0;
note2Beat = 0;
note2xPos = drgnX + 40;
note2yPos = drgnY + 40;
note2xVel = -3;
note2yVel = -2;
note3Measure = 0;
note3Beat = 0;
note3xPos = drgnX + 40;
note3yPos = drgnY + 40;
note3xVel = -3;
note3yVel = -2;
note4Measure = 0;
note4Beat = 0;
note4xPos = drgnX + 40;
note4yPos = drgnY + 40;
note4xVel = -3;
note4yVel = -2;
#endregion
#region enemies
//archer
#region e1
e1spawn = true;
e1CT = 0;
e1timer = 0;
e1HP = 5;
e1armor = 0;
e1X = 1457;
e1Y = 1178;
e1act = 0;
e1facing = 0;
e1frame = 0;
e1Opacity = 255;
e1invTimer = 0;
e1knockbackTimer = 0;
e1hitTimer = 0;
e1invBlink = 255;
e1Attack = 1;
e1FireVul = 0;
e1BoltVul = 0;
e1AcidVul = 0;
e1faceR = false;
e1invulnerable = false;
e1knockback = false;
e1knockbackRes = false;
e1onGround = true;
e1proximity = false;
e1touchWallL = false;
e1touchWallR = false;
e1breathhit = false;
e1clawhit = false;
e1frozen = false;
e1peaceful = false;
e1frRes = false;
e1BurnVul = true;
e1ShockVul = false;
e1peaceRes = false;
e1coins = false;
e1smoke = false;
e1smokeCT = 0;
e1coinValue = 40;
e1coinType = 0;
e1altAnimCT = 0;
#endregion
#region e4
e4spawn = true;
e4CT = 0;
e4timer = 0;
e4HP = 5;
e4armor = 0;
e4X = 6467;
e4Y = 1589;
e4act = 0;
e4facing = 0;
e4frame = 0;
e4Opacity = 255;
e4invTimer = 0;
e4knockbackTimer = 0;
e4hitTimer = 0;
e4invBlink = 255;
e4Attack = 1;
e4FireVul = 0;
e4BoltVul = 0;
e4AcidVul = 0;
e4faceR = false;
e4invulnerable = false;
e4knockback = false;
e4knockbackRes = false;
e4onGround = true;
e4proximity = false;
e4touchWallL = false;
e4touchWallR = false;
e4breathhit = false;
e4clawhit = false;
e4frozen = false;
e4peaceful = false;
e4frRes = false;
e4BurnVul = true;
e4ShockVul = false;
e4peaceRes = false;
e4coins = false;
e4smoke = false;
e4smokeCT = 0;
e4coinValue = 40;
e4coinType = 0;
e4altAnimCT = 0;
#endregion
//heavy CD
#region e2
e2spawn = true;
e2CT = 0;
e2timer = 0;
e2HP = 12;
e2armor = 2;
e2X = 1607;
e2Y = 1178;
e2act = 0;
e2facing = 0;
e2frame = 0;
e2Opacity = 255;
e2invTimer = 0;
e2knockbackTimer = 0;
e2hitTimer = 0;
e2invBlink = 255;
e2Attack = 1;
e2FireVul = 0;
e2BoltVul = 0;
e2AcidVul = 2;
e2faceR = false;
e2invulnerable = false;
e2knockback = false;
e2knockbackRes = false;
e2onGround = true;
e2proximity = false;
e2touchWallL = false;
e2touchWallR = false;
e2breathhit = false;
e2clawhit = false;
e2frozen = false;
e2peaceful = false;
e2frRes = false;
e2BurnVul = false;
e2ShockVul = false;
e2peaceRes = false;
e2coins = false;
e2smoke = false;
e2smokeCT = 0;
e2coinValue = 50;
e2coinType = 0;
e2altAnimCT = 0;
#endregion
//lancer
#region e3
e3spawn = true;
e3CT = 0;
e3timer = 0;
e3HP = 28;
e3armor = 0;
e3X = 8000;
e3Y = 1167;
e3reload = 120;
e3act = 0;
e3facing = 0;
e3frame = 0;
e3Opacity = 255;
e3invTimer = 0;
e3knockbackTimer = 0;
e3projHeight = 0;
e3projWidth = 0;
e3hitTimer = 0;
e3invBlink = 255;
e3Attack = 1;
e3FireVul = 0;
e3BoltVul = 1;
e3AcidVul = 0;
e3faceR = false;
e3invulnerable = false;
e3knockback = false;
e3knockbackRes = false;
e3onGround = true;
e3proximity = false;
e3touchWallL = false;
e3touchWallR = false;
e3breathhit = false;
e3clawhit = false;
e3frozen = false;
e3peaceful = false;
e3frRes = true;
e3BurnVul = false;
e3ShockVul = false;
e3peaceRes = true;
e3coins = false;
e3smoke = false;
e3smokeCT = 0;
e3coinValue = 110;
e3coinType = 0;
e3altAnimCT = 0;
#endregion
//hazmat
#region e6
e6spawn = true;
e6CT = 0;
e6timer = 0;
e6HP = 16;
e6armor = 0;
e6X = 8200;
e6Y = 1172;
e6act = 1;
e6facing = 6;
e6frame = 0;
e6Opacity = 255;
e6invTimer = 0;
e6knockbackTimer = 0;
e6projHeight = 0;
e6projWidth = 0;
e6hitTimer = 0;
e6invBlink = 255;
e6Attack = 1;
e6FireVul = 1;
e6BoltVul = 0;
e6AcidVul = 0;
e6faceR = true;
e6invulnerable = false;
e6knockback = false;
e6knockbackRes = false;
e6onGround = true;
e6proximity = false;
e6touchWallL = false;
e6touchWallR = false;
e6breathhit = false;
e6clawhit = false;
e6frozen = false;
e6peaceful = false;
e6frRes = false;
e6BurnVul = false;
e6ShockVul = false;
e6peaceRes = true;
e6coins = false;
e6smoke = false;
e6smokeCT = 0;
e6coinValue = 40;
e6coinType = 0;
e6altAnimCT = 0;
#endregion
#region e7
e7spawn = true;
e7CT = 0;
e7timer = 0;
e7HP = 16;
e7armor = 0;
e7X = 5600;
e7Y = 1190;
e7act = 1;
e7facing = 6;
e7frame = 0;
e7Opacity = 255;
e7invTimer = 0;
e7knockbackTimer = 0;
e7projHeight = 0;
e7projWidth = 0;
e7hitTimer = 0;
e7invBlink = 255;
e7Attack = 1;
e7FireVul = 1;
e7BoltVul = 0;
e7AcidVul = 0;
e7faceR = true;
e7invulnerable = false;
e7knockback = false;
e7knockbackRes = false;
e7onGround = true;
e7proximity = false;
e7touchWallL = false;
e7touchWallR = false;
e7breathhit = false;
e7clawhit = false;
e7frozen = false;
e7peaceful = false;
e7frRes = false;
e7BurnVul = false;
e7ShockVul = false;
e7peaceRes = true;
e7coins = false;
e7smoke = false;
e7smokeCT = 0;
e7coinValue = 60;
e7coinType = 0;
e7altAnimCT = 0;
#endregion
#region e8
e8spawn = true;
e8CT = 0;
e8timer = 0;
e8HP = 16;
e8armor = 0;
e8X = 2700;
e8Y = 1178;
e8act = 1;
e8facing = 6;
e8frame = 0;
e8Opacity = 255;
e8invTimer = 0;
e8knockbackTimer = 0;
e8projHeight = 0;
e8projWidth = 0;
e8hitTimer = 0;
e8invBlink = 255;
e8Attack = 1;
e8FireVul = 1;
e8BoltVul = 0;
e8AcidVul = 0;
e8faceR = true;
e8invulnerable = false;
e8knockback = false;
e8knockbackRes = false;
e8onGround = true;
e8proximity = false;
e8touchWallL = false;
e8touchWallR = false;
e8breathhit = false;
e8clawhit = false;
e8frozen = false;
e8peaceful = false;
e8frRes = false;
e8BurnVul = false;
e8ShockVul = false;
e8peaceRes = true;
e8coins = false;
e8smoke = false;
e8smokeCT = 0;
e8coinValue = 40;
e8coinType = 0;
e8altAnimCT = 0;
#endregion
#endregion
#region obstacles
obs1Wait = 180;
obs2Wait = 120;
obs3Wait = 60;
obs4Wait = 0;
obs5Wait = 180;
obs6Wait = 120;
obs7Wait = 160;
obs8Wait = 0;
obs9Wait = 180;
obs10Wait = 120;
#endregion
stage3e1 = true;
}
#endregion
#region toStage 3-2
if (toStage3e2 == true)
{
drawStages = new DrawStages(12, stageManager);
drawSky = new DrawSky(3, stageManager);
loadSwordmaster = new LoadSwordmaster(true,
stageManager);
loadXX = new LoadXX(true, stageManager);
loadCD = new LoadCD(true, stageManager);
loadTuba = new LoadTuba(true, stageManager);
loadLancer = new LoadLancer(true, stageManager);
loadHazmat = new LoadHazmat(true, stageManager);
playStageMusic = new PlayStageMusic(5, stageBGM);
loopFlame = new LoopFlame(true, breathSFX);
loopAcid = new LoopAcid(true, breathSFX);
loopFlameAtk = new LoopFlameAtk(true, breathSFX);
loopSpin = new LoopSpin(true, breathSFX);
loopFireBreathAlt = new LoopFireBreathAlt(true,
breathSFX);
drawTreasureText = new DrawTreasureText(9, stageManager,
languageType);
puzzleFlamewall = new PuzzleFlamewall(true,
stageManager);
#region floor
#region 1-10
floor1 = new Rectangle(9438, 1805, 738, 20);
floor2 = new Rectangle(8971, 1900, 475, 20);
floor3 = new Rectangle(8224, 1802, 753, 20);
floor4 = new Rectangle(7621, 1900, 608, 20);
floor5 = new Rectangle(6912, 1801, 718, 20);
floor6 = new Rectangle(6779, 1894, 140, 20);
floor7 = new Rectangle(5846, 1802, 940, 20);
floor8 = new Rectangle(4520, 1902, 1338, 20);
floor9 = new Rectangle(2856, 1820, 1670, 20);
floor10 = new Rectangle(2342, 1748, 572, 20);
#endregion
#region 11-20
floor11 = new Rectangle(2079, 1831, 315, 20);
floor12 = new Rectangle(1974, 1692, 158, 20);
floor13 = new Rectangle(1592, 1784, 398, 20);
floor14 = new Rectangle(1404, 1693, 206, 20);
floor15 = new Rectangle(1458, 1932, 614, 20);
floor16 = new Rectangle(0, 1844, 1466, 20);
floor17 = new Rectangle(8680, 1670, 189, 20);
floor18 = new Rectangle(8545, 1514, 142, 20);
floor19 = new Rectangle(8131, 1348, 427, 20);
floor20 = new Rectangle(8006, 1506, 152, 20);
#endregion
#region 21-30
floor21 = new Rectangle(7603, 1654, 552, 20);
floor22 = new Rectangle(7603, 1505, 177, 20);
floor23 = new Rectangle(8087, 1210, 231, 20);
floor24 = new Rectangle(8385, 1061, 159, 20);
floor25 = new Rectangle(8087, 1057, 109, 20);
floor26 = new Rectangle(7891, 914, 225, 20);
floor27 = new Rectangle(7590, 1214, 335, 20);
floor28 = new Rectangle(7348, 1364, 245, 20);
floor29 = new Rectangle(7168, 1214, 210, 20);
floor30 = new Rectangle(6833, 1068, 287, 20);
#endregion
#region 31-40
floor31 = new Rectangle(7217, 907, 421, 20);
floor32 = new Rectangle(7622, 764, 220, 20);
floor33 = new Rectangle(6397, 761, 680, 20);
floor34 = new Rectangle(6244, 911, 167, 20);
floor35 = new Rectangle(5935, 1067, 206, 20);
floor36 = new Rectangle(5935, 1209, 537, 20);
floor37 = new Rectangle(5546, 1502, 1645, 20);
floor38 = new Rectangle(5772, 1361, 214, 20);
floor39 = new Rectangle(4390, 1220, 1184, 20);
floor40 = new Rectangle(4757, 1061, 213, 20);
#endregion
#region 41-50
floor41 = new Rectangle(4924, 918, 493, 20);
floor42 = new Rectangle(4724, 763, 278, 20);
floor43 = new Rectangle(4932, 624, 277, 20);
floor44 = new Rectangle(4180, 477, 594, 20);
floor45 = new Rectangle(4051, 622, 546, 20);
floor46 = new Rectangle(4220, 763, 507, 20);
floor47 = new Rectangle(4048, 924, 538, 20);
floor48 = new Rectangle(4182, 1071, 535, 20);
floor49 = new Rectangle(3416, 1367, 990, 20);
floor50 = new Rectangle(3076, 1238, 388, 20);
#endregion
#region 51-60
floor51 = new Rectangle(3074, 1075, 170, 20);
floor52 = new Rectangle(3254, 932, 183, 20);
floor53 = new Rectangle(2674, 779, 440, 20);
floor54 = new Rectangle(3410, 608, 486, 20);
floor55 = new Rectangle(1615, 502, 1459, 20);
floor56 = new Rectangle(1852, 643, 438, 20);
floor57 = new Rectangle(2011, 792, 424, 20);
floor58 = new Rectangle(1865, 941, 420, 20);
floor59 = new Rectangle(1814, 1090, 610, 20);
floor60 = new Rectangle(1663, 1237, 1024, 20);
#endregion
#region 61-70
floor61 = new Rectangle(1027, 941, 838, 20);
floor62 = new Rectangle(1182, 802, 161, 20);
floor63 = new Rectangle(1024, 650, 205, 20);
floor64 = new Rectangle(769, 512, 289, 20);
floor65 = new Rectangle(639, 651, 216, 20);
floor66 = new Rectangle(413, 511, 233, 20);
floor67 = new Rectangle(787, 805, 219, 20);
floor68 = new Rectangle(632, 952, 229, 20);
floor69 = new Rectangle(774, 1106, 242, 20);
floor70 = new Rectangle(627, 1261, 222, 20);
#endregion
#region 71-73
floor71 = new Rectangle(828, 1400, 121, 20);
floor72 = new Rectangle(933, 1563, 140, 20);
floor73 = new Rectangle(1059, 1690, 135, 20);
#endregion
#endregion
#region temp wall
L1 = new Rectangle(8373, 1066, 6, 20);
L2 = new Rectangle(7205, 912, 6, 20);
L3 = new Rectangle(6232, 916, 6, 20);
L4 = new Rectangle(5760, 1366, 6, 20);
L5 = new Rectangle(4912, 923, 6, 20);
L6 = new Rectangle(4920, 629, 6, 20);
L7 = new Rectangle(4168, 482, 6, 20);
L8 = new Rectangle(4208, 768, 6, 20);
L9 = new Rectangle(3242, 937, 6, 20);
L10 = new Rectangle(1802, 1095, 6, 20);
L11 = new Rectangle(1999, 797, 6, 20);
L12 = new Rectangle(1170, 807, 6, 20);
L13 = new Rectangle(757, 517, 6, 20);
L14 = new Rectangle(401, 516, 6, 20);
L15 = new Rectangle(775, 810, 6, 20);
L16 = new Rectangle(762, 1111, 6, 20);
R1 = new Rectangle(7792, 1510, 6, 20);
R2 = new Rectangle(8330, 1215, 6, 20);
R3 = new Rectangle(8208, 1062, 6, 20);
R4 = new Rectangle(7132, 1073, 6, 20);
R5 = new Rectangle(7089, 766, 6, 20);
R6 = new Rectangle(6153, 1072, 6, 20);
R7 = new Rectangle(4982, 1066, 6, 20);
R8 = new Rectangle(5014, 768, 6, 20);
R9 = new Rectangle(4609, 627, 6, 20);
R10 = new Rectangle(4598, 929, 6, 20);
R11 = new Rectangle(3256, 1080, 6, 20);
R12 = new Rectangle(2302, 648, 6, 20);
R13 = new Rectangle(2299, 946, 6, 20);
R14 = new Rectangle(1241, 655, 6, 20);
R15 = new Rectangle(867, 656, 6, 20);
R16 = new Rectangle(873, 957, 6, 20);
R17 = new Rectangle(1218, 1695, 6, 20);
#endregion
#region wall
wall1 = new Rectangle(9439, 1810, 6, 96);
wall2 = new Rectangle(8973, 1807, 6, 99);
wall3 = new Rectangle(8226, 1807, 6, 99);
wall4 = new Rectangle(7625, 1806, 6, 100);
wall5 = new Rectangle(6914, 1806, 6, 94);
wall6 = new Rectangle(6781, 1807, 6, 93);
wall7 = new Rectangle(5850, 1807, 6, 101);
wall8 = new Rectangle(4522, 1825, 6, 83);
wall9 = new Rectangle(2900, 1753, 6, 73);
wall10 = new Rectangle(2349, 1753, 6, 84);
wall11 = new Rectangle(2083, 1836, 6, 102);
wall12 = new Rectangle(2122, 1697, 6, 140);
wall13 = new Rectangle(1979, 1697, 6, 68);
wall14 = new Rectangle(1600, 1698, 6, 72);
wall15 = new Rectangle(1460, 1849, 6, 89);
wall16 = new Rectangle(1038, 1568, 6, 218);
wall17 = new Rectangle(10186, 0, 6, 3000);
wall18 = new Rectangle(912, 1405, 6, 164);
wall19 = new Rectangle(808, 1266, 6, 140);
wall20 = new Rectangle(607, 516, 6, 751);
wall21 = new Rectangle(1005, 517, 6, 595);
wall22 = new Rectangle(1362, 0, 6, 803);
wall23 = new Rectangle(1628, 507, 6, 248);
wall24 = new Rectangle(1848, 648, 6, 299);
wall25 = new Rectangle(1643, 947, 6, 297);
wall26 = new Rectangle(2443, 507, 6, 589);
wall27 = new Rectangle(2694, 507, 6, 100);
wall28 = new Rectangle(2680, 784, 6, 459);
wall29 = new Rectangle(3050, 507, 6, 100);
wall30 = new Rectangle(3047, 784, 6, 460);
wall31 = new Rectangle(3533, 0, 6, 446);
wall32 = new Rectangle(3895, 442, 6, 167);
wall33 = new Rectangle(3446, 613, 6, 325);
wall34 = new Rectangle(3416, 1243, 6, 130);
wall35 = new Rectangle(4038, 162, 6, 1075);
wall36 = new Rectangle(4193, 1076, 6, 160);
wall37 = new Rectangle(4405, 1225, 6, 148);
wall38 = new Rectangle(4737, 482, 6, 595);
wall39 = new Rectangle(5209, 0, 6, 919);
wall40 = new Rectangle(5546, 1226, 6, 283);
wall41 = new Rectangle(5995, 1214, 6, 153);
wall42 = new Rectangle(6433, 1214, 6, 160);
wall43 = new Rectangle(6410, 766, 6, 280);
wall44 = new Rectangle(6833, 766, 6, 563);
wall45 = new Rectangle(7190, 1219, 6, 289);
wall46 = new Rectangle(7348, 1219, 6, 151);
wall47 = new Rectangle(7601, 1219, 30, 441);
wall48 = new Rectangle(7919, 919, 6, 300);
wall49 = new Rectangle(8157, 1353, 6, 307);
wall50 = new Rectangle(7637, 769, 6, 144);
wall51 = new Rectangle(7841, 0, 6, 765);
wall52 = new Rectangle(8087, 919, 6, 267);
wall53 = new Rectangle(8545, 0, 6, 1200);
wall54 = new Rectangle(8545, 1353, 6, 167);
wall55 = new Rectangle(8670, 1519, 6, 157);
wall56 = new Rectangle(5904, 0, 6, 1210);
#endregion
#region roof
roof1 = new Rectangle(8670, 1649, 180, 10);
roof2 = new Rectangle(8010, 1487, 147, 10);
roof3 = new Rectangle(7602, 1655, 555, 10);
roof4 = new Rectangle(7602, 1483, 174, 10);
roof5 = new Rectangle(8387, 1038, 160, 10);
roof6 = new Rectangle(8087, 1033, 109, 10);
roof7 = new Rectangle(7609, 1193, 700, 10);
roof8 = new Rectangle(7634, 746, 207, 10);
roof9 = new Rectangle(6830, 744, 243, 10);
roof10 = new Rectangle(6248, 888, 162, 10);
roof11 = new Rectangle(5925, 1044, 212, 10);
roof12 = new Rectangle(5925, 1190, 505, 10);
roof13 = new Rectangle(5773, 1335, 222, 10);
roof14 = new Rectangle(4946, 901, 998, 10);
roof15 = new Rectangle(4952, 604, 257, 10);
roof16 = new Rectangle(4182, 460, 510, 10);
roof17 = new Rectangle(4050, 605, 559, 10);
roof18 = new Rectangle(4197, 745, 782, 10);
roof19 = new Rectangle(4038, 903, 546, 10);
roof20 = new Rectangle(4215, 1050, 752, 10);
roof21 = new Rectangle(3075, 1058, 150, 10);
roof22 = new Rectangle(3273, 907, 174, 10);
roof23 = new Rectangle(3534, 441, 361, 10);
roof24 = new Rectangle(2695, 610, 355, 10);
roof25 = new Rectangle(1833, 1066, 600, 10);
roof26 = new Rectangle(1069, 921, 1218, 10);
roof27 = new Rectangle(2001, 770, 432, 10);
roof28 = new Rectangle(1870, 628, 419, 10);
roof29 = new Rectangle(1631, 484, 1415, 10);
roof30 = new Rectangle(1204, 780, 158, 10);
roof31 = new Rectangle(1006, 628, 201, 10);
roof32 = new Rectangle(792, 489, 202, 10);
roof33 = new Rectangle(620, 626, 216, 10);
roof34 = new Rectangle(808, 782, 199, 10);
roof35 = new Rectangle(608, 928, 232, 10);
roof36 = new Rectangle(795, 1079, 210, 10);
roof37 = new Rectangle(1029, 1666, 124, 10);
roof38 = new Rectangle(1419, 1685, 175, 10);
roof39 = new Rectangle(1601, 1771, 373, 10);
roof40 = new Rectangle(1979, 1692, 140, 10);
roof41 = new Rectangle(913, 1563, 120, 10);
roof42 = new Rectangle(5546, 1502, 1645, 10);
roof43 = new Rectangle(6411, 1044, 704, 10);
roof44 = new Rectangle(7267, 887, 371, 10);
roof45 = new Rectangle(8545, 1514, 112, 10);
#endregion
toStage3e2 = false;
stageEndCT = 0;
cameraMaxX = 8895;
cameraMaxY = 1253;
cameraMinY = 150;
drgnX = 10038;
drgnY = 1662;
drgnFacingDir = 13;
clawDir = 2;
breathDir = 6;
clawX = -80 - clawhitboxmod;
breathX = -196;
drgnFaceR = false;
#region whistle
whistleRandom = -1;
note1Measure = 0;
note1Beat = 0;
note1xPos = drgnX + 40;
note1yPos = drgnY + 40;
note1xVel = -3;
note1yVel = -2;
note2Measure = 0;
note2Beat = 0;
note2xPos = drgnX + 40;
note2yPos = drgnY + 40;
note2xVel = -3;
note2yVel = -2;
note3Measure = 0;
note3Beat = 0;
note3xPos = drgnX + 40;
note3yPos = drgnY + 40;
note3xVel = -3;
note3yVel = -2;
note4Measure = 0;
note4Beat = 0;
note4xPos = drgnX + 40;
note4yPos = drgnY + 40;
note4xVel = -3;
note4yVel = -2;
#endregion
s3e2enemiesOn = true;
#region puzzle
flameWallX = 0;
flameWallVel = 0;
sprinklerCT = 0;
sprinklerFrame = 0;
sprinkler1Frozen = 0;
sprinkler2Frozen = 0;
sprinkler3Frozen = 0;
sprinkler4Frozen = 0;
sprinkler5Frozen = 0;
sprinkler6Frozen = 0;
sprinkler7Frozen = 0;
sprinkler1HP = 60;
sprinkler2HP = 60;
sprinkler3HP = 60;
sprinkler4HP = 60;
sprinkler5HP = 60;
sprinkler6HP = 60;
sprinkler7HP = 60;
tempVolumeA = 0;
#endregion
#region enemies
//tuba
#region e1
e1spawn = true;
e1CT = 0;
e1timer = 0;
e1reload = 121;
e1HP = 25;
e1armor = 0;
e1X = 6200;
e1Y = 1659;
e1act = 0;
e1facing = 0;
e1frame = 0;
e1Opacity = 255;
e1invTimer = 0;
e1knockbackTimer = 0;
e1projHeight = 0;
e1projWidth = 0;
e1hitTimer = 0;
e1invBlink = 255;
e1Attack = 1;
e1FireVul = 2;
e1BoltVul = 0;
e1AcidVul = 0;
e1faceR = false;
e1invulnerable = false;
e1knockback = false;
e1knockbackRes = false;
e1onGround = true;
e1proximity = false;
e1touchWallL = false;
e1touchWallR = false;
e1breathhit = false;
e1clawhit = false;
e1frozen = false;
e1peaceful = false;
e1frRes = false;
e1BurnVul = true;
e1ShockVul = false;
e1peaceRes = false;
e1coins = false;
e1smoke = false;
e1smokeCT = 0;
e1coinValue = 80;
e1coinType = 0;
e1altAnimCT = 0;
#endregion
#region e2
e2spawn = true;
e2CT = 0;
e2timer = 0;
e2reload = 121;
e2HP = 25;
e2armor = 0;
e2X = 2606;
e2Y = 1605;
e2act = 0;
e2facing = 0;
e2frame = 0;
e2Opacity = 255;
e2invTimer = 0;
e2knockbackTimer = 0;
e2projHeight = 0;
e2projWidth = 0;
e2hitTimer = 0;
e2invBlink = 255;
e2Attack = 1;
e2FireVul = 2;
e2BoltVul = 0;
e2AcidVul = 0;
e2faceR = false;
e2invulnerable = false;
e2knockback = false;
e2knockbackRes = false;
e2onGround = true;
e2proximity = false;
e2touchWallL = false;
e2touchWallR = false;
e2breathhit = false;
e2clawhit = false;
e2frozen = false;
e2peaceful = false;
e2frRes = false;
e2BurnVul = true;
e2ShockVul = false;
e2peaceRes = false;
e2coins = false;
e2smoke = false;
e2smokeCT = 0;
e2coinValue = 90;
e2coinType = 0;
e2altAnimCT = 0;
#endregion
//swordmaster
#region e3
e3spawn = true;
e3CT = 0;
e3timer = 0;
e3HP = 150;
e3armor = 1;
e3X = 6912;
e3Y = 1677;
e3act = 0;
e3facing = 0;
e3frame = 0;
e3Opacity = 255;
e3invTimer = 0;
e3knockbackTimer = 0;
e3projHeight = 0;
e3projWidth = 0;
e3hitTimer = 0;
e3invBlink = 255;
e3Attack = 3;
e3FireVul = 0;
e3BoltVul = 0;
e3AcidVul = 0;
e3faceR = false;
e3invulnerable = false;
e3knockback = false;
e3knockbackRes = false;
e3onGround = true;
e3proximity = false;
e3touchWallL = false;
e3touchWallR = false;
e3breathhit = false;
e3clawhit = false;
e3frozen = false;
e3peaceful = false;
e3frRes = false;
e3BurnVul = false;
e3ShockVul = false;
e3peaceRes = false;
e3coins = false;
e3smoke = false;
e3smokeCT = 0;
e3coinValue = 1000;
e3coinType = 0;
e3altAnimCT = 0;
#endregion
//lancer
#region e4
e4spawn = true;
e4CT = 0;
e4timer = 0;
e4HP = 28;
e4armor = 0;
e4X = 5120;
e4Y = 1677;
e4reload = 120;
e4act = 0;
e4facing = 0;
e4frame = 0;
e4Opacity = 255;
e4invTimer = 0;
e4knockbackTimer = 0;
e4projHeight = 0;
e4projWidth = 0;
e4hitTimer = 0;
e4invBlink = 255;
e4Attack = 1;
e4FireVul = 0;
e4BoltVul = 1;
e4AcidVul = 0;
e4faceR = false;
e4invulnerable = false;
e4knockback = false;
e4knockbackRes = false;
e4onGround = true;
e4proximity = false;
e4touchWallL = false;
e4touchWallR = false;
e4breathhit = false;
e4clawhit = false;
e4frozen = false;
e4peaceful = false;
e4frRes = true;
e4BurnVul = false;
e4ShockVul = false;
e4peaceRes = true;
e4coins = false;
e4smoke = false;
e4smokeCT = 0;
e4coinValue = 110;
e4coinType = 0;
e4altAnimCT = 0;
#endregion
//heavy XX
#region e5
e5spawn = true;
e5CT = 0;
e5timer = 0;
e5HP = 50;
e5armor = 5;
e5X = 1388;
e5Y = 1701;
e5act = 0;
e5facing = 0;
e5frame = 0;
e5Opacity = 255;
e5invTimer = 0;
e5knockbackTimer = 0;
e5hitTimer = 0;
e5invBlink = 255;
e5Attack = 1;
e5FireVul = 0;
e5BoltVul = 0;
e5AcidVul = 2;
e5faceR = false;
e5invulnerable = false;
e5knockback = false;
e5knockbackRes = false;
e5onGround = true;
e5proximity = false;
e5touchWallL = false;
e5touchWallR = false;
e5breathhit = false;
e5clawhit = false;
e5frozen = false;
e5peaceful = false;
e5frRes = false;
e5BurnVul = false;
e5ShockVul = false;
e5peaceRes = false;
e5coins = false;
e5smoke = false;
e5smokeCT = 0;
e5coinValue = 300;
e5coinType = 0;
e5altAnimCT = 0;
#endregion
//hazmat
#region e6
e6spawn = true;
e6CT = 0;
e6timer = 0;
e6HP = 16;
e6armor = 0;
e6X = 7802;
e6Y = 1511;
e6act = 1;
e6facing = 6;
e6frame = 0;
e6Opacity = 255;
e6invTimer = 0;
e6knockbackTimer = 0;
e6projHeight = 0;
e6projWidth = 0;
e6hitTimer = 0;
e6invBlink = 255;
e6Attack = 1;
e6FireVul = 1;
e6BoltVul = 0;
e6AcidVul = 0;
e6faceR = true;
e6invulnerable = false;
e6knockback = false;
e6knockbackRes = false;
e6onGround = true;
e6proximity = false;
e6touchWallL = false;
e6touchWallR = false;
e6breathhit = false;
e6clawhit = false;
e6frozen = false;
e6peaceful = false;
e6frRes = false;
e6BurnVul = false;
e6ShockVul = false;
e6peaceRes = true;
e6coins = false;
e6smoke = false;
e6smokeCT = 0;
e6coinValue = 40;
e6coinType = 0;
e6altAnimCT = 0;
#endregion
#region e7
e7spawn = true;
e7CT = 0;
e7timer = 0;
e7HP = 16;
e7armor = 0;
e7X = 3500;
e7Y = 1677;
e7act = 1;
e7facing = 6;
e7frame = 0;
e7Opacity = 255;
e7invTimer = 0;
e7knockbackTimer = 0;
e7projHeight = 0;
e7projWidth = 0;
e7hitTimer = 0;
e7invBlink = 255;
e7Attack = 1;
e7FireVul = 1;
e7BoltVul = 0;
e7AcidVul = 0;
e7faceR = true;
e7invulnerable = false;
e7knockback = false;
e7knockbackRes = false;
e7onGround = true;
e7proximity = false;
e7touchWallL = false;
e7touchWallR = false;
e7breathhit = false;
e7clawhit = false;
e7frozen = false;
e7peaceful = false;
e7frRes = false;
e7BurnVul = false;
e7ShockVul = false;
e7peaceRes = true;
e7coins = false;
e7smoke = false;
e7smokeCT = 0;
e7coinValue = 40;
e7coinType = 0;
e7altAnimCT = 0;
#endregion
#endregion
stage3e2 = true;
}
#endregion
#region toStage 3-3
if (toStage3e3 == true)
{
drawStages = new DrawStages(13, stageManager);
drawSky = new DrawSky(3, stageManager);
loadBone = new LoadBone(true, stageManager);
loadSax = new LoadSax(true, stageManager);
loadArcher = new LoadArcher(true, stageManager);
loadHazmat = new LoadHazmat(true, stageManager);
playStageMusic = new PlayStageMusic(5, stageBGM);
loopAcid = new LoopAcid(true, breathSFX);
puzzleRock = new PuzzleRock(true, stageManager);
drawTreasureText = new DrawTreasureText(10,
stageManager, languageType);
#region floor
floor1 = new Rectangle(3102, floor1y = 5200, 6098, 50);
floor2 = new Rectangle(6202, floor2y = 5063, 453, 20);
floor3 = new Rectangle(6759, floor3y = 4947, 418, 20);
floor4 = new Rectangle(7315, floor4y = 4818, 352, 20);
floor5 = new Rectangle(7847, floor5y = 4694, 175, 20);
floor6 = new Rectangle(7518, floor6y = 4634, 147, 20);
floor7 = new Rectangle(8117, floor7y = 4572, 173, 20);
floor8 = new Rectangle(7775, floor8y = 4443, 198, 20);
floor9 = new Rectangle(7205, floor9y = 4446, 294, 20);
floor10 = new Rectangle(6962, floor10y = 4328, 90, 20);
floor11 = new Rectangle(6764, floor11y = 4200, 53, 20);
floor12 = new Rectangle(6563, floor12y = 4076, 59, 20);
floor13 = new Rectangle(6158, floor13y = 4071, 193, 20);
floor14 = new Rectangle(6735, floor14y = 3949, 248, 20);
floor15 = new Rectangle(7107, floor15y = 3821, 770, 20);
floor16 = new Rectangle(6974, floor16y = 3700, 106, 20);
floor17 = new Rectangle(7444, floor17y = 3697, 94, 20);
floor18 = new Rectangle(6575, floor18y = 3572, 240, 20);
floor19 = new Rectangle(7680, floor19y = 3568, 56, 20);
floor20 = new Rectangle(7935, floor20y = 3560, 56, 20);
floor21 = new Rectangle(8110, floor21y = 3446, 185, 20);
floor22 = new Rectangle(6242, floor22y = 3445, 271, 20);
floor23 = new Rectangle(6847, floor23y = 3314, 43, 20);
floor24 = new Rectangle(7060, floor24y = 3317, 33, 20);
floor25 = new Rectangle(7276, floor25y = 3318, 40, 20);
floor26 = new Rectangle(7441, floor26y = 3318, 32, 20);
floor27 = new Rectangle(7636, floor27y = 3318, 49, 20);
floor28 = new Rectangle(7890, floor28y = 3311, 79, 20);
floor29 = new Rectangle(6271, floor29y = 3187, 432, 20);
floor30 = new Rectangle(6851, floor30y = 3066, 112, 20);
floor31 = new Rectangle(7258, floor31y = 3070, 50, 20);
floor32 = new Rectangle(7401, floor32y = 3070, 48, 20);
floor33 = new Rectangle(7536, floor33y = 3070, 49, 20);
floor34 = new Rectangle(7681, floor34y = 3072, 49, 20);
floor35 = new Rectangle(7084, floor35y = 2939, 59, 20);
floor36 = new Rectangle(7773, floor36y = 2940, 158, 20);
floor37 = new Rectangle(7642, floor37y = 2817, 54, 20);
floor38 = new Rectangle(7302, floor38y = 2689, 249, 20);
floor39 = new Rectangle(7119, floor39y = 2572, 89, 20);
floor40 = new Rectangle(6820, floor40y = 2440, 185, 20);
floor41 = new Rectangle(6620, floor41y = 2314, 47, 20);
floor42 = new Rectangle(6466, floor42y = 2188, 39, 20);
floor43 = new Rectangle(6560, floor43y = 2060, 43, 20);
floor44 = new Rectangle(6459, floor44y = 1939, 42, 20);
floor45 = new Rectangle(6579, floor45y = 1817, 42, 20);
floor46 = new Rectangle(6757, floor46y = 1816, 183, 20);
floor47 = new Rectangle(6666, floor47y = 1687, 43, 20);
floor48 = new Rectangle(6760, floor48y = 1568, 43, 20);
floor49 = new Rectangle(6594, floor49y = 1444, 85, 20);
floor50 = new Rectangle(6916, floor50y = 1449, 52, 20);
floor51 = new Rectangle(7097, floor51y = 1447, 80, 20);
floor52 = new Rectangle(7288, floor52y = 1448, 50, 20);
floor53 = new Rectangle(7448, floor53y = 1564, 34, 20);
floor54 = new Rectangle(7518, floor54y = 1690, 37, 20);
floor55 = new Rectangle(7593, floor55y = 1810, 31, 20);
floor56 = new Rectangle(7661, floor56y = 1934, 37, 20);
floor57 = new Rectangle(7759, floor57y = 2064, 56, 20);
floor58 = new Rectangle(7826, floor58y = 2192, 2091,
20);
floor59 = new Rectangle(8032, floor59y = 1944, 732, 20);
floor60 = new Rectangle(3624, floor60y = 3530, 2526,
20); //NO CHANGE
floor61 = new Rectangle(5531, floor61y = 3275, 197, 20);
floor62 = new Rectangle(4433, floor62y = 3149, 545, 20);
floor63 = new Rectangle(5172, floor63y = 3143, 263, 20);
floor64 = new Rectangle(4225, floor64y = 3017, 98, 20);
floor65 = new Rectangle(5509, floor65y = 3019, 123, 20);
floor66 = new Rectangle(5780, floor66y = 3014, 207, 20);
floor67 = new Rectangle(4457, floor67y = 2896, 948, 20);
floor68 = new Rectangle(4228, floor68y = 2768, 180, 20);
floor69 = new Rectangle(4623, floor69y = 2641, 313, 20);
floor70 = new Rectangle(4215, floor70y = 2525, 321, 20);
floor71 = new Rectangle(5045, floor71y = 2523, 63, 20);
floor72 = new Rectangle(5200, floor72y = 2520, 49, 20);
floor73 = new Rectangle(5335, floor73y = 2525, 250, 20);
floor74 = new Rectangle(4372, floor74y = 2390, 338, 20);
floor75 = new Rectangle(5443, floor75y = 2396, 44, 20);
floor76 = new Rectangle(5643, floor76y = 2397, 97, 20);
floor77 = new Rectangle(4227, floor77y = 2270, 68, 20);
floor78 = new Rectangle(5146, floor78y = 2276, 117, 20);
floor79 = new Rectangle(5353, floor79y = 2279, 42, 20);
floor80 = new Rectangle(4358, floor80y = 2143, 186, 20);
floor81 = new Rectangle(4718, floor81y = 2153, 324, 20);
floor82 = new Rectangle(5110, floor82y = 2153, 41, 20);
floor83 = new Rectangle(5278, floor83y = 2155, 45, 20);
floor84 = new Rectangle(4608, floor84y = 2021, 44, 20);
floor85 = new Rectangle(5384, floor85y = 2030, 43, 20);
floor86 = new Rectangle(4405, floor86y = 1900, 148, 20);
floor87 = new Rectangle(4703, floor87y = 1903, 43, 20);
floor88 = new Rectangle(5472, floor88y = 1897, 43, 20);
floor89 = new Rectangle(4829, floor89y = 1778, 38, 20);
floor90 = new Rectangle(5373, floor90y = 1777, 46, 20);
floor91 = new Rectangle(4729, floor91y = 1634, 47, 20);
floor92 = new Rectangle(5295, floor92y = 1646, 41, 20);
floor93 = new Rectangle(4863, floor93y = 1520, 371, 20);
floor94 = new Rectangle(5403, floor94y = 1517, 49, 20);
floor95 = new Rectangle(5293, floor95y = 1404, 33, 20);
floor96 = new Rectangle(5187, floor96y = 1278, 41, 20);
floor97 = new Rectangle(5293, floor97y = 1155, 48, 20);
floor98 = new Rectangle(5366, floor98y = 1030, 40, 20);
floor99 = new Rectangle(5444, floor99y = 907, 43, 20);
floor100 = new Rectangle(5180, floor100y = 781, 121,
20);
floor101 = new Rectangle(5105, floor101y = 652, 41, 20);
floor102 = new Rectangle(5033, floor102y = 533, 46, 20);
floor103 = new Rectangle(5125, floor103y = 405, 34, 20);
floor104 = new Rectangle(5070, floor104y = 287, 27, 20);
floor105 = new Rectangle(3394, floor105y = 2331, 471,
20); //NO CHANGE
floor106 = new Rectangle(3892, floor106y = 2779, 35,
20); // NO CHANGE
floor107 = new Rectangle(3926, floor107y = 3059, 53,
20); //NO CHANGE
floor108 = new Rectangle(3307, floor108y = 2696, 166,
20); // NO CHANGE
floor109 = new Rectangle(3229, floor109y = 3227, 167,
20); // NO CHANGE
floor110 = new Rectangle(3175, floor110y = 3694, 99,
20); // NO CHANGE
floor111 = new Rectangle(3115, floor111y = 3921, 160,
20); //NO CHANGE
floor112 = new Rectangle(3031, floor112y = 4516, 177,
20); // NO CHANGE
floor113 = new Rectangle(2988, floor113y = 5112, 649,
20); // NO CHANGE
floor114 = new Rectangle(2355, floor114y = 369, 29, 20);
floor115 = new Rectangle(2308, floor115y = 500, 31, 20);
floor116 = new Rectangle(2255, floor116y = 625, 33, 20);
floor117 = new Rectangle(2371, floor117y = 624, 40, 20);
floor118 = new Rectangle(2464, floor118y = 621, 35, 20);
floor119 = new Rectangle(1907, floor119y = 750, 37, 20);
floor120 = new Rectangle(2332, floor120y = 750, 134,
20);
floor121 = new Rectangle(1813, floor121y = 872, 30, 20);
floor122 = new Rectangle(1772, floor122y = 1004, 32,
20);
floor123 = new Rectangle(2346, floor123y = 989, 33, 20);
floor124 = new Rectangle(1733, floor124y = 1123, 33,
20);
floor125 = new Rectangle(2459, floor125y = 1116, 138,
20);
floor126 = new Rectangle(1787, floor126y = 1252, 30,
20);
floor127 = new Rectangle(2681, floor127y = 1246, 50,
20);
floor128 = new Rectangle(1719, floor128y = 1367, 229,
20);
floor129 = new Rectangle(2731, floor129y = 1371, 33,
20);
floor130 = new Rectangle(1982, floor130y = 1486, 36,
20);
floor131 = new Rectangle(2862, floor131y = 1495, 49,
20);
floor132 = new Rectangle(1926, floor132y = 1618, 28,
20);
floor133 = new Rectangle(2942, floor133y = 1617, 66,
20);
floor134 = new Rectangle(1980, floor134y = 1742, 26,
20);
floor135 = new Rectangle(2731, floor135y = 1733, 156,
20);
floor136 = new Rectangle(2055, floor136y = 1866, 46,
20);
floor137 = new Rectangle(2649, floor137y = 1860, 37,
20);
floor138 = new Rectangle(2141, floor138y = 1989, 51,
20);
floor139 = new Rectangle(2742, floor139y = 1988, 39,
20);
floor140 = new Rectangle(2209, floor140y = 2106, 36,
20);
floor141 = new Rectangle(2826, floor141y = 2102, 34,
20);
floor142 = new Rectangle(2251, floor142y = 2233, 33,
20);
floor143 = new Rectangle(2896, floor143y = 2234, 40,
20);
floor144 = new Rectangle(1756, floor144y = 2356, 35,
20);
floor145 = new Rectangle(2203, floor145y = 2356, 39,
20);
floor146 = new Rectangle(3017, floor146y = 2355, 275,
20);
floor147 = new Rectangle(1667, floor147y = 2486, 37,
20);
floor148 = new Rectangle(1886, floor148y = 2485, 133,
20);
floor149 = new Rectangle(2083, floor149y = 2484, 22,
20);
floor150 = new Rectangle(2610, floor150y = 2482, 280,
20);
floor151 = new Rectangle(1618, floor151y = 2754, 106,
20);
floor152 = new Rectangle(1853, floor152y = 2749, 67,
20);
floor153 = new Rectangle(2161, floor153y = 2735, 375,
20);
floor154 = new Rectangle(2987, floor154y = 2726, 123,
20);
floor155 = new Rectangle(2024, floor155y = 2863, 55,
20);
floor156 = new Rectangle(2688, floor156y = 2981, 172,
20);
floor157 = new Rectangle(2485, floor157y = 3219, 137,
20);
floor158 = new Rectangle(2977, floor158y = 3223, 38,
20);
floor159 = new Rectangle(2917, floor159y = 3352, 25,
20);
floor160 = new Rectangle(1797, floor160y = 3473, 248,
20);
floor161 = new Rectangle(2284, floor161y = 3468, 134,
20);
floor162 = new Rectangle(2989, floor162y = 3469, 37,
20);
floor163 = new Rectangle(1403, floor163y = 3662, 37,
20);
floor164 = new Rectangle(2400, floor164y = 3660, 459,
20);
floor165 = new Rectangle(1530, floor165y = 3788, 98,
20);
floor166 = new Rectangle(2043, floor166y = 3781, 275,
20);
floor167 = new Rectangle(1285, floor167y = 3914, 37,
20);
floor168 = new Rectangle(1443, floor168y = 3909, 44,
20);
floor169 = new Rectangle(1871, floor169y = 3913, 114,
20);
floor170 = new Rectangle(2895, floor170y = 3912, 38,
20);
floor171 = new Rectangle(1225, floor171y = 4033, 254,
20);
floor172 = new Rectangle(2884, floor172y = 4021, 212,
20);
floor173 = new Rectangle(1558, floor173y = 4156, 279,
20);
floor174 = new Rectangle(2710, floor174y = 4153, 133,
20);
floor175 = new Rectangle(1894, floor175y = 4282, 708,
20);
floor176 = new Rectangle(2632, floor176y = 4401, 39,
20);
floor177 = new Rectangle(1291, floor177y = 4535, 48,
20);
floor178 = new Rectangle(1370, floor178y = 4532, 35,
20);
floor179 = new Rectangle(1625, floor179y = 4528, 151,
20);
floor180 = new Rectangle(2710, floor180y = 4523, 58,
20);
floor181 = new Rectangle(1209, floor181y = 4662, 381,
20);
floor182 = new Rectangle(1836, floor182y = 4662, 41,
20);
floor183 = new Rectangle(2609, floor183y = 4652, 41,
20);
floor184 = new Rectangle(2343, floor184y = 4781, 85,
20);
floor185 = new Rectangle(2511, floor185y = 4777, 43,
20);
floor186 = new Rectangle(1832, floor186y = 4916, 34,
20);
floor187 = new Rectangle(2444, floor187y = 4910, 39,
20);
floor188 = new Rectangle(2093, floor188y = 5033, 305,
20);
floor189 = new Rectangle(2476, floor189y = 5152, 303,
20);
floor190 = new Rectangle(1610, floor190y = 5280, 53,
20);
floor191 = new Rectangle(1852, floor191y = 5276, 199,
20);
floor192 = new Rectangle(2914, floor192y = 5284, 47,
20);
floor193 = new Rectangle(0, floor193y = 5416, 2997, 20);
//NO CHANGE
floor194 = new Rectangle(1753, floor194y = 2613, 44,
20);
#endregion
#region wall
wall1 = new Rectangle(6108, 3536, 6, 2166);
wall2 = new Rectangle(8321, 0, 6, 1944);
wall3 = new Rectangle(8321, 2198, 6, 5000);
wall4 = new Rectangle(7916, 2198, 6, 742);
wall5 = new Rectangle(3402, 3292, 6, 1613);
wall6 = new Rectangle(3636, 3542, 6, 2173);
wall7 = new Rectangle(3978, 3064, 6, 221);
wall8 = new Rectangle(3926, 2784, 6, 282);
wall9 = new Rectangle(3864, 2336, 6, 451);
wall10 = new Rectangle(3394, 2336, 6, 367);
wall11 = new Rectangle(3307, 2701, 6, 536);
wall12 = new Rectangle(3229, 3232, 6, 480);
wall13 = new Rectangle(3175, 3694, 6, 228);
wall14 = new Rectangle(3115, 3926, 6, 658);
wall15 = new Rectangle(3031, 4521, 6, 382);
wall16 = new Rectangle(2988, 5117, 6, 329);
wall17 = new Rectangle(1184, 0, 6, 4662);
#endregion
#region roof
roof1 = new Rectangle(3382, 3292, 629, 10);
roof2 = new Rectangle(3012, 4095, 402, 10);
roof3 = new Rectangle(8027, 1944, 739, 10);
#endregion
toStage3e3 = false;
stageEndCT = 0;
cameraMaxX = 7021;
cameraMaxY = 4597;
drgnX = 8181;
drgnY = 5058;
drgnOnGround = true;
drgnFacingDir = 13;
clawDir = 2;
breathDir = 6;
clawX = -80 - clawhitboxmod;
breathX = -196;
drgnFaceR = false;
guardAct = 0;
guardFrame = 0;
guardCT = 0;
doorYPos = 0;
boulderHP = 420;
boulderCT = 0;
boulderFrame = 0;
doorOpen = false;
#region whistle
whistleRandom = -1;
note1Measure = 0;
note1Beat = 0;
note1xPos = drgnX + 40;
note1yPos = drgnY + 40;
note1xVel = -3;
note1yVel = -2;
note2Measure = 0;
note2Beat = 0;
note2xPos = drgnX + 40;
note2yPos = drgnY + 40;
note2xVel = -3;
note2yVel = -2;
note3Measure = 0;
note3Beat = 0;
note3xPos = drgnX + 40;
note3yPos = drgnY + 40;
note3xVel = -3;
note3yVel = -2;
note4Measure = 0;
note4Beat = 0;
note4xPos = drgnX + 40;
note4yPos = drgnY + 40;
note4xVel = -3;
note4yVel = -2;
#endregion
#region enemies
//cannoneer
#region e1
e1spawn = true;
e1CT = 0;
e1timer = 0;
e1HP = 26;
e1armor = 0;
e1X = 6287;
e1Y = 3302;
e1act = 0;
e1facing = 0;
e1frame = 0;
e1Opacity = 255;
e1invTimer = 0;
e1knockbackTimer = 0;
e1projHeight = 0;
e1projWidth = 0;
e1hitTimer = 0;
e1invBlink = 255;
e1Attack = 1;
e1FireVul = 2;
e1BoltVul = 0;
e1AcidVul = 0;
e1faceR = false;
e1invulnerable = false;
e1knockback = false;
e1knockbackRes = false;
e1onGround = true;
e1proximity = false;
e1touchWallL = false;
e1touchWallR = false;
e1breathhit = false;
e1clawhit = false;
e1frozen = false;
e1peaceful = false;
e1frRes = false;
e1BurnVul = true;
e1ShockVul = false;
e1peaceRes = false;
e1coins = false;
e1smoke = false;
e1smokeCT = 0;
e1coinValue = 60;
e1coinType = 0;
e1altAnimCT = 0;
#endregion
#region e2
e2spawn = true;
e2CT = 0;
e2timer = 0;
e2HP = 26;
e2armor = 0;
e2X = 3594;
e2Y = 2188;
e2act = 0;
e2facing = 0;
e2frame = 0;
e2Opacity = 255;
e2invTimer = 0;
e2knockbackTimer = 0;
e2projHeight = 0;
e2projWidth = 0;
e2hitTimer = 0;
e2invBlink = 255;
e2Attack = 1;
e2FireVul = 2;
e2BoltVul = 0;
e2AcidVul = 0;
e2faceR = false;
e2invulnerable = false;
e2knockback = false;
e2knockbackRes = false;
e2onGround = true;
e2proximity = false;
e2touchWallL = false;
e2touchWallR = false;
e2breathhit = false;
e2clawhit = false;
e2frozen = false;
e2peaceful = false;
e2frRes = false;
e2BurnVul = true;
e2ShockVul = false;
e2peaceRes = false;
e2coins = false;
e2smoke = false;
e2smokeCT = 0;
e2coinValue = 60;
e2coinType = 0;
e2altAnimCT = 0;
#endregion
#region e3
e3spawn = true;
e3CT = 0;
e3timer = 0;
e3HP = 26;
e3armor = 0;
e3X = 1897;
e3Y = 5133;
e3act = 0;
e3facing = 0;
e3frame = 0;
e3Opacity = 255;
e3invTimer = 0;
e3knockbackTimer = 0;
e3projHeight = 0;
e3projWidth = 0;
e3hitTimer = 0;
e3invBlink = 255;
e3Attack = 1;
e3FireVul = 2;
e3BoltVul = 0;
e3AcidVul = 0;
e3faceR = false;
e3invulnerable = false;
e3knockback = false;
e3knockbackRes = false;
e3onGround = true;
e3proximity = false;
e3touchWallL = false;
e3touchWallR = false;
e3breathhit = false;
e3clawhit = false;
e3frozen = false;
e3peaceful = false;
e3frRes = false;
e3BurnVul = true;
e3ShockVul = false;
e3peaceRes = false;
e3coins = false;
e3smoke = false;
e3smokeCT = 0;
e3coinValue = 60;
e3coinType = 0;
e3altAnimCT = 0;
#endregion
//mortar
#region e4
e4spawn = true;
e4CT = 0;
e4timer = 0;
e4HP = 17;
e4armor = 0;
e4X = 7297;
e4Y = 2546;
e4act = 0;
e4facing = 0;
e4frame = 0;
e4Opacity = 255;
e4invTimer = 0;
e4knockbackTimer = 0;
e4projHeight = 0;
e4projWidth = 0;
e4hitTimer = 0;
e4invBlink = 255;
e4Attack = 1;
e4FireVul = 2;
e4BoltVul = 0;
e4AcidVul = 0;
e4faceR = false;
e4invulnerable = false;
e4knockback = false;
e4knockbackRes = false;
e4onGround = true;
e4proximity = false;
e4touchWallL = false;
e4touchWallR = false;
e4breathhit = false;
e4clawhit = false;
e4frozen = false;
e4peaceful = false;
e4frRes = false;
e4BurnVul = true;
e4ShockVul = false;
e4peaceRes = false;
e4coins = false;
e4smoke = false;
e4smokeCT = 0;
e4coinValue = 30;
e4coinType = 0;
e4altAnimCT = 0;
#endregion
#region e5
e5spawn = true;
e5CT = 0;
e5timer = 0;
e5HP = 17;
e5armor = 0;
e5X = 5151;
e5Y = 2133;
e5act = 0;
e5facing = 0;
e5frame = 0;
e5Opacity = 255;
e5invTimer = 0;
e5knockbackTimer = 0;
e5projHeight = 0;
e5projWidth = 0;
e5hitTimer = 0;
e5invBlink = 255;
e5Attack = 1;
e5FireVul = 2;
e5BoltVul = 0;
e5AcidVul = 0;
e5faceR = false;
e5invulnerable = false;
e5knockback = false;
e5knockbackRes = false;
e5onGround = true;
e5proximity = false;
e5touchWallL = false;
e5touchWallR = false;
e5breathhit = false;
e5clawhit = false;
e5frozen = false;
e5peaceful = false;
e5frRes = false;
e5BurnVul = true;
e5ShockVul = false;
e5peaceRes = false;
e5coins = false;
e5smoke = false;
e5smokeCT = 0;
e5coinValue = 30;
e5coinType = 0;
e5altAnimCT = 0;
#endregion
#region e9
e9spawn = true;
e9CT = 0;
e9timer = 0;
e9HP = 17;
e9armor = 0;
e9X = 2188;
e9Y = 4890;
e9act = 0;
e9facing = 0;
e9frame = 0;
e9Opacity = 255;
e9invTimer = 0;
e9knockbackTimer = 0;
e9projHeight = 0;
e9projWidth = 0;
e9hitTimer = 0;
e9invBlink = 255;
e9Attack = 1;
e9FireVul = 2;
e9BoltVul = 0;
e9AcidVul = 0;
e9faceR = false;
e9invulnerable = false;
e9knockback = false;
e9knockbackRes = false;
e9onGround = true;
e9proximity = false;
e9touchWallL = false;
e9touchWallR = false;
e9breathhit = false;
e9clawhit = false;
e9frozen = false;
e9peaceful = false;
e9frRes = false;
e9BurnVul = true;
e9ShockVul = false;
e9peaceRes = false;
e9coins = false;
e9smoke = false;
e9smokeCT = 0;
e9coinValue = 30;
e9coinType = 0;
e9altAnimCT = 0;
#endregion
#region e16
e16spawn = true;
e16CT = 0;
e16timer = 0;
e16HP = 17;
e16armor = 0;
e16X = 2357;
e16Y = 607;
e16act = 0;
e16facing = 0;
e16frame = 0;
e16Opacity = 255;
e16invTimer = 0;
e16knockbackTimer = 0;
e16projHeight = 0;
e16projWidth = 0;
e16hitTimer = 0;
e16invBlink = 255;
e16Attack = 1;
e16FireVul = 2;
e16BoltVul = 0;
e16AcidVul = 0;
e16faceR = false;
e16invulnerable = false;
e16knockback = false;
e16knockbackRes = false;
e16onGround = true;
e16proximity = false;
e16touchWallL = false;
e16touchWallR = false;
e16breathhit = false;
e16clawhit = false;
e16frozen = false;
e16peaceful = false;
e16frRes = false;
e16BurnVul = true;
e16ShockVul = false;
e16peaceRes = false;
e16coins = false;
e16smoke = false;
e16smokeCT = 0;
e16coinValue = 30;
e16coinType = 0;
e16altAnimCT = 0;
#endregion
//archer
#region e10
e10spawn = true;
e10CT = 0;
e10timer = 0;
e10HP = 5;
e10armor = 0;
e10X = 6717;
e10Y = 3429;
e10act = 0;
e10facing = 0;
e10frame = 0;
e10Opacity = 255;
e10invTimer = 0;
e10knockbackTimer = 0;
e10hitTimer = 0;
e10invBlink = 255;
e10Attack = 1;
e10FireVul = 0;
e10BoltVul = 0;
e10AcidVul = 0;
e10faceR = false;
e10invulnerable = false;
e10knockback = false;
e10knockbackRes = false;
e10onGround = true;
e10proximity = false;
e10touchWallL = false;
e10touchWallR = false;
e10breathhit = false;
e10clawhit = false;
e10frozen = false;
e10peaceful = false;
e10frRes = false;
e10BurnVul = true;
e10ShockVul = false;
e10peaceRes = false;
e10coins = false;
e10smoke = false;
e10smokeCT = 0;
e10coinValue = 40;
e10coinType = 0;
e10altAnimCT = 0;
#endregion
#region e11
e11spawn = true;
e11CT = 0;
e11timer = 0;
e11HP = 5;
e11armor = 0;
e11X = 4373;
e11Y = 2000;
e11act = 0;
e11facing = 0;
e11frame = 0;
e11Opacity = 255;
e11invTimer = 0;
e11knockbackTimer = 0;
e11hitTimer = 0;
e11invBlink = 255;
e11Attack = 1;
e11FireVul = 0;
e11BoltVul = 0;
e11AcidVul = 0;
e11faceR = false;
e11invulnerable = false;
e11knockback = false;
e11knockbackRes = false;
e11onGround = true;
e11proximity = false;
e11touchWallL = false;
e11touchWallR = false;
e11breathhit = false;
e11clawhit = false;
e11frozen = false;
e11peaceful = false;
e11frRes = false;
e11BurnVul = true;
e11ShockVul = false;
e11peaceRes = false;
e11coins = false;
e11smoke = false;
e11smokeCT = 0;
e11coinValue = 40;
e11coinType = 0;
e11altAnimCT = 0;
#endregion
#region e12
e12spawn = true;
e12CT = 0;
e12timer = 0;
e12HP = 5;
e12armor = 0;
e12X = 2318;
e12Y = 4638;
e12act = 0;
e12facing = 0;
e12frame = 0;
e12Opacity = 255;
e12invTimer = 0;
e12knockbackTimer = 0;
e12hitTimer = 0;
e12invBlink = 255;
e12Attack = 1;
e12FireVul = 0;
e12BoltVul = 0;
e12AcidVul = 0;
e12faceR = false;
e12invulnerable = false;
e12knockback = false;
e12knockbackRes = false;
e12onGround = true;
e12proximity = false;
e12touchWallL = false;
e12touchWallR = false;
e12breathhit = false;
e12clawhit = false;
e12frozen = false;
e12peaceful = false;
e12frRes = false;
e12BurnVul = true;
e12ShockVul = false;
e12peaceRes = false;
e12coins = false;
e12smoke = false;
e12smokeCT = 0;
e12coinValue = 40;
e12coinType = 0;
e12altAnimCT = 0;
#endregion
#region e13
e13spawn = true;
e13CT = 0;
e13timer = 0;
e13HP = 5;
e13armor = 0;
e13X = 1714;
e13Y = 1224;
e13act = 0;
e13facing = 0;
e13frame = 0;
e13Opacity = 255;
e13invTimer = 0;
e13knockbackTimer = 0;
e13hitTimer = 0;
e13invBlink = 255;
e13Attack = 1;
e13FireVul = 0;
e13BoltVul = 0;
e13AcidVul = 0;
e13faceR = false;
e13invulnerable = false;
e13knockback = false;
e13knockbackRes = false;
e13onGround = true;
e13proximity = false;
e13touchWallL = false;
e13touchWallR = false;
e13breathhit = false;
e13clawhit = false;
e13frozen = false;
e13peaceful = false;
e13frRes = false;
e13BurnVul = true;
e13ShockVul = false;
e13peaceRes = false;
e13coins = false;
e13smoke = false;
e13smokeCT = 0;
e13coinValue = 40;
e13coinType = 0;
e13altAnimCT = 0;
#endregion
#region e14
e14spawn = true;
e14CT = 0;
e14timer = 0;
e14HP = 5;
e14armor = 0;
e14X = 4858;
e14Y = 1377;
e14act = 0;
e14facing = 0;
e14frame = 0;
e14Opacity = 255;
e14invTimer = 0;
e14knockbackTimer = 0;
e14hitTimer = 0;
e14invBlink = 255;
e14Attack = 1;
e14FireVul = 0;
e14BoltVul = 0;
e14AcidVul = 0;
e14faceR = false;
e14invulnerable = false;
e14knockback = false;
e14knockbackRes = false;
e14onGround = true;
e14proximity = false;
e14touchWallL = false;
e14touchWallR = false;
e14breathhit = false;
e14clawhit = false;
e14frozen = false;
e14peaceful = false;
e14frRes = false;
e14BurnVul = true;
e14ShockVul = false;
e14peaceRes = false;
e14coins = false;
e14smoke = false;
e14smokeCT = 0;
e14coinValue = 40;
e14coinType = 0;
e14altAnimCT = 0;
#endregion
#region e15
e15spawn = true;
e15CT = 0;
e15timer = 0;
e15HP = 5;
e15armor = 0;
e15X = 6772;
e15Y = 1673;
e15act = 0;
e15facing = 0;
e15frame = 0;
e15Opacity = 255;
e15invTimer = 0;
e15knockbackTimer = 0;
e15hitTimer = 0;
e15invBlink = 255;
e15Attack = 1;
e15FireVul = 0;
e15BoltVul = 0;
e15AcidVul = 0;
e15faceR = false;
e15invulnerable = false;
e15knockback = false;
e15knockbackRes = false;
e15onGround = true;
e15proximity = false;
e15touchWallL = false;
e15touchWallR = false;
e15breathhit = false;
e15clawhit = false;
e15frozen = false;
e15peaceful = false;
e15frRes = false;
e15BurnVul = true;
e15ShockVul = false;
e15peaceRes = false;
e15coins = false;
e15smoke = false;
e15smokeCT = 0;
e15coinValue = 40;
e15coinType = 0;
e15altAnimCT = 0;
#endregion
//hazmat
#region e6
e6spawn = true;
e6CT = 0;
e6timer = 0;
e6HP = 16;
e6armor = 0;
e6X = 7400;
e6Y = 3678;
e6act = 1;
e6facing = 6;
e6frame = 0;
e6Opacity = 255;
e6invTimer = 0;
e6knockbackTimer = 0;
e6projHeight = 0;
e6projWidth = 0;
e6hitTimer = 0;
e6invBlink = 255;
e6Attack = 1;
e6FireVul = 1;
e6BoltVul = 0;
e6AcidVul = 0;
e6faceR = true;
e6invulnerable = false;
e6knockback = false;
e6knockbackRes = false;
e6onGround = true;
e6proximity = false;
e6touchWallL = false;
e6touchWallR = false;
e6breathhit = false;
e6clawhit = false;
e6frozen = false;
e6peaceful = false;
e6frRes = false;
e6BurnVul = false;
e6ShockVul = false;
e6peaceRes = true;
e6coins = false;
e6smoke = false;
e6smokeCT = 0;
e6coinValue = 40;
e6coinType = 0;
e6altAnimCT = 0;
#endregion
#region e7
e7spawn = true;
e7CT = 0;
e7timer = 0;
e7HP = 16;
e7armor = 0;
e7X = 4900;
e7Y = 2753;
e7act = 1;
e7facing = 6;
e7frame = 0;
e7Opacity = 255;
e7invTimer = 0;
e7knockbackTimer = 0;
e7projHeight = 0;
e7projWidth = 0;
e7hitTimer = 0;
e7invBlink = 255;
e7Attack = 1;
e7FireVul = 1;
e7BoltVul = 0;
e7AcidVul = 0;
e7faceR = true;
e7invulnerable = false;
e7knockback = false;
e7knockbackRes = false;
e7onGround = true;
e7proximity = false;
e7touchWallL = false;
e7touchWallR = false;
e7breathhit = false;
e7clawhit = false;
e7frozen = false;
e7peaceful = false;
e7frRes = false;
e7BurnVul = false;
e7ShockVul = false;
e7peaceRes = true;
e7coins = false;
e7smoke = false;
e7smokeCT = 0;
e7coinValue = 40;
e7coinType = 0;
e7altAnimCT = 0;
#endregion
#region e8
e8spawn = true;
e8CT = 0;
e8timer = 0;
e8HP = 16;
e8armor = 0;
e8X = 2300;
e8Y = 4139;
e8act = 1;
e8facing = 6;
e8frame = 0;
e8Opacity = 255;
e8invTimer = 0;
e8knockbackTimer = 0;
e8projHeight = 0;
e8projWidth = 0;
e8hitTimer = 0;
e8invBlink = 255;
e8Attack = 1;
e8FireVul = 1;
e8BoltVul = 0;
e8AcidVul = 0;
e8faceR = true;
e8invulnerable = false;
e8knockback = false;
e8knockbackRes = false;
e8onGround = true;
e8proximity = false;
e8touchWallL = false;
e8touchWallR = false;
e8breathhit = false;
e8clawhit = false;
e8frozen = false;
e8peaceful = false;
e8frRes = false;
e8BurnVul = false;
e8ShockVul = false;
e8peaceRes = true;
e8coins = false;
e8smoke = false;
e8smokeCT = 0;
e8coinValue = 40;
e8coinType = 0;
e8altAnimCT = 0;
#endregion
#endregion
stage3e3 = true;
}
#endregion
#region toStage 3-B
if (toStage3eB == true)
{
drawStages = new DrawStages(14, stageManager);
drawSky = new DrawSky(3, stageManager);
loadAlex = new LoadAlex(true, stageManager);
loadBaldwin = new LoadBaldwin(true, stageManager);
npc3eB = new Npc3eB(true, stageManager);
loopFireBreathAlt = new LoopFireBreathAlt(true,
breathSFX);
loopLaser = new LoopLaser(true, breathSFX);
playStageMusic = new PlayStageMusic(9, stageBGM);
#region floor
floor1 = new Rectangle(0, floor1y = 647, 2000, 10);
#endregion
#region wall
wall1 = new Rectangle(134, 0, 6, 2000);
wall2 = new Rectangle(1134, 0, 6, 2000);
#endregion
toStage3eB = false;
stageEndCT = 0;
cameraMaxX = 0;
cameraMaxY = 0;
drgnX = 474;
drgnY = 504;
drgnFacingDir = 0;
drgnHitTimer = 0;
drgnDamageTaken = 0;
clawDir = 0;
breathDir = 0;
clawX = 127;
breathX = 110;
drgnFaceR = true;
#region whistle
whistleRandom = -1;
note1Measure = 0;
note1Beat = 0;
note1xPos = drgnX + 40;
note1yPos = drgnY + 40;
note1xVel = 3;
note1yVel = -2;
note2Measure = 0;
note2Beat = 0;
note2xPos = drgnX + 40;
note2yPos = drgnY + 40;
note2xVel = 3;
note2yVel = -2;
note3Measure = 0;
note3Beat = 0;
note3xPos = drgnX + 40;
note3yPos = drgnY + 40;
note3xVel = 3;
note3yVel = -2;
note4Measure = 0;
note4Beat = 0;
note4xPos = drgnX + 40;
note4yPos = drgnY + 40;
note4xVel = 3;
note4yVel = -2;
#endregion
#region Boss 3 Variables
boss3Wait = 0;
boss3ActFirst = 0;
boss3Start = false;
hitBySuper = false;
boss3ClearCT = 0;
baldwinInvTimer = 0;
alexInvTimer = 0;
baldwinKnockbackCT = 0;
alexKnockbackCT = 0;
baldwinEscape = false;
alexEscape = false;
#region baldwin
baldwinHP = 50;
baldwinShockCT = 0;
baldwinShock = false;
baldwinOnGround = true;
baldwinX = 990;
baldwinY = 504;
baldwinFaceR = false;
baldwinCT = 0;
baldwinFrame = 0;
baldwinAct = 0;
jetX = 0;
jetCT = 0;
jetFrame = 0;
jetAct = 0;
jetOn = false;
baldwinProjSequence = 0;
baldwinProjOn = false;
baldwinProj1CT = 0;
baldwinProj1Frame = 0;
baldwinProj1Act = 0;
baldwinProj1X = 0;
baldwinProj1Y = 0;
baldwinProj1YVel = 0;
baldwinProj1Wait = 0;
baldwinProj1On = false;
baldwinProj2CT = 0;
baldwinProj2Frame = 0;
baldwinProj2Act = 0;
baldwinProj2X = 0;
baldwinProj2Y = 0;
baldwinProj2YVel = 0;
baldwinProj2Wait = 0;
baldwinProj2On = false;
baldwinProj3CT = 0;
baldwinProj3Frame = 0;
baldwinProj3Act = 0;
baldwinProj3X = 0;
baldwinProj3Y = 0;
baldwinProj3YVel = 0;
baldwinProj3Wait = 0;
baldwinProj3On = false;
baldwinProj4CT = 0;
baldwinProj4Frame = 0;
baldwinProj4Act = 0;
baldwinProj4X = 0;
baldwinProj4Y = 0;
baldwinProj4YVel = 0;
baldwinProj4Wait = 0;
baldwinProj4On = false;
baldwinProj5CT = 0;
baldwinProj5Frame = 0;
baldwinProj5Act = 0;
baldwinProj5X = 0;
baldwinProj5Y = 0;
baldwinProj5YVel = 0;
baldwinProj5Wait = 0;
baldwinProj5On = false;
baldwinReload = 0;
baldwinRNG = 0;
baldwinSuperCounter = 0;
baldwinSuperCharge = 0;
baldwinSuperCT = 0;
baldwinSuperFrame = 0;
baldwinSuperAct = 0;
baldwinSuperWait = 0;
baldwinSuperPost = 0;
baldwinSuperOn = false;
baldwinBurnerCT = 0;
baldwinBurnerFrame = 0;
baldwinBurnerAct = 0;
baldwinBurnerWait = 0;
baldwinBurnerReload = 0;
baldwinBurnerOn = false;
baldwinInvBlink = 255;
baldwinHitTimer = 0;
baldwinInvulnerable = false;
baldwinBreathHit = false;
baldwinClawHit = false;
#endregion
#region alex
alexHP = 50;
alexShockCT = 0;
alexShock = false;
alexOnGround = true;
alexWarp = false;
alexWarpWait = 0;
alexX = 141;
alexY = 504;
alexFaceR = true;
alexFacing = 0;
alexCT = 0;
alexFrame = 0;
alexAct = 0;
alexVoiceX = 0;
alexVoiceY = 0;
alexVoiceType = 4;
alexVoiceOn = false;
alexSlashCT = 0;
alexSlashFrame = 0;
alexSlashOn = false;
alexSlashFinished = false;
alexReload = 0;
alexRNG = 0;
alexSuperCounter = 0;
alexSuperCharge = 0;
alexSuperCT = 0;
alexSuperFrame = 0;
alexSuperAct = 0;
alexSuperWait = 0;
alexSuperPost = 0;
alexSuperOn = false;
alexLaserX = 0;
alexLaserY = 0;
alexLaserCT = 0;
alexLaserFrame = 0;
alexLaserOn = false;
alexInvBlink = 255;
alexHitTimer = 0;
alexInvulnerable = false;
alexBreathHit = false;
alexClawHit = false;
#endregion
#endregion
alexHitDelay = 0;
baldwinHitDelay = 0;
stage3eB = true;
}
#endregion
#region toStage 4-1
if (toStage4e1 == true)
{
drawStages = new DrawStages(15, stageManager);
drawSky = new DrawSky(2, stageManager);
loadOcean = new LoadOcean(2, stageManager);
loadLancer = new LoadLancer(true, stageManager);
loadHazmat = new LoadHazmat(true, stageManager);
loadPikeman = new LoadPikeman(1, stageManager);
loadSax = new LoadSax(true, stageManager);
loadToxicball = new LoadToxicball(true, stageManager);
npc4e1 = new Npc4e1(true, stageManager);
loopAcid = new LoopAcid(true, breathSFX);
loopSpin = new LoopSpin(true, breathSFX);
loopLaser = new LoopLaser(true, breathSFX);
playStageMusic = new PlayStageMusic(5, stageBGM);
puzzleBoat = new PuzzleBoat(true, stageManager);
puzzleGate = new PuzzleGate(true, stageManager);
drawTreasureText = new DrawTreasureText(11,
stageManager, languageType);
#region floor
floor1 = new Rectangle(0, floor1y = 1756, 250, 20);
floor2 = new Rectangle(874, floor2y = 1752, 193, 20);
floor3 = new Rectangle(1160, floor3y = 1750, 144, 20);
floor4 = new Rectangle(1409, floor4y = 1748, 136, 20);
floor5 = new Rectangle(1738, floor5y = 1750, 160, 20);
floor6 = new Rectangle(2002, floor6y = 1691, 619, 20);
floor7 = new Rectangle(2138, floor7y = 1593, 194, 20);
floor8 = new Rectangle(2430, floor8y = 1485, 182, 20);
floor9 = new Rectangle(2134, floor9y = 1390, 174, 20);
floor10 = new Rectangle(2458, floor10y = 1297, 179, 20);
floor11 = new Rectangle(2546, floor11y = 1184, 159, 20);
floor12 = new Rectangle(2335, floor12y = 1093, 177, 20);
floor13 = new Rectangle(2165, floor13y = 993, 159, 20);
floor14 = new Rectangle(2443, floor14y = 892, 230, 20);
floor15 = new Rectangle(0, floor15y = 1830, 2902, 20);
//ACID
floor16 = new Rectangle(2812, floor16y = 1295, 551, 20);
floor17 = new Rectangle(3151, floor17y = 1190, 225, 20);
floor18 = new Rectangle(2843, floor18y = 1095, 254, 20);
floor19 = new Rectangle(3187, floor19y = 980, 150, 20);
floor20 = new Rectangle(2873, floor20y = 887, 237, 20);
floor21 = new Rectangle(3164, floor21y = 787, 189, 20);
floor22 = new Rectangle(2702, floor22y = 680, 278, 20);
floor23 = new Rectangle(3069, floor23y = 590, 180, 20);
floor24 = new Rectangle(2899, floor24y = 484, 143, 20);
floor25 = new Rectangle(3092, floor25y = 388, 181, 20);
floor26 = new Rectangle(2950, floor26y = 288, 110, 20);
floor27 = new Rectangle(3081, floor27y = 188, 114, 20);
floor28 = new Rectangle(3459, floor28y = 807, 211, 20);
floor29 = new Rectangle(3606, floor29y = 901, 217, 20);
floor30 = new Rectangle(3961, floor30y = 1005, 204, 20);
floor31 = new Rectangle(3950, floor31y = 1717, 30, 20);
floor32 = new Rectangle(3977, floor32y = 1651, 167, 20);
floor33 = new Rectangle(4002, floor33y = 1805, 133, 20);
floor34 = new Rectangle(4597, floor34y = 1788, 154, 20);
floor35 = new Rectangle(4912, floor35y = 1788, 109, 20);
floor36 = new Rectangle(5086, floor36y = 1694, 192, 20);
floor37 = new Rectangle(5312, floor37y = 1591, 124, 20);
floor38 = new Rectangle(5483, floor38y = 1480, 113, 20);
floor39 = new Rectangle(4495, floor39y = 1290, 171, 20);
floor40 = new Rectangle(4436, floor40y = 1197, 113, 20);
floor41 = new Rectangle(4572, floor41y = 1095, 250, 20);
floor42 = new Rectangle(4344, floor42y = 1006, 200, 20);
floor43 = new Rectangle(4636, floor43y = 892, 209, 20);
floor44 = new Rectangle(5618, floor44y = 1381, 218, 20);
floor45 = new Rectangle(5326, floor45y = 1282, 203, 20);
floor46 = new Rectangle(5938, floor46y = 1282, 224, 20);
floor47 = new Rectangle(4932, floor47y = 1188, 217, 20);
floor48 = new Rectangle(5254, floor48y = 884, 168, 20);
floor49 = new Rectangle(5491, floor49y = 886, 242, 20);
floor50 = new Rectangle(4954, floor50y = 793, 242, 20);
floor51 = new Rectangle(5822, floor51y = 795, 252, 20);
floor52 = new Rectangle(5127, floor52y = 693, 159, 20);
floor53 = new Rectangle(5043, floor53y = 590, 143, 20);
floor54 = new Rectangle(6237, floor54y = 1287, 1370,
20);
floor55 = new Rectangle(8103, floor55y = 1290, 53, 20);
floor56 = new Rectangle(6705, floor56y = 991, 176, 20);
floor57 = new Rectangle(6450, floor57y = 907, 146, 20);
floor58 = new Rectangle(6350, floor58y = 800, 186, 20);
floor59 = new Rectangle(6689, floor59y = 801, 108, 20);
floor60 = new Rectangle(6720, floor60y = 693, 184, 20);
floor61 = new Rectangle(6939, floor61y = 1193, 187, 20);
floor62 = new Rectangle(6954, floor62y = 1091, 173, 20);
floor63 = new Rectangle(7092, floor63y = 691, 178, 20);
floor64 = new Rectangle(7803, floor64y = 3594, 323, 20);
floor65 = new Rectangle(8132, floor65y = 4002, 890, 20);
floor66 = new Rectangle(9004, floor66y = 3901, 379, 20);
floor67 = new Rectangle(9492, floor67y = 3835, 100, 20);
floor68 = new Rectangle(9695, floor68y = 3784, 118, 20);
floor69 = new Rectangle(9916, floor69y = 3733, 118, 20);
floor70 = new Rectangle(10126, floor70y = 3695, 848,
20);
floor71 = new Rectangle(3121, floor71y = 1871, 3196,
20); //ACID
floor72 = new Rectangle(4111, floor72y = 1796, 453, 20);
#endregion
#region temp wall
L1 = new Rectangle(2126, 1598, 6, 20);
L2 = new Rectangle(2418, 1490, 6, 20);
L3 = new Rectangle(2122, 1395, 6, 20);
L4 = new Rectangle(2446, 1302, 6, 20);
L5 = new Rectangle(2534, 1189, 6, 20);
L6 = new Rectangle(2323, 1098, 6, 20);
L7 = new Rectangle(2153, 998, 6, 20);
L8 = new Rectangle(2431, 897, 6, 20);
L9 = new Rectangle(3139, 1195, 6, 20);
L10 = new Rectangle(2831, 1100, 6, 20);
L11 = new Rectangle(3175, 985, 6, 20);
L12 = new Rectangle(2861, 892, 6, 20);
L13 = new Rectangle(3152, 792, 6, 20);
L14 = new Rectangle(2690, 685, 6, 20);
L15 = new Rectangle(3057, 595, 6, 20);
L16 = new Rectangle(2887, 489, 6, 20);
L17 = new Rectangle(3080, 393, 6, 20);
L18 = new Rectangle(2938, 293, 6, 20);
L19 = new Rectangle(3069, 193, 6, 20);
L20 = new Rectangle(3447, 812, 6, 20);
L21 = new Rectangle(3594, 906, 6, 20);
L22 = new Rectangle(3949, 1010, 6, 20);
L23 = new Rectangle(4585, 1793, 6, 20);
L24 = new Rectangle(4900, 1793, 6, 20);
L25 = new Rectangle(5074, 1699, 6, 20);
L26 = new Rectangle(5300, 1596, 6, 20);
L27 = new Rectangle(5471, 1485, 6, 20);
L28 = new Rectangle(4483, 1295, 6, 20);
L29 = new Rectangle(4424, 1202, 6, 20);
L30 = new Rectangle(4560, 1100, 6, 20);
L31 = new Rectangle(4332, 1011, 6, 20);
L32 = new Rectangle(4624, 897, 6, 20);
L33 = new Rectangle(5606, 1386, 6, 20);
L34 = new Rectangle(5314, 1287, 6, 20);
L35 = new Rectangle(5926, 1287, 6, 20);
L36 = new Rectangle(4920, 1193, 6, 20);
L37 = new Rectangle(5242, 889, 6, 20);
L38 = new Rectangle(5479, 891, 6, 20);
L39 = new Rectangle(4942, 798, 6, 20);
L40 = new Rectangle(5810, 800, 6, 20);
L41 = new Rectangle(5115, 698, 6, 20);
L42 = new Rectangle(5051, 595, 6, 20);
L43 = new Rectangle(6693, 996, 6, 20);
L44 = new Rectangle(6438, 912, 6, 20);
L45 = new Rectangle(6338, 805, 6, 20);
L46 = new Rectangle(6677, 806, 6, 20);
L47 = new Rectangle(6708, 698, 6, 20);
R1 = new Rectangle(2344, 1598, 6, 20);
R2 = new Rectangle(2624, 1490, 6, 20);
R3 = new Rectangle(2320, 1395, 6, 20);
R4 = new Rectangle(2649, 1302, 6, 20);
R5 = new Rectangle(2717, 1189, 6, 20);
R6 = new Rectangle(2524, 1098, 6, 20);
R7 = new Rectangle(2336, 998, 6, 20);
R8 = new Rectangle(2685, 897, 6, 20);
R9 = new Rectangle(3388, 1195, 6, 20);
R10 = new Rectangle(3109, 1100, 6, 20);
R11 = new Rectangle(3349, 985, 6, 20);
R12 = new Rectangle(3122, 892, 6, 20);
R13 = new Rectangle(3365, 792, 6, 20);
R14 = new Rectangle(2992, 685, 6, 20);
R15 = new Rectangle(3261, 595, 6, 20);
R16 = new Rectangle(3054, 489, 6, 20);
R17 = new Rectangle(3285, 393, 6, 20);
R18 = new Rectangle(3027, 293, 6, 20);
R19 = new Rectangle(3207, 193, 6, 20);
R20 = new Rectangle(3682, 812, 6, 20);
R21 = new Rectangle(3835, 906, 6, 20);
R22 = new Rectangle(4177, 1010, 6, 20);
R23 = new Rectangle(4763, 1793, 6, 20);
R24 = new Rectangle(5033, 1793, 6, 20);
R25 = new Rectangle(5290, 1699, 6, 20);
R26 = new Rectangle(5448, 1596, 6, 20);
R27 = new Rectangle(5608, 1485, 6, 20);
R28 = new Rectangle(4678, 1295, 6, 20);
R29 = new Rectangle(4561, 1202, 6, 20);
R30 = new Rectangle(4834, 1100, 6, 20);
R31 = new Rectangle(4556, 1011, 6, 20);
R32 = new Rectangle(4857, 897, 6, 20);
R33 = new Rectangle(5848, 1386, 6, 20);
R34 = new Rectangle(5541, 1287, 6, 20);
R35 = new Rectangle(6189, 1287, 6, 20);
R36 = new Rectangle(5161, 1193, 6, 20);
R37 = new Rectangle(5434, 889, 6, 20);
R38 = new Rectangle(5745, 891, 6, 20);
R39 = new Rectangle(5208, 798, 6, 20);
R40 = new Rectangle(6086, 800, 6, 20);
R41 = new Rectangle(5298, 698, 6, 20);
R42 = new Rectangle(5194, 595, 6, 20);
R43 = new Rectangle(6893, 996, 6, 20);
R44 = new Rectangle(6608, 912, 6, 20);
R45 = new Rectangle(6548, 805, 6, 20);
R46 = new Rectangle(6809, 806, 6, 20);
R47 = new Rectangle(6916, 698, 6, 20);
#endregion
#region wall
wall1 = new Rectangle(250, 1761, 6, 200);
wall2 = new Rectangle(870, 1757, 6, 200);
wall3 = new Rectangle(-12, 0, 6, 4000);
wall4 = new Rectangle(1060, 1757, 6, 200);
wall5 = new Rectangle(1155, 1755, 6, 200);
wall6 = new Rectangle(1294, 1755, 6, 200);
wall7 = new Rectangle(1409, 1753, 6, 200);
wall8 = new Rectangle(1535, 1753, 6, 200);
wall9 = new Rectangle(1738, 1755, 6, 200);
wall10 = new Rectangle(1888, 1755, 6, 200);
wall11 = new Rectangle(2002, 1696, 6, 400);
wall12 = new Rectangle(2611, 1696, 6, 400);
wall13 = new Rectangle(2812, 1300, 6, 1000);
wall14 = new Rectangle(3353, 1300, 6, 1000);
wall15 = new Rectangle(6257, 1292, 6, 1000);
wall16 = new Rectangle(8103, 1295, 6, 1001);
wall17 = new Rectangle(2613, 1189, 6, 114);
wall18 = new Rectangle(3613, 812, 6, 95);
wall19 = new Rectangle(3982, 1656, 20, 1155);
wall20 = new Rectangle(4124, 1810, 6, 1000);
wall21 = new Rectangle(6453, 805, 6, 108);
wall22 = new Rectangle(6790, 698, 6, 109);
wall23 = new Rectangle(7112, 696, 6, 601);
wall24 = new Rectangle(7249, 696, 6, 598);
wall25 = new Rectangle(7614, 1292, 6, 1001);
wall26 = new Rectangle(8155, 0, 6, 1293);
wall27 = new Rectangle(7793, 2811, 6, 1536);
wall28 = new Rectangle(8125, 2811, 6, 573);
wall29 = new Rectangle(8122, 3599, 6, 441);
wall30 = new Rectangle(8361, 3389, 6, 395);
wall31 = new Rectangle(8637, 2811, 6, 983);
wall32 = new Rectangle(9013, 3906, 6, 102);
wall33 = new Rectangle(9330, 3906, 6, 1099);
wall34 = new Rectangle(9489, 3840, 6, 1165);
wall35 = new Rectangle(9577, 3840, 6, 1165);
wall36 = new Rectangle(9692, 3789, 6, 1216);
wall37 = new Rectangle(9794, 3789, 6, 1216);
wall38 = new Rectangle(9914, 3738, 6, 1267);
wall39 = new Rectangle(10022, 3738, 6, 1267);
wall40 = new Rectangle(10146, 3700, 6, 1305);
#endregion
roof1 = new Rectangle(3987, 1641, 157, 10);
toStage4e1 = false;
stageEndCT = 0;
cameraMaxX = 9693;
cameraMaxY = 3258;
drgnX = 12;
drgnY = 1613;
drgnFacingDir = 0;
drgnHitTimer = 0;
drgnDamageTaken = 0;
clawDir = 0;
breathDir = 0;
clawX = 127;
breathX = 110;
drgnFaceR = true;
gearCT = 0;
gearFrame = 0;
gearAct = 0;
gearHP = 60;
gate4e1Y = 0;
#region whistle
whistleRandom = -1;
note1Measure = 0;
note1Beat = 0;
note1xPos = drgnX + 40;
note1yPos = drgnY + 40;
note1xVel = 3;
note1yVel = -2;
note2Measure = 0;
note2Beat = 0;
note2xPos = drgnX + 40;
note2yPos = drgnY + 40;
note2xVel = 3;
note2yVel = -2;
note3Measure = 0;
note3Beat = 0;
note3xPos = drgnX + 40;
note3yPos = drgnY + 40;
note3xVel = 3;
note3yVel = -2;
note4Measure = 0;
note4Beat = 0;
note4xPos = drgnX + 40;
note4yPos = drgnY + 40;
note4xVel = 3;
note4yVel = -2;
#endregion
//lancer
#region e1
e1spawn = true;
e1CT = 0;
e1timer = 0;
e1HP = 28;
e1armor = 0;
e1X = 9478;
e1Y = 3694;
e1reload = 120;
e1act = 0;
e1facing = 0;
e1frame = 0;
e1Opacity = 255;
e1invTimer = 0;
e1knockbackTimer = 0;
e1projHeight = 0;
e1projWidth = 0;
e1hitTimer = 0;
e1invBlink = 255;
e1Attack = 1;
e1FireVul = 0;
e1BoltVul = 1;
e1AcidVul = 0;
e1faceR = false;
e1invulnerable = false;
e1knockback = false;
e1knockbackRes = false;
e1onGround = true;
e1proximity = false;
e1touchWallL = false;
e1touchWallR = false;
e1breathhit = false;
e1clawhit = false;
e1frozen = false;
e1peaceful = false;
e1frRes = true;
e1BurnVul = false;
e1ShockVul = false;
e1peaceRes = true;
e1coins = false;
e1smoke = false;
e1smokeCT = 0;
e1coinValue = 110;
e1coinType = 0;
e1altAnimCT = 0;
#endregion
#region e2
e2spawn = true;
e2CT = 0;
e2timer = 0;
e2HP = 28;
e2armor = 0;
e2X = 9906;
e2Y = 3592;
e2reload = 120;
e2act = 0;
e2facing = 0;
e2frame = 0;
e2Opacity = 255;
e2invTimer = 0;
e2knockbackTimer = 0;
e2projHeight = 0;
e2projWidth = 0;
e2hitTimer = 0;
e2invBlink = 255;
e2Attack = 1;
e2FireVul = 0;
e2BoltVul = 1;
e2AcidVul = 0;
e2faceR = false;
e2invulnerable = false;
e2knockback = false;
e2knockbackRes = false;
e2onGround = true;
e2proximity = false;
e2touchWallL = false;
e2touchWallR = false;
e2breathhit = false;
e2clawhit = false;
e2frozen = false;
e2peaceful = false;
e2frRes = true;
e2BurnVul = false;
e2ShockVul = false;
e2peaceRes = true;
e2coins = false;
e2smoke = false;
e2smokeCT = 0;
e2coinValue = 130;
e2coinType = 0;
e2altAnimCT = 0;
#endregion
//pikeman
#region e3
e3spawn = true;
e3CT = 0;
e3timer = 0;
e3HP = 20;
e3armor = 0;
e3X = 2468;
e3Y = 1154;
e3act = 0;
e3facing = 0;
e3frame = 0;
e3Opacity = 255;
e3invTimer = 0;
e3knockbackTimer = 0;
e3projHeight = 0;
e3projWidth = 0;
e3hitTimer = 0;
e3invBlink = 255;
e3Attack = 1;
e3FireVul = 0;
e3BoltVul = 0;
e3AcidVul = 2;
e3faceR = false;
e3invulnerable = false;
e3knockback = false;
e3knockbackRes = false;
e3onGround = true;
e3proximity = false;
e3touchWallL = false;
e3touchWallR = false;
e3breathhit = false;
e3clawhit = false;
e3frozen = false;
e3peaceful = false;
e3frRes = false;
e3BurnVul = false;
e3ShockVul = false;
e3peaceRes = true;
e3coins = false;
e3smoke = false;
e3smokeCT = 0;
e3coinValue = 120;
e3coinType = 0;
e3altAnimCT = 0;
#endregion
#region e4
e4spawn = true;
e4CT = 0;
e4timer = 0;
e4HP = 20;
e4armor = 0;
e4X = 4374;
e4Y = 863;
e4act = 0;
e4facing = 0;
e4frame = 0;
e4Opacity = 255;
e4invTimer = 0;
e4knockbackTimer = 0;
e4projHeight = 0;
e4projWidth = 0;
e4hitTimer = 0;
e4invBlink = 255;
e4Attack = 1;
e4FireVul = 0;
e4BoltVul = 0;
e4AcidVul = 2;
e4faceR = false;
e4invulnerable = false;
e4knockback = false;
e4knockbackRes = false;
e4onGround = true;
e4proximity = false;
e4touchWallL = false;
e4touchWallR = false;
e4breathhit = false;
e4clawhit = false;
e4frozen = false;
e4peaceful = false;
e4frRes = false;
e4BurnVul = false;
e4ShockVul = false;
e4peaceRes = true;
e4coins = false;
e4smoke = false;
e4smokeCT = 0;
e4coinValue = 120;
e4coinType = 0;
e4altAnimCT = 0;
#endregion
#region e5
e5spawn = true;
e5CT = 0;
e5timer = 0;
e5HP = 20;
e5armor = 0;
e5X = 6370;
e5Y = 657;
e5act = 0;
e5facing = 0;
e5frame = 0;
e5Opacity = 255;
e5invTimer = 0;
e5knockbackTimer = 0;
e5projHeight = 0;
e5projWidth = 0;
e5hitTimer = 0;
e5invBlink = 255;
e5Attack = 1;
e5FireVul = 0;
e5BoltVul = 0;
e5AcidVul = 2;
e5faceR = false;
e5invulnerable = false;
e5knockback = false;
e5knockbackRes = false;
e5onGround = true;
e5proximity = false;
e5touchWallL = false;
e5touchWallR = false;
e5breathhit = false;
e5clawhit = false;
e5frozen = false;
e5peaceful = false;
e5frRes = false;
e5BurnVul = false;
e5ShockVul = false;
e5peaceRes = true;
e5coins = false;
e5smoke = false;
e5smokeCT = 0;
e5coinValue = 120;
e5coinType = 0;
e5altAnimCT = 0;
#endregion
//hamzat
#region e6
e6spawn = true;
e6CT = 0;
e6timer = 0;
e6HP = 16;
e6armor = 0;
e6X = 2122;
e6Y = 1548;
e6act = 1;
e6facing = 6;
e6frame = 0;
e6Opacity = 255;
e6invTimer = 0;
e6knockbackTimer = 0;
e6projHeight = 0;
e6projWidth = 0;
e6hitTimer = 0;
e6invBlink = 255;
e6Attack = 1;
e6FireVul = 1;
e6BoltVul = 0;
e6AcidVul = 0;
e6faceR = true;
e6invulnerable = false;
e6knockback = false;
e6knockbackRes = false;
e6onGround = true;
e6proximity = false;
e6touchWallL = false;
e6touchWallR = false;
e6breathhit = false;
e6clawhit = false;
e6frozen = false;
e6peaceful = false;
e6frRes = false;
e6BurnVul = false;
e6ShockVul = false;
e6peaceRes = true;
e6coins = false;
e6smoke = false;
e6smokeCT = 0;
e6coinValue = 40;
e6coinType = 0;
e6altAnimCT = 0;
#endregion
#region e7
e7spawn = true;
e7CT = 0;
e7timer = 0;
e7HP = 16;
e7armor = 0;
e7X = 3000;
e7Y = 1152;
e7act = 1;
e7facing = 6;
e7frame = 0;
e7Opacity = 255;
e7invTimer = 0;
e7knockbackTimer = 0;
e7projHeight = 0;
e7projWidth = 0;
e7hitTimer = 0;
e7invBlink = 255;
e7Attack = 1;
e7FireVul = 1;
e7BoltVul = 0;
e7AcidVul = 0;
e7faceR = true;
e7invulnerable = false;
e7knockback = false;
e7knockbackRes = false;
e7onGround = true;
e7proximity = false;
e7touchWallL = false;
e7touchWallR = false;
e7breathhit = false;
e7clawhit = false;
e7frozen = false;
e7peaceful = false;
e7frRes = false;
e7BurnVul = false;
e7ShockVul = false;
e7peaceRes = true;
e7coins = false;
e7smoke = false;
e7smokeCT = 0;
e7coinValue = 40;
e7coinType = 0;
e7altAnimCT = 0;
#endregion
#region e8
e8spawn = true;
e8CT = 0;
e8timer = 0;
e8HP = 16;
e8armor = 0;
e8X = 5832;
e8Y = 652;
e8act = 1;
e8facing = 6;
e8frame = 0;
e8Opacity = 255;
e8invTimer = 0;
e8knockbackTimer = 0;
e8projHeight = 0;
e8projWidth = 0;
e8hitTimer = 0;
e8invBlink = 255;
e8Attack = 1;
e8FireVul = 1;
e8BoltVul = 0;
e8AcidVul = 0;
e8faceR = true;
e8invulnerable = false;
e8knockback = false;
e8knockbackRes = false;
e8onGround = true;
e8proximity = false;
e8touchWallL = false;
e8touchWallR = false;
e8breathhit = false;
e8clawhit = false;
e8frozen = false;
e8peaceful = false;
e8frRes = false;
e8BurnVul = false;
e8ShockVul = false;
e8peaceRes = true;
e8coins = false;
e8smoke = false;
e8smokeCT = 0;
e8coinValue = 40;
e8coinType = 0;
e8altAnimCT = 0;
#endregion
//sax
#region e9
e9spawn = true;
e9CT = 0;
e9timer = 0;
e9HP = 17;
e9armor = 0;
e9X = 2493;
e9Y = 749;
e9act = 0;
e9facing = 0;
e9frame = 0;
e9Opacity = 255;
e9invTimer = 0;
e9knockbackTimer = 0;
e9projHeight = 0;
e9projWidth = 0;
e9hitTimer = 0;
e9invBlink = 255;
e9Attack = 1;
e9FireVul = 2;
e9BoltVul = 0;
e9AcidVul = 0;
e9faceR = false;
e9invulnerable = false;
e9knockback = false;
e9knockbackRes = false;
e9onGround = true;
e9proximity = false;
e9touchWallL = false;
e9touchWallR = false;
e9breathhit = false;
e9clawhit = false;
e9frozen = false;
e9peaceful = false;
e9frRes = false;
e9BurnVul = true;
e9ShockVul = false;
e9peaceRes = false;
e9coins = false;
e9smoke = false;
e9smokeCT = 0;
e9coinValue = 30;
e9coinType = 0;
e9altAnimCT = 0;
#endregion
#region e10
e10spawn = true;
e10CT = 0;
e10timer = 0;
e10HP = 17;
e10armor = 0;
e10X = 3100;
e10Y = 245;
e10act = 0;
e10facing = 0;
e10frame = 0;
e10Opacity = 255;
e10invTimer = 0;
e10knockbackTimer = 0;
e10projHeight = 0;
e10projWidth = 0;
e10hitTimer = 0;
e10invBlink = 255;
e10Attack = 1;
e10FireVul = 2;
e10BoltVul = 0;
e10AcidVul = 0;
e10faceR = false;
e10invulnerable = false;
e10knockback = false;
e10knockbackRes = false;
e10onGround = true;
e10proximity = false;
e10touchWallL = false;
e10touchWallR = false;
e10breathhit = false;
e10clawhit = false;
e10frozen = false;
e10peaceful = false;
e10frRes = false;
e10BurnVul = true;
e10ShockVul = false;
e10peaceRes = false;
e10coins = false;
e10smoke = false;
e10smokeCT = 0;
e10coinValue = 30;
e10coinType = 0;
e10altAnimCT = 0;
#endregion
#region e11
e11spawn = true;
e11CT = 0;
e11timer = 0;
e11HP = 17;
e11armor = 0;
e11X = 4656;
e11Y = 749;
e11act = 0;
e11facing = 0;
e11frame = 0;
e11Opacity = 255;
e11invTimer = 0;
e11knockbackTimer = 0;
e11projHeight = 0;
e11projWidth = 0;
e11hitTimer = 0;
e11invBlink = 255;
e11Attack = 1;
e11FireVul = 2;
e11BoltVul = 0;
e11AcidVul = 0;
e11faceR = false;
e11invulnerable = false;
e11knockback = false;
e11knockbackRes = false;
e11onGround = true;
e11proximity = false;
e11touchWallL = false;
e11touchWallR = false;
e11breathhit = false;
e11clawhit = false;
e11frozen = false;
e11peaceful = false;
e11frRes = false;
e11BurnVul = true;
e11ShockVul = false;
e11peaceRes = false;
e11coins = false;
e11smoke = false;
e11smokeCT = 0;
e11coinValue = 30;
e11coinType = 0;
e11altAnimCT = 0;
#endregion
#region e12
e12spawn = true;
e12CT = 0;
e12timer = 0;
e12HP = 17;
e12armor = 0;
e12X = 5359;
e12Y = 1139;
e12act = 0;
e12facing = 0;
e12frame = 0;
e12Opacity = 255;
e12invTimer = 0;
e12knockbackTimer = 0;
e12projHeight = 0;
e12projWidth = 0;
e12hitTimer = 0;
e12invBlink = 255;
e12Attack = 1;
e12FireVul = 2;
e12BoltVul = 0;
e12AcidVul = 0;
e12faceR = false;
e12invulnerable = false;
e12knockback = false;
e12knockbackRes = false;
e12onGround = true;
e12proximity = false;
e12touchWallL = false;
e12touchWallR = false;
e12breathhit = false;
e12clawhit = false;
e12frozen = false;
e12peaceful = false;
e12frRes = false;
e12BurnVul = true;
e12ShockVul = false;
e12peaceRes = false;
e12coins = false;
e12smoke = false;
e12smokeCT = 0;
e12coinValue = 30;
e12coinType = 0;
e12altAnimCT = 0;
#endregion
#region obstacles
obs1Wait = 180;
obs2Wait = 120;
obs3Wait = 60;
obs4Wait = 0;
obs5Wait = 180;
obs6Wait = 120;
obs7Wait = 160;
obs8Wait = 0;
obs9Wait = 180;
obs10Wait = 120;
obs1Y = 0;
obs1YVel = 0;
obs2Y = 0;
obs2YVel = 0;
obs3Y = 0;
obs3YVel = 0;
obs4Y = 0;
obs4YVel = 0;
obs5Y = 0;
obs5YVel = 0;
obs6Y = 0;
obs6YVel = 0;
obs7Y = 0;
obs7YVel = 0;
obs8Y = 0;
obs8YVel = 0;
obs1Up = false;
obs2Up = false;
obs3Up = false;
obs4Up = false;
obs5Up = false;
obs6Up = false;
obs7Up = false;
obs8Up = false;
#endregion
stage4e1 = true;
}
#endregion
#region toStage 4-2
if (toStage4e2 == true)
{
drawStages = new DrawStages(16, stageManager);
drawSky = new DrawSky(3, stageManager);
loadOcean = new LoadOcean(1, stageManager);
loadPikeman = new LoadPikeman(2, stageManager);
loadBone = new LoadBone(true, stageManager);
loadSax = new LoadSax(true, stageManager);
loadTuba = new LoadTuba(true, stageManager);
loadLancer = new LoadLancer(true, stageManager);
loadWalker = new LoadWalker(true, stageManager);
loadFlier = new LoadFlier(true, stageManager);
npc4e2 = new Npc4e2(true, stageManager);
playStageMusic = new PlayStageMusic(6, stageBGM);
loopSpin = new LoopSpin(true, breathSFX);
loopLaser = new LoopLaser(true, breathSFX);
draw4e2 = new Draw4e2(true, stageManager);
drawTreasureText = new DrawTreasureText(12,
stageManager, languageType);
#region floor
floor1 = new Rectangle(0, floor1y = 2882, 528, 20);
floor2 = new Rectangle(495, floor2y = 2771, 711, 20);
floor3 = new Rectangle(1165, floor3y = 2642, 1626, 20);
floor4 = new Rectangle(2747, floor4y = 2470, 2975, 20);
floor5 = new Rectangle(3109, floor5y = 2265, 283, 20);
floor6 = new Rectangle(3651, floor6y = 2265, 147, 20);
floor7 = new Rectangle(3849, floor7y = 2267, 161, 20);
floor8 = new Rectangle(4075, floor8y = 2266, 139, 20);
floor9 = new Rectangle(4383, floor9y = 2268, 261, 20);
floor10 = new Rectangle(4809, floor10y = 2271, 95, 20);
floor11 = new Rectangle(5091, floor11y = 2267, 117, 20);
floor12 = new Rectangle(5348, floor12y = 2265, 123, 20);
floor13 = new Rectangle(5631, floor13y = 2266, 116, 20);
floor14 = new Rectangle(5693, floor14y = 2527, 312, 20);
floor15 = new Rectangle(5982, floor15y = 2365, 436, 20);
floor16 = new Rectangle(6341, floor16y = 2221, 1360,
20);
floor17 = new Rectangle(7676, floor17y = 2097, 1339,
20);
floor18 = new Rectangle(8936, floor18y = 2218, 6847,
20);
floor19 = new Rectangle(13061, floor19y = 2120, 109,
20);
floor20 = new Rectangle(13343, floor20y = 2125, 123,
20);
floor21 = new Rectangle(12936, floor21y = 2019, 126,
20);
floor22 = new Rectangle(13807, floor22y = 1907, 197,
20);
floor23 = new Rectangle(12712, floor23y = 1897, 194,
20);
floor24 = new Rectangle(12736, floor24y = 1834, 74, 20);
floor25 = new Rectangle(12806, floor25y = 1768, 93, 20);
floor26 = new Rectangle(12944, floor26y = 1702, 1093,
20);
floor27 = new Rectangle(6415, floor27y = 2460, 262, 20);
floor28 = new Rectangle(6669, floor28y = 2592, 221, 20);
floor29 = new Rectangle(6879, floor29y = 2961, 516, 20);
floor30 = new Rectangle(7389, floor30y = 3215, 1178,
20);
floor31 = new Rectangle(7463, floor31y = 3083, 174, 20);
floor32 = new Rectangle(7715, floor32y = 2963, 167, 20);
floor33 = new Rectangle(7056, floor33y = 2837, 147, 20);
floor34 = new Rectangle(8002, floor34y = 2836, 193, 20);
floor35 = new Rectangle(7286, floor35y = 2718, 155, 20);
floor36 = new Rectangle(7678, floor36y = 2715, 138, 20);
floor37 = new Rectangle(8259, floor37y = 2713, 179, 20);
floor38 = new Rectangle(7496, floor38y = 2597, 180, 20);
floor39 = new Rectangle(7749, floor39y = 2464, 162, 20);
floor40 = new Rectangle(7951, floor40y = 2343, 98, 20);
floor41 = new Rectangle(8105, floor41y = 2341, 862, 20);
#endregion
#region temp wall
L1 = new Rectangle(3097, 2270, 6, 20);
L2 = new Rectangle(3639, 2270, 6, 20);
L3 = new Rectangle(3857, 2272, 6, 20);
L4 = new Rectangle(4063, 2271, 6, 20);
L5 = new Rectangle(4371, 2273, 6, 20);
L6 = new Rectangle(4797, 2276, 6, 20);
L7 = new Rectangle(5079, 2272, 6, 20);
L8 = new Rectangle(5336, 2270, 6, 20);
L9 = new Rectangle(5619, 2271, 6, 20);
L10 = new Rectangle(7044, 2842, 6, 20);
L11 = new Rectangle(7274, 2723, 6, 20);
L12 = new Rectangle(7451, 3088, 6, 20);
L13 = new Rectangle(7484, 2597, 6, 20);
L14 = new Rectangle(7666, 2720, 6, 20);
L15 = new Rectangle(7703, 2968, 6, 20);
L16 = new Rectangle(7737, 2464, 6, 20);
L17 = new Rectangle(7939, 2343, 6, 20);
L18 = new Rectangle(7990, 2836, 6, 20);
L19 = new Rectangle(8093, 2346, 6, 20);
L20 = new Rectangle(8247, 2713, 6, 20);
L21 = new Rectangle(6329, 2226, 6, 20);
R1 = new Rectangle(3394, 2270, 6, 20);
R2 = new Rectangle(3810, 2270, 6, 20);
R3 = new Rectangle(4022, 2272, 6, 20);
R4 = new Rectangle(4226, 2271, 6, 20);
R5 = new Rectangle(4656, 2273, 6, 20);
R6 = new Rectangle(4916, 2276, 6, 20);
R7 = new Rectangle(5220, 2272, 6, 20);
R8 = new Rectangle(5483, 2270, 6, 20);
R9 = new Rectangle(5759, 2271, 6, 20);
R10 = new Rectangle(7216, 2842, 6, 20);
R11 = new Rectangle(7453, 2723, 6, 20);
R12 = new Rectangle(7649, 3088, 6, 20);
R13 = new Rectangle(7688, 2597, 6, 20);
R14 = new Rectangle(7828, 2720, 6, 20);
R15 = new Rectangle(7894, 2968, 6, 20);
R16 = new Rectangle(7923, 2464, 6, 20);
R17 = new Rectangle(8061, 2343, 6, 20);
R18 = new Rectangle(8207, 2836, 6, 20);
R19 = new Rectangle(8450, 2713, 6, 20);
R20 = new Rectangle(9063, 3002, 6, 20);
#endregion
#region wall
wall1 = new Rectangle(-12, 0, 6, 4000);
wall2 = new Rectangle(519, 2776, 6, 112);
wall3 = new Rectangle(1191, 2647, 6, 130);
wall4 = new Rectangle(2771, 2475, 6, 173);
wall5 = new Rectangle(5700, 2475, 6, 58);
wall6 = new Rectangle(5992, 2370, 6, 163);
wall7 = new Rectangle(6415, 2370, 6, 96);
wall8 = new Rectangle(6672, 2465, 6, 133);
wall9 = new Rectangle(6881, 2597, 6, 370);
wall10 = new Rectangle(7390, 2966, 6, 255);
wall11 = new Rectangle(8566, 2346, 6, 875);
wall12 = new Rectangle(8938, 2223, 6, 124);
wall13 = new Rectangle(7696, 2102, 6, 125);
wall14 = new Rectangle(12386, 0, 6, 1989);
wall15 = new Rectangle(12712, 0, 6, 1898);
#endregion
@Gnumaru
Copy link

Gnumaru commented Oct 16, 2020

107765 lines of pure madness.

I have never used xna framework before but since this "Game1" class have two override functions called "Update" and "Draw", at least there seems to be where the loop happens. Nonetheless, putting the entire game logic inside only one update function and managing everything using only #region is really daunting.

@seyja
Copy link

seyja commented Apr 30, 2021

what the fuck

@Rbocarro
Copy link

Rbocarro commented May 7, 2021

madlad

@paisu46
Copy link

paisu46 commented Aug 2, 2021

average 1 file and basic operations only chad

@python-42
Copy link

Dear god

@ElectricKitty
Copy link

"art should comfort the disturbed and disturb the comfortable” – Cesar A. Cruz.

@utkarsh-aryan
Copy link

Do you think God stays in heaven because he, too, lives in fear of what he's created here on earth?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment