/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
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)); }
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; }
public Levels(Game1 game1) { game = game1; }
public Player(Game1 game1) : base(game1) { // TODO: Construct any child components here this.game = game1; }
public GameMap(Game1 game1, int width, int height) : base(game1) { this.WindowSize = new int[] { width, height }; game = game1; }