예제 #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);
 }
예제 #2
0
        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)
 {
 }
예제 #5
0
 public AnimatedGameObject(Vector2 position, Animation animation)
     : base(position)
 {
     this.animation = animation;
 }