Skip to content
Browse files

Simple startup code with an empty GameWorld and debug console. It's p…

…robably a good idea to change the package name 'game' for each new game.
  • Loading branch information...
1 parent a5b3cde commit b82e748581e4ed1ed0c79abc0f3a96e36b63ed8b @djcsdy committed Jan 27, 2012
Showing with 27 additions and 0 deletions.
  1. +6 −0 src/net/noiseinstitute/game/GameWorld.as
  2. +21 −0 src/net/noiseinstitute/game/Main.as
View
6 src/net/noiseinstitute/game/GameWorld.as
@@ -0,0 +1,6 @@
+package net.noiseinstitute.game {
+ import net.flashpunk.World;
+
+ public class GameWorld extends World {
+ }
+}
View
21 src/net/noiseinstitute/game/Main.as
@@ -0,0 +1,21 @@
+package net.noiseinstitute.game {
+ import net.flashpunk.Engine;
+ import net.flashpunk.FP;
+
+ [SWF(width="640", height="480", frameRate="60", backgroundColor="000000")]
+ public class Main extends Engine {
+ public static const WIDTH:int = 640;
+ public static const HEIGHT:int = 480;
+
+ public static const LOGIC_FPS:int = 60;
+
+ public function Main () {
+ super(WIDTH, HEIGHT, LOGIC_FPS, true);
+
+ FP.screen.color = 0x000000;
+ FP.console.enable();
+
+ FP.world = new GameWorld();
+ }
+ }
+}

0 comments on commit b82e748

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