Skip to content

Commit

Permalink
added simple touch controls for game over screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
raptros committed Jul 13, 2010
1 parent f725bac commit 8ff5588
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/DeveloperHappyHour.as
Expand Up @@ -11,7 +11,7 @@ package


import org.flixel.*; import org.flixel.*;


[SWF(width="800", height="480", backgroundColor="#000000", frameRate=14)]; [SWF(width="800", height="480", backgroundColor="#000000", frameRate=30)];
[Frame(factoryClass="Preloader")]; [Frame(factoryClass="Preloader")];


/** /**
Expand All @@ -28,7 +28,7 @@ package
CONFIG::mobile { CONFIG::mobile {
Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT; Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
FlxG.mobile = true; FlxG.mobile = true;
FlxG.scores[2] = 4.0; FlxG.scores[2] = 3.0;
} }
//this makes it easy ... incrementing FlxG.level to advance through the array. //this makes it easy ... incrementing FlxG.level to advance through the array.
//order: maxPatrons, patronStep, pushBack, patronGap, probPatron, whenMoney //order: maxPatrons, patronStep, pushBack, patronGap, probPatron, whenMoney
Expand Down
4 changes: 2 additions & 2 deletions src/GameOverState.as
Expand Up @@ -136,7 +136,7 @@ package
//deal w/ keyboard input for selecting high score //deal w/ keyboard input for selecting high score
if (FlxG.keys.justPressed("UP")) if (FlxG.keys.justPressed("UP"))
whichLetter = (whichLetter + 26) % 27; whichLetter = (whichLetter + 26) % 27;
else if (FlxG.keys.justPressed("DOWN")) else if (FlxG.keys.justPressed("DOWN") || (FlxG.mouse.justPressed() && FlxG.mouse.x < 400))
whichLetter = (whichLetter + 1) % 27; whichLetter = (whichLetter + 1) % 27;
else if (FlxG.keys.justPressed("LEFT")) else if (FlxG.keys.justPressed("LEFT"))
{ {
Expand All @@ -152,7 +152,7 @@ package
if (whichLetter < 0) if (whichLetter < 0)
whichLetter = 0; whichLetter = 0;
} }
else if (FlxG.keys.justPressed("SPACE")) else if (FlxG.keys.justPressed("SPACE") || (FlxG.mouse.justPressed() && FlxG.mouse.x > 400))
{ {
if (whichInitial < 3) if (whichInitial < 3)
{ {
Expand Down

0 comments on commit 8ff5588

Please sign in to comment.