public AbstractBullet(AnimPlayer ownerPlayer) { this.ownerPlayer = ownerPlayer; // Link the normalized direction we are aiming at to the bullet. normalizedDirection = ownerPlayer.inputDevice.getAimDirectionNormalized(); // Set base the position: "steun vector" for the bullet: this.position = ownerPlayer.getBulletSpawnLocation(); // ownerPlayer.getShoulderLocation(); // Because it should appear as if the bullet comes from the gun barrel, we increment the position. // Increase this digit to spawn the bullet farther away from the barrel. this.position += normalizedDirection * 45; for (int i = 0; i < maxFlame; i++) flameTexture[i] = Game1.INSTANCE.Content.Load<Texture2D>("Images/Weapons/Flame/" + (i + startFlame)); }