source: 2013/27/ArttuY/trunk/RampageRebellion/RampageRebellion/RampageRebellion/RRShipWeapon.cs @ 10337

Revision 4451, 992 bytes checked in by eearyla, 7 years ago (diff)

Backup

Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using Jypeli;
6using Jypeli.Assets;
7using Jypeli.Controls;
8using Jypeli.Effects;
9using Jypeli.Widgets;
10
11/// @author     Jaakko Lipas
12/// @version    Dev - 18.4.2013
13///
14/// <summary>
15/// Class that inherits Weapon, used to add a weapon to the player.
16/// </summary>
17public class ShipWeapon : RRWeapon
18{
19    public ShipWeapon(double width, double height)
20        : base(width, height)
21    {
22       
23    }
24
25    protected override PhysicsObject CreateProjectile()
26    {
27        RRProjectile playerLaser = new RRProjectile(20, 3, 0.1, new Color(255, 55, 128, 128));
28        playerLaser.Damage = 8;
29        playerLaser.Tag = "Z";
30        playerLaser.CollisionIgnoreGroup = 2;
31        playerLaser.explosionUponDestruction = false;
32        playerLaser.CanRotate = false;
33        this.Power.Value = RampageRebellion.PLAYER_WEAPONPOWER;
34
35        return playerLaser;
36    }
37}
Note: See TracBrowser for help on using the repository browser.