Beispiel #1
0
 public override void Activate(Player player)
 {
 }
Beispiel #2
0
 public override void Walkover(Player player)
 {
     manager.GoToLevel(linked, playerPos);
 }
Beispiel #3
0
 //Player walks over object.
 public abstract void Walkover(Player player);
Beispiel #4
0
 //Player presses action key while standing on object.
 public abstract void Activate(Player player);
Beispiel #5
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     spriteBatch = new SpriteBatch(GraphicsDevice);
     System.Diagnostics.Debug.WriteLine("Width:" + GraphicsDevice.Viewport.Width + " Height:" + GraphicsDevice.Viewport.Height + " AspectRatio:" + GraphicsDevice.Viewport.AspectRatio);
     player = new Player(this, Point.Zero, Content.Load<Texture2D>("Sprites/player"));
     manager = new LevelManager(Content, this);
     graphics.ToggleFullScreen();
     System.Diagnostics.Debug.WriteLine("Width:" + GraphicsDevice.Viewport.Width + " Height:" + GraphicsDevice.Viewport.Height + " AspectRatio:" + GraphicsDevice.Viewport.AspectRatio);
     graphics.PreferredBackBufferWidth = 640;
     graphics.PreferredBackBufferHeight = 480;
     graphics.ApplyChanges();
     System.Diagnostics.Debug.WriteLine("Width:" + GraphicsDevice.Viewport.Width + " Height:" + GraphicsDevice.Viewport.Height + " AspectRatio:" + GraphicsDevice.Viewport.AspectRatio);
     ChangeLevel(manager.ship_2, new Point(48, 30));
 }
Beispiel #6
0
 public override void Walkover(Player player)
 {
 }
Beispiel #7
0
 public override void Activate(Player player)
 {
     trigger.Trigger(this);
 }