Skip to content

Commit

Permalink
Merge branch 'game2'
Browse files Browse the repository at this point in the history
  • Loading branch information
arashikou committed Aug 13, 2014
2 parents 77ae37d + 04a325f commit 9dc0beb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions game2-plugmazes/source/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ class TitleState extends FlxState
{
super.update();

if (_currentLevel < 1) _currentLevel = 1;
if (_currentLevel > 3) _currentLevel = 3;

_levelDisplay.text = Std.string(_currentLevel);
_levelDisplay.x = (FlxG.width - _levelDisplay.fieldWidth) / 2;
}
Expand Down

0 comments on commit 9dc0beb

Please sign in to comment.