Skip to content
Browse files

Loneliness tweaks.

  • Loading branch information...
1 parent 1a6329d commit 608d3ed73b4fc5304746057566d797de8b1d2f95 @JordanMagnuson committed Apr 12, 2012
View
3 .gitignore
@@ -5,4 +5,5 @@
/flash builder bin-debug/
/flash builder release/
/flashdevelop bin/
-/.settings/
+/.settings/
+/bin-release-temp/
View
2 src/Main-app.xml
@@ -22,7 +22,7 @@
<!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade.
Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
An updated version of application must have a versionNumber value higher than the previous version. Required for namespace >= 2.5 . -->
- <versionNumber>0.0.2</versionNumber>
+ <versionNumber>0.0.4</versionNumber>
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
<!-- Description, displayed in the AIR application installer.
View
16 src/Menu/NavigationBar.as
@@ -6,6 +6,7 @@ package menu
import net.flashpunk.graphics.Text;
import net.flashpunk.FP;
import jui.Button;
+ import flash.desktop.NativeApplication;
/**
* ...
@@ -61,7 +62,15 @@ package menu
// Cambodia
FP.world.add(cambodiaButton = new Button(741, 0, new Image(Assets.NAV_CAMBODIA), null, Global.NAV_HOVER_SCALE, null, null, false, gotoCambodia)); ;
- cambodiaButton.layer = layer;
+ cambodiaButton.layer = layer;
+
+ // Credits
+ FP.world.add(creditsButton = new Button(858, 0, new Image(Assets.NAV_CREDITS), null, Global.NAV_HOVER_SCALE, null, null, false, null)); ;
+ creditsButton.layer = layer;
+
+ // Quit
+ FP.world.add(quitButton = new Button(953, 0, new Image(Assets.NAV_QUIT), null, Global.NAV_HOVER_SCALE, null, null, false, quit)); ;
+ quitButton.layer = layer;
// Navigation Underline
switch(Global.navButtonIndex)
@@ -91,6 +100,11 @@ package menu
}
+ public function quit():void
+ {
+ NativeApplication.nativeApplication.exit();
+ }
+
public function gotoIntro():void
{
if (Global.inTransition)
View
10 src/loneliness/game/Other.as
@@ -38,10 +38,12 @@ package loneliness.game
graphic = image;
- image.originX = image.width / 2;
- image.originY = image.height / 2;
- image.x = -image.originX;
- image.y = -image.originY;
+ //image.originX = image.width / 2;
+ //image.originY = image.height / 2;
+ //image.x = -image.originX;
+ //image.y = -image.originY;
+
+ image.centerOO();
setHitbox(image.width, image.height, image.originX, image.originY);
setSpdMax();
View
10 src/loneliness/game/Player.as
@@ -42,10 +42,12 @@ package loneliness.game
graphic = image;
layer = 0;
- image.originX = image.width / 2;
- image.originY = image.height / 2;
- image.x = -image.originX;
- image.y = -image.originY;
+ //image.originX = image.width / 2;
+ //image.originY = image.height / 2;
+ //image.x = -image.originX;
+ //image.y = -image.originY;
+
+ image.centerOO();
setHitbox(image.width, image.height, image.originX, image.originY);
View
2 src/loneliness/game/PressEscText.as
@@ -45,7 +45,7 @@ package loneliness.game
public function showMouse():void
{
- Mouse.show();
+ //Mouse.show();
//FP.world.add(new ManyReportText);
}

0 comments on commit 608d3ed

Please sign in to comment.
Something went wrong with that request. Please try again.