示例#1
0
 public InGameCamera(Vector2 position, Animation animation)
     : base(position, animation)
 {
     screenPosition.X = GameLibrary.Global.Screen.width / 2;
     screenPosition.Y = GameLibrary.Global.Screen.height * 0.95f;
     color = Color.Yellow;
     //drawList.Add(this);
 }
        public ParticleGameObject(Vector2 position, Animation animation, int alpha, int alphaAccel, float rotation, float rotationAccel,
            float scale, float scaleAccel, float speed, float accel)
            : base(position, animation)
        {
            _alphaAccel = alphaAccel;
            _rotationAccel = rotationAccel;
            _scaleAccel = scaleAccel;

            this.rotation = rotation;
            this.color = color;
            this.scale = scale;
            velocity = Trig.getVelocity(rotation, speed);
            _accel = accel;

            _alpha = alpha;
            _alphaAccel = alphaAccel;
        }
示例#3
0
 public GenericGun(Vector2 position, Animation animation)
     : base(position, animation)
 {
     coolDownTime = 3;
     _recoil = 0.1f;
 }
示例#4
0
 public ParticleGun(Vector2 position, Animation animation)
     : base(position, animation)
 {
 }
 public AnimatedGameObject(Vector2 position, Animation animation)
     : base(position)
 {
     this.animation = animation;
 }