Changeset 4477 for 2013/27


Ignore:
Timestamp:
2013-07-05 12:13:52 (6 years ago)
Author:
jaollipa
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2013/27/JaakkoL/RampageRebellion/RampageRebellion/RampageRebellion/RRBegin.cs

    r4463 r4477  
    421421                Keyboard.Listen(Key.P, ButtonState.Pressed, delegate { Unpause(player, controllerType, primaryWeapon); }, null); 
    422422                //JAKE: Weapon upgrade keys here 
    423                 Keyboard.Listen(Key.C, ButtonState.Pressed, triggerUpdateKeys, null, 0); 
    424                 Keyboard.Listen(Key.V, ButtonState.Pressed, triggerUpdateKeys, null, 1); 
    425                 Keyboard.Listen(Key.B, ButtonState.Pressed, triggerUpdateKeys, null, 2); 
    426                 Keyboard.Listen(Key.N, ButtonState.Pressed, triggerUpdateKeys, null, 3); 
     423                Keyboard.Listen(Key.Q, ButtonState.Pressed, triggerUpdateKeys, null, 0); 
     424                Keyboard.Listen(Key.W, ButtonState.Pressed, triggerUpdateKeys, null, 1); 
     425                Keyboard.Listen(Key.E, ButtonState.Pressed, triggerUpdateKeys, null, 2); 
     426                Keyboard.Listen(Key.R, ButtonState.Pressed, triggerUpdateKeys, null, 3); 
    427427                break; 
    428428 
     
    648648        SoundEffect WeaponFireLarge = LoadSoundEffect("LargeShot"); 
    649649 
     650        // Primary Weapon (Plasma Cannon): all-purpose 
     651 
    650652        //Upgrade levels. Same for each weapon for now 
    651653        double pwSizeMultiplier = ((pwArsenalUpgrades[0] >= 1) ? (2) : (1)); 
     
    653655        double pwDamageBonusMultiplier = 1 + (1.5 * ((pwArsenalUpgrades[0] >= 2) ? (1) : (0))); 
    654656 
    655         primaryWeapon = new RRWeapon(5, 10, true, PLAYER_WEAPONPOWER, PLAYER_FIRERATE * pwFireBonusMultiplier, new RRProjectileGenerator(20 * pwSizeMultiplier, 3 * pwSizeMultiplier, 0.1, new Color(255, 55 + pwArsenalUpgrades[0] * 10, 128, 128), 10 * pwDamageBonusMultiplier)); 
     657        primaryWeapon = new RRWeapon(5, 10, true, PLAYER_WEAPONPOWER, PLAYER_FIRERATE * pwFireBonusMultiplier, new RRProjectileGenerator(14 * pwSizeMultiplier, 14 * pwSizeMultiplier, 0.1, new Color(55, 255, 128, 128), 10 * pwDamageBonusMultiplier)); 
    656658        primaryWeapon.Position += new Vector(0, 30); 
     659        primaryWeapon.projectileGenerator.projectileShape = Shape.Diamond; 
    657660        primaryWeapon.projectileGenerator.defaultCollisionIgnoreGroup = 3; 
    658661        primaryWeapon.projectileGenerator.defaultTag = "PP"; 
     
    662665        primaryWeapon.Angle += Angle.FromDegrees(90); 
    663666 
    664         //primaryWeapon.ProjectileCollision = playerCollisionHandler; 
     667        // Secondary Weapon (Laser Blaster): laser, pierces smaller enemies 
    665668 
    666669        double swSizeMultiplier = ((pwArsenalUpgrades[1] >= 1) ? (2) : (1)); 
     
    668671        double swDamageBonusMultiplier = 1 + (2.2 * ((pwArsenalUpgrades[1] >= 3) ? (1) : (0))); 
    669672 
    670         //ShipWeapon secWeapon = new ShipWeapon(20, 30); 
    671         secWeapon = new RRWeapon(5, 10, true, PLAYER_WEAPONPOWER, PLAYER_FIRERATE * 10 * swFireBonusMultiplier, new RRProjectileGenerator(190 * swSizeMultiplier, 3 * swSizeMultiplier, 0.01, new Color(33, 211 + pwArsenalUpgrades[1] * 10, 111, 128), 1 * swDamageBonusMultiplier)); 
    672         secWeapon.Position += new Vector(0, 100); 
     673        secWeapon = new RRWeapon(5, 10, true, PLAYER_WEAPONPOWER / 2, PLAYER_FIRERATE * 10 * swFireBonusMultiplier, new RRProjectileGenerator(80 * swSizeMultiplier, 3 * swSizeMultiplier, 0.01, new Color(233, 111, 111, 128), 0.85 * swDamageBonusMultiplier)); 
     674        secWeapon.Position += new Vector(0, 60); 
    673675        secWeapon.projectileGenerator.defaultCollisionIgnoreGroup = 3; 
    674676        secWeapon.projectileGenerator.ignoresCollisionResponse = true; 
     
    679681        secWeapon.Angle += Angle.FromDegrees(90); 
    680682 
     683        // Third Weapon (Minigun): inaccurate but powerful 
     684 
    681685        double triSizeMultiplier = ((pwArsenalUpgrades[2] >= 1) ? (2) : (1)); 
    682686        double triFireBonusMultiplier = 1 + (5.2 * ((pwArsenalUpgrades[2] >= 3) ? (1) : (0))); 
    683687        double triDamageBonusMultiplier = 1 + (4.2 * ((pwArsenalUpgrades[2] >= 2) ? (1) : (0))); 
    684688 
    685         //Third weapon 
    686  
    687         triWeapon = new RRWeapon(5, 10, true, PLAYER_WEAPONPOWER, PLAYER_FIRERATE * 5 * triFireBonusMultiplier, new RRProjectileGenerator(30 * triSizeMultiplier, 3 * triSizeMultiplier, 0.1, new Color(222, 222 - pwArsenalUpgrades[2] * 40, 11, 28), 1.5 * triDamageBonusMultiplier)); 
     689        triWeapon = new RRWeapon(5, 10, true, PLAYER_WEAPONPOWER, PLAYER_FIRERATE * 5 * triFireBonusMultiplier, new RRProjectileGenerator(9 * triSizeMultiplier, 9 * triSizeMultiplier, 0.1, new Color(222, 222, 11, 128), 2.25 * triDamageBonusMultiplier)); 
    688690        triWeapon.Position += new Vector(0, 35); 
    689691        triWeapon.projectileGenerator.defaultCollisionIgnoreGroup = 3; 
     
    696698        triWeapon.randomizedAngleSlate = 14 + pwArsenalUpgrades[2].Value*10.9; 
    697699 
     700        // Bomb: special weapon, deals extreme damage and clears all enemy bullets from the screen for its duration. Access the explosion's parameters from BombExplosion, under the region Colliders. 
    698701 
    699702        double bombSizeMultiplier = ((pwArsenalUpgrades[3] >= 1) ? (2) : (1)); 
     
    701704        double bombDamageBonusMultiplier = 1 + (3 * ((pwArsenalUpgrades[3] >= 2) ? (1) : (0))); 
    702705 
    703         //And the BOMB! 
    704  
    705         bomb = new RRWeapon(30, 30, true, PLAYER_WEAPONPOWER * 2, PLAYER_FIRERATE / 10 * bombFireBonusMultiplier, new RRProjectileGenerator(30 * bombSizeMultiplier, 30 * bombSizeMultiplier, 0.2, new Color(111, 111 + pwArsenalUpgrades[2] * 10, 111, 128), 50 * bombDamageBonusMultiplier)); 
     706        bomb = new RRWeapon(30, 30, true, PLAYER_WEAPONPOWER * 2, PLAYER_FIRERATE / 10 * bombFireBonusMultiplier, new RRProjectileGenerator(30 * bombSizeMultiplier, 30 * bombSizeMultiplier, 0.2, new Color(111, 111, 111, 128), 50 * bombDamageBonusMultiplier)); 
    706707        bomb.projectileGenerator.projectileShape = Shape.Circle; 
    707708        bomb.projectileGenerator.defaultCollisionIgnoreGroup = 3; 
Note: See TracChangeset for help on using the changeset viewer.