Ejemplo n.º 1
0
        public PlayerCrocodile(Vector2 location, WorldBase world, Player transformedFrom) : base(location, world, transformedFrom)
        {
            //this.gravityMultiplier = .3f;
            this.jumpForce = 11f;
            this.walkSpeed = .4f;
            this.width     = 75;
            this.height    = 25;
            this.detectionRadiousModifier = 1.5f;
            this.detectionLevel           = 1.5f;
            movementControlManger         = new CrocodileStandardControlManager(this);
            currentControlManager         = movementControlManger;
            inventory.add(new Item_Bite(1));
            inventory.add(new Item_Totem_Blank(1));

            keyedItems[0] = new Item_Bite(1);
            keyedItems[1] = new Item_Totem_Blank(1);

            selectedFrame = Game1.texture_entity_croc_stand[0];
            walkSpeed     = .4f;
            jumpForce     = 11;
            this.addStatusEffect(new StatusEffect(StatusEffect.status.HEALTHREGEN, 2, 1, true));
            standTex        = Game1.texture_entity_croc_stand[0];
            currentTexIndex = 0;
            runTex          = Game1.texture_entity_croc_walk[0];
            attackTex       = Game1.texture_entity_croc_attack[0];
            currentTexSwap  = texSwapPoint;
        }
Ejemplo n.º 2
0
 public PlayerCondor(Vector2 location, WorldBase world, Player transformedFrom) : base(location, world, transformedFrom)
 {
     this.gravityMultiplier  = .05f;
     this.jumpForce          = .08f;
     this.walkSpeed          = .05f;
     this.frictionMultiplier = .5f;
     this.width            = 50;
     this.height           = 50;
     movementControlManger = new CondorStandardControlManager(this);
     currentControlManager = movementControlManger;
     inventory.add(new Item_Totem_Blank(1));
     keyedItems[0] = new Item_Totem_Blank(1);
     selectedFrame = Game1.texture_condor[0];
 }
Ejemplo n.º 3
0
 public PlayerTaipir(Vector2 location, WorldBase world, Player transformedFrom) : base(location, world, transformedFrom)
 {
     //this.gravityMultiplier = .3f;
     this.jumpForce = 10f;
     this.walkSpeed = .7f;
     this.width     = 40;
     this.height    = 40;
     this.detectionRadiousModifier = 1.5f;
     this.detectionLevel           = 1.5f;
     movementControlManger         = new TaiperStandardControlManager(this);
     currentControlManager         = movementControlManger;
     inventory.add(new Item_Totem_Blank(1));
     keyedItems[0] = new Item_Totem_Blank(1);
     selectedFrame = Game1.texture_tapir[0];
 }
Ejemplo n.º 4
0
        public PlayerRabbit(Vector2 location, WorldBase world, Player transformedFrom) : base(location, world, transformedFrom)
        {
            this.gravityMultiplier        = .7f;
            this.jumpForce                = 10f;
            this.walkSpeed                = 1.4f;
            this.width                    = 20;
            this.height                   = 20;
            this.detectionRadiousModifier = .1f;
            this.detectionLevel           = .1f;
            movementControlManger         = new RabbitStandardControlManager(this);
            currentControlManager         = movementControlManger;
            inventory.add(new Item_Totem_Blank(1));
            selectedFrame = Game1.texture_rabbit_run[0];

            keyedItems[0] = new Item_Totem_Blank(1);
        }