public Hero(Vector2f position, Window2D window2D, Level level) { elapsedBonusTime = 0; weapon = Weapons.Pistol; this.level = level; HeroImage = new Image("Sprites/Player/player_gun.png"); Texture = new Texture(HeroImage); TextureRect = new IntRect(0, 0, 49, 43); Scale = new Vector2f(1f, 1f); Origin = new Vector2f(GetLocalBounds().Width / 2, GetLocalBounds().Height / 2); Position = position; sight = new Sight(window2D); window = window2D; IsAlive = true; timeSinceLastShot = 0f; }
public Menu(Window2D window) { window2D = window; }
public Level(string mapPath, Window2D window) { this.mapPath = mapPath; window2D = window; }