Ejemplo n.º 1
0
    public Bullet(Vec2 pPosition, Vec2 pVelocity, Tank pTank) : base("assets/bulletRed.png")
    {
        MyGame myGame = (MyGame)game;

        SetOrigin(width / 2, height / 2);
        _position   = pPosition;
        _velocity   = pVelocity;
        _tank       = pTank;
        _turretList = myGame.GetTurretList();
    }