Example #1
0
 public Compass(Object p_obj)
 {
     tag = "Compass";
     _animationController = new Animations.AnimationController("Compass");
     position             = new Vector2(p_obj.x, p_obj.y);
     size         = new Vector2(16f, 16f);
     state        = State.ACTIVE;
     hitboxSize   = new Vector2(8f, 12f);
     hitboxOffset = new Vector2(4f, 2f);
     UpdateAABB();
 }
Example #2
0
 public HeartContainer(Object p_obj)
 {
     tag = "HeartContainer";
     _animationController = new Animations.AnimationController("HeartContainer");
     spawn = (SpawnType)p_obj.properties.KeyType;
     if (spawn == SpawnType.ALWAYS)
     {
         state = State.ACTIVE;
     }
     position     = new Vector2(p_obj.x, p_obj.y);
     size         = new Vector2(16f, 16f);
     hitboxSize   = new Vector2(12f, 12f);
     hitboxOffset = new Vector2(2f, 2f);
     UpdateAABB();
 }
        public BoomerangItem(Object p_obj)
        {
            tag = "BoomerangItem";
            _animationController = new Animations.AnimationController("BoomerangItem");
            spawn = (SpawnType)p_obj.properties.KeyType;
            if (spawn == SpawnType.ALWAYS)
            {
                state = State.ACTIVE;
            }
            position = new Vector2(p_obj.x, p_obj.y);
            size     = new Vector2(16f, 16f);

            hitboxSize   = new Vector2(8f, 12f);
            hitboxOffset = new Vector2(4f, 2f);
            UpdateAABB();
        }