public static Image GetSlugImage(Slug slug) { if (!slug.IsAlive) return SoulImage; if (!slug.IsVisible) return SlugInvisible; return SlugImage; }
private void StartNewGame(int mapIndex) { // Load selected map. Map.Instance.CurrentMap = mapIndex; Player = new Slug(); Player.Create(); // Events Player.LocationChanged += new Maze.Classes.Object.PositionHandler(Player_OnLocationChanged); // Load first level Map.Instance.CurrentLevel = 0; ClearMainMenu(); this.gameTime.Start(); this.playStarted = true; this.gamePaused = false; this.lastTickTime = 0; this.systemTimer.Start(); }