Skip to content

Commit

Permalink
Fixes for previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mirrorcult committed Aug 5, 2022
1 parent 2809afc commit ce38d7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions src/Main.as
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,14 @@ package

public static const DEPTH_SPEECH:int = -7;

public static var instance:Main;

private var focus:Boolean = true;

public function Main()
{
super(320,240,60,true);
instance = this;
FP.screen.scale = 2;
FP.screen.color = 0;
Input.define("right",Key.RIGHT);
Expand Down
16 changes: 8 additions & 8 deletions src/game/menus/MainMenu.as
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ package game.menus
}
if(this.credits && Input.pressed(Key.INSERT) && Input.check(Key.CONTROL) && CustomStage.customStage == null)
{
Assets.SndMenuSelect.play();
Assets.instance.SndMenuSelect.play();
FP.stage.addChild(new CustomStage(this));
this.deactivateAllButtons();
}
Expand Down Expand Up @@ -294,13 +294,13 @@ package game.menus
Assets.setMusic(Assets.MusMenu);
this.clearButtons();
this.addButton(new MenuButton(160,225,"Back",this.gotoMain,Assets.SndMenuCancel));
this.addButton(new MenuButton(80,80,"Show Coins: " + this.getBoolName(Options.showCoins),this.toggleShowCoins,Assets.instance.SndMenuSelect));
this.addButton(new MenuButton(80,100,"Show Time: " + this.getBoolName(Options.showTime),this.toggleShowTime,Assets.instance.SndMenuSelect));
this.addButton(new MenuButton(80,120,"UP to Jump: " + this.getBoolName(Options.upToJump),this.toggleUpToJump,Assets.instance.SndMenuSelect));
this.addButton(new MenuButton(80,140,"Robot Voice: " + this.getBoolName(Options.voices),this.toggleVoice,Assets.instance.SndMenuSelect));
this.addButton(new MenuButton(80,160,"Audio: " + this.getVolumeName(),this.switchVolume,Assets.instance.SndMenuSelect));
this.addButton(new MenuButton(80,180,"Particles: " + this.getBoolName(Options.particles),this.toggleParticles,Assets.instance.SndMenuSelect));
this.addButton(new MenuButton(80,200,"Fullscreen: " + this.getBoolName(Options.fullscreen),this.toggleFullscreen,Assets.instance.SndMenuSelect));
this.addButton(new MenuButton(160,80,"Show Coins: " + this.getBoolName(Options.showCoins),this.toggleShowCoins,Assets.instance.SndMenuSelect));
this.addButton(new MenuButton(160,100,"Show Time: " + this.getBoolName(Options.showTime),this.toggleShowTime,Assets.instance.SndMenuSelect));
this.addButton(new MenuButton(160,120,"UP to Jump: " + this.getBoolName(Options.upToJump),this.toggleUpToJump,Assets.instance.SndMenuSelect));
this.addButton(new MenuButton(160,140,"Robot Voice: " + this.getBoolName(Options.voices),this.toggleVoice,Assets.instance.SndMenuSelect));
this.addButton(new MenuButton(160,160,"Audio: " + this.getVolumeName(),this.switchVolume,Assets.instance.SndMenuSelect));
this.addButton(new MenuButton(160,180,"Particles: " + this.getBoolName(Options.particles),this.toggleParticles,Assets.instance.SndMenuSelect));
this.addButton(new MenuButton(160,200,"Fullscreen: " + this.getBoolName(Options.fullscreen),this.toggleFullscreen,Assets.instance.SndMenuSelect));
}

private function gotoStats(m:MenuButton = null) : void
Expand Down

0 comments on commit ce38d7f

Please sign in to comment.