/// <summary> /// Constructor /// </summary> public PrisonGame() { // XNA startup graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; // Create objects for the parts of the ship for(int i=1; i<=6; i++) { phibesModels.Add(new PrisonModel(this, i)); } // Create a player object player = new Player(this); alien = new Alien(this); dalek = new Dalek(this); //gort = new Gort(this); // Some basic setup for the display window this.IsMouseVisible = true; this.Window.AllowUserResizing = true; this.graphics.PreferredBackBufferWidth = 1024; this.graphics.PreferredBackBufferHeight = 768; // Basic camera settings camera = new Camera(graphics); camera.FieldOfView = MathHelper.ToRadians(42); camera.Eye = new Vector3(800, 180, 1053); camera.Center = new Vector3(275, 90, 1053); lineDraw = new PSLineDraw(this, Camera); this.Components.Add(lineDraw); }
public AlienParent(PrisonGame game) { this.game = game; alien = new Alien(game, "Alien"); alien.AddAssetClip("catcheat", "Alien-catcheat"); alien.AddAssetClip("ob", "Alien-ob"); alien.AddAssetClip("stance", "Alien-stance"); alien.AddAssetClip("trantrum", "Alien-trantrum"); alien.AddAssetClip("walkloop", "Alien-walkloop"); alien.AddAssetClip("walkstart", "Alien-walkstart"); SetPlayerTransform(); }