//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); }
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(); }
protected EventMap(Game1 game, World world, Player player, int x, int y) : base(game, world, player, x, y) { }
public FirstFeatherMap(Game1 game, World world, Player player, Vector2 playPos) : base(game, world, player, 4, 2) { playerPosition = playPos; inCabThing = false; }