Example #1
0
 public Room(GeimuGame game)
 {
     Game                = game;
     roomToGoTo          = -1;
     transitionDirection = -1;
     transitionProgress  = 255;
     Sounds              = new SoundManager();
     GameObjectList      = new List <GameObject>();
     GameTileList        = new List <GameTile>();
     GameObjectList.Add(new CrosshairObject(this));
     Width                          = 512;
     Height                         = 512;
     ViewOffset                     = new Vector2(0, 0);
     Background                     = new BackgroundSystem(this);
     Lighting                       = new LightingSystem(this, 16);
     LightingUpdateRate             = 4;
     lightingUpdateRateCounter      = 0;
     NoteText                       = "";
     GoalBlockObject.HasPlayedSound = false;
     AssetManager.RequestSound("mainTheme", (sound) =>
     {
         mainTheme = sound;
     });
     AssetManager.RequestSound("bossTheme", (sound) =>
     {
         bossTheme = sound;
     });
     AssetManager.RequestTexture("whiteChunk", (frames) =>
     {
         whiteChunk = frames[0];
     });
 }
Example #2
0
 static void Main()
 {
     using (var game = new GeimuGame())
         game.Run();
 }