Esempio n. 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
Esempio n. 2
0
        public House(Game1 game1)
            : base(game1)
        {
            // TODO: Construct any child components here

            type = HouseType.Mormorshus;
            destroyed = false;

            game = game1;

            pos = new Vector2(game.rnd.Next(game.MAXX), game.rnd.Next(game.MAXY));
        }
Esempio n. 3
0
        public TinyHuman(Game1 game1)
            : base(game1)
        {
            // TODO: Construct any child components here

            game = game1;

            pos = new Vector2(game.rnd.Next(40), game.rnd.Next(28));
            dir = new Vector2(0, 0);
            speed = 0.2f;
            angle = 0.0f;
            type = (TinyHumanType)game.rnd.Next(7);
            uid = game.rnd.Next(10000);

            lastAction = TimeSpan.FromSeconds(10);
            actionTime = TimeSpan.FromMilliseconds(100);
            doingAction = false;
            dead = false;
        }
Esempio n. 4
0
 public Levels(Game1 game1)
 {
     game = game1;
 }
Esempio n. 5
0
 public Player(Game1 game1)
     : base(game1)
 {
     // TODO: Construct any child components here
     this.game = game1;
 }
Esempio n. 6
0
 public GameMap(Game1 game1, int width, int height)
     : base(game1)
 {
     this.WindowSize = new int[] { width, height };
     game = game1;
 }