Пример #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
Пример #2
0
 public Chapter2b(Game1 game)
 {
     this.game = game;
     background = game.Content.Load<Texture2D>("images/broken hallway light");
     lantern = game.Content.Load<Texture2D>("images/lantern");
     //getout = game.Content.Load<SoundEffect>("Sounds/Get Out Sound");
 }
Пример #3
0
 public Text(Game1 game)
 {
     this.game = game;
     textbox = game.Content.Load<Texture2D>("images/Text Box");
     z = game.Content.Load<Texture2D>("images/Z");
     Font = game.Content.Load<SpriteFont>(@"font");
 }
Пример #4
0
 public StartScreen(Game1 game)
 {
     this.game = game;
     texture = game.Content.Load<Texture2D>("images/Code Lords");
     select = game.Content.Load<Texture2D>("images/select");
     binary = game.Content.Load<Texture2D>("images/binary");
     lastState = Keyboard.GetState();
 }
Пример #5
0
 public Prologue(Game1 game)
 {
     this.game = game;
     texture = game.Content.Load<Texture2D>("images/Kurt Weaver IV ID");
     binary = game.Content.Load<Texture2D>("images/Binary");
     flash = game.Content.Load<Texture2D>("images/Flash");
     cursor = game.Content.Load<Texture2D>("images/Cursor");
 }
Пример #6
0
 public Gameplay(Game1 game)
 {
     this.game = game;
     Kurt = game.Content.Load<Texture2D>("images/KURT SPREEDSHEET 2");
     Stam = game.Content.Load<Texture2D>("images/Stamina");
     Heal = game.Content.Load<Texture2D>("images/Health");
     lantern = game.Content.Load<Texture2D>("images/lantern");
     Health = 1000;
     Stamina = 1000;
 }
Пример #7
0
 public Chapter1(Game1 game)
 {
     this.game = game;
     background = game.Content.Load<Texture2D>("images/GOD ROOM");
     cop1 = game.Content.Load<Texture2D>("images/Cop1");
     cop2 = game.Content.Load<Texture2D>("images/Cop2");
     cop3 = game.Content.Load<Texture2D>("images/Cop3");
     coppos1 = new Vector2(600, 900);
     coppos2 = new Vector2(500, 1000);
     coppos3 = new Vector2(500, 800);
     DoorText = new Rectangle(441, 580, 268, 39);
     EmailText = new Rectangle(653, 182, 121, 96);
 }
Пример #8
0
 public Pause(Game1 game)
 {
     this.game = game;
     PauseScreen = game.Content.Load<Texture2D>("images/identity Pause");
     select = game.Content.Load<Texture2D>("images/select");
 }
Пример #9
0
 public RandomRoom(Game1 game)
 {
     background = game.Content.Load<Texture2D>("images/S2");
     toxicgas = game.Content.Load<Texture2D>("images/Toxic Gas");
     this.game = game;
 }
Пример #10
0
 public Music(Game1 game)
 {
     this.game = game;
     Theme = game.Content.Load<SoundEffect>("Sounds/Theme");
 }
Пример #11
0
 public JumpScare(Game1 game)
 {
     this.game = game;
     picture = game.Content.Load<Texture2D>("images/JumpScare1");
 }
Пример #12
0
 public Chapter2(Game1 game)
 {
     this.game = game;
     background = game.Content.Load<Texture2D>("images/Chapter 2");
     Cop1 = game.Content.Load<Texture2D>("images/Cop Back Sprite Brown Hair");
 }