Пример #1
0
 //List<Lantern> lanterns;
 public GameplayScreen(Game game)
 {
     this.game = game;
     world = new World((Game1)(game), this);
     animation = new Animation();
     player = new Player(new PlayerState(new Vector2(400, 400), new Vector2()));
     entities = new List<Entity>();
     lantern = new Lantern(player.playerState.position, player, true);
 }
Пример #2
0
 public Map(Game1 game, World world, Player player, int x, int y)
     : base(game)
 {
     this.game = game;
     this.world = world;
     this.player = player;
     colFileName = world.getCollisionMapFilename(x, y);
     bgFileName = world.getBackgroundFilename(x, y);
     this.DrawOrder = 0;
     game.Components.Add(this);
     loadMap();
 }
Пример #3
0
 protected EventMap(Game1 game, World world, Player player, int x, int y)
     : base(game, world, player, x, y)
 {
 }
Пример #4
0
 public FirstFeatherMap(Game1 game, World world, Player player, Vector2 playPos)
     : base(game, world, player, 4, 2)
 {
     playerPosition = playPos;
     inCabThing = false;
 }