Beispiel #1
0
        public Ghost(float x, float y, bool impostor)
        {
            X        = x;
            Y        = y;
            Impostor = impostor;

            mySprite = new Spritemap <string>(Assets.GFX_GHOST_SHEET, 22, 20);
            mySprite.Add("idle", new int[] { 0, 1, 2, 3 }, new float[] { 8f });
            mySprite.Add("distort", new int[] { 8, 9, 10 }, new float[] { 1f });
            mySprite.Play("idle");
            mySprite.CenterOrigin();


            mySpeed = new Speed(2);


            Image ghostShadow = new Image(Assets.GFX_SHADOW);

            ghostShadow.CenterOrigin();
            ghostShadow.Alpha = 0.5f;
            AddGraphic(ghostShadow);
            AddGraphic(mySprite);

            AddCollider(new BoxCollider(22, 20, 0));
            Collider.CenterOrigin();
            Layer = 5;

            if (!impostor)
            {
                myController = Global.theController;
            }
        }
        public Drone(float x, float y, int hits)
        {
            X = x;
            Y = y;
            mySprite = new Spritemap<string>(Assets.GFX_DRONE, 32, 38);
            mySprite.CenterOrigin();
            mySprite.Add("open", new int[] { 0, 1, 2, 3, 4 }, new float[] { 6f, 6f, 6f, 6f, 24f });
            mySprite.Anim("open").NoRepeat();
            mySprite.Anim("open").OnComplete = this.PlayShineAnim;
            mySprite.Add("shine", new int[] { 5, 6, 7, 8, 9, 10, 11 }, new float[] { 3f });
            mySprite.Anim("shine").NoRepeat();
            mySprite.Anim("shine").OnComplete = this.ChargeUpLaser;
            mySprite.Add("charge", new int[] { 12, 13 }, new float[] { 8f });
            mySprite.Add("fire", new int[] { 14, 15 }, new float[] { 1f });
            mySprite.Add("dead", new int[] { 16, 17, 18, 19, 20 }, new float[] { 10f, 4f, 4f, 4f, 4f });
            mySprite.Anim("dead").NoRepeat();
            mySprite.Anim("dead").OnComplete = this.StopShaking;
            mySprite.Play("open");
            mySprite.FlippedX = Rand.Bool;

            Image ghostShadow = new Image(Assets.GFX_SHADOW);
            ghostShadow.CenterOrigin();
            ghostShadow.OriginY -= 25;
            ghostShadow.Alpha = 0.5f;
            AddGraphic(ghostShadow);
            AddGraphic(mySprite);

            MaxChargeTime = Rand.Float(60.0f, 240.0f);

            AddCollider(new BoxCollider(32, 38, 2));
            Collider.CenterOrigin();
        }
        public Ghost(float x, float y, bool impostor)
        {
            X = x;
            Y = y;
            Impostor = impostor;

            mySprite = new Spritemap<string>(Assets.GFX_GHOST_SHEET, 22, 20);
            mySprite.Add("idle", new int[] { 0, 1, 2, 3 }, new float[] { 8f });
            mySprite.Add("distort", new int[] { 8, 9, 10 }, new float[] { 1f });
            mySprite.Play("idle");
            mySprite.CenterOrigin();

            mySpeed = new Speed(2);

            Image ghostShadow = new Image(Assets.GFX_SHADOW);
            ghostShadow.CenterOrigin();
            ghostShadow.Alpha = 0.5f;
            AddGraphic(ghostShadow);
            AddGraphic(mySprite);

            AddCollider(new BoxCollider(22, 20, 0));
            Collider.CenterOrigin();
            Layer = 5;

            if(!impostor)
            {
                myController = Global.theController;
            }
        }
 public Heli(float x, float y) : base(x, y)
 {
     spritemap.Add(Animation.Idle, "0-15", 1);
     spritemap.CenterOrigin();
     spritemap.Play(Animation.Idle);
     AddGraphic(spritemap);
     cooldown = 40;
     scene.Add(this);
     fire = scene.random.Next(60 * 1, 60 * 2);
 }
Beispiel #5
0
 public Soldier(float x, float y, Random random, Sound Sound) : base(x, y)
 {
     spritemap = new Spritemap <Animation>("Assets/Img/soldier.png", 64, 29);
     spritemap.Add(Animation.Shoot, "0,1,2,3", 4);
     this.random = random;
     this.Sound  = Sound;
     spritemap.CenterOrigin();
     spritemap.Play(Animation.Shoot);
     AddGraphic(spritemap);
 }
 public Hover(float x, float y) : base(x, y)
 {
     spritemap.Add(Animation.Idle, "0", 4);
     spritemap.Add(Animation.Shoot, "0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33", 2);
     spritemap.CenterOrigin();
     spritemap.Play(Animation.Shoot);
     AddGraphic(spritemap);
     scene.Add(this);
     fire = scene.random.Next(60 * 2, 60 * 3);
 }
Beispiel #7
0
 public Heli(float x, float y, Random random, Sound Sound) : base(x, y)
 {
     spritemap = new Spritemap <Animation>("Assets/Img/heli.png", 88, 91);
     spritemap.Add(Animation.Shoot, "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15", 4);
     this.random = random;
     this.Sound  = Sound;
     spritemap.CenterOrigin();
     spritemap.Play(Animation.Shoot);
     AddGraphic(spritemap);
 }
Beispiel #8
0
 public Rocket(float x, float y, Random random, Sound Sound) : base(x, y)
 {
     spritemap = new Spritemap <Animation>("Assets/Img/rocket.png", 124, 110);
     spritemap.Add(Animation.Shoot, "0,1,2,3,4,5,6,7, 8,9,10,8,9,10,8,9,10,8,9,10,8,9,10,8,9,10,8,9,10,8,9,10,8,9,10,8,9,10, 11,12,13,14,15,16,11,12,13,14,15,16,11,12,13,14,15,16,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26, 27,28,29,30,31,32,33,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,", 4).NoRepeat();
     spritemap.Add(Animation.Idle, "0", 4).NoRepeat();
     this.random = random;
     this.Sound  = Sound;
     spritemap.CenterOrigin();
     spritemap.Play(Animation.Idle);
     AddGraphic(spritemap);
 }
Beispiel #9
0
        public Hover(float x, float y, Random random, Sound Sound) : base(x, y)
        {
            spritemap = new Spritemap <Animation>("Assets/Img/hover.png", 104, 70);

            spritemap.Add(Animation.Shoot, "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35", 3);
            this.random = random;
            this.Sound  = Sound;
            spritemap.CenterOrigin();
            spritemap.Play(Animation.Shoot);
            AddGraphic(spritemap);
        }
Beispiel #10
0
        public Minigun(float x, float y, Random random, Sound Sound) : base(x, y)
        {
            spritemap = new Spritemap <Animation>("Assets/Img/minigun.png", 110, 45);

            spritemap.Add(Animation.Shoot, "0,1,2,3,4,5,6,7,8,9,10,11", 4);
            this.random = random;
            this.Sound  = Sound;
            spritemap.CenterOrigin();
            spritemap.Play(Animation.Shoot);
            AddGraphic(spritemap);
        }
Beispiel #11
0
 public Bradley_rocket(float x, float y, int delay, bool sound) : base(x, y)
 {
     spritemap.Add(Animation.up, "0-2", 1);
     spritemap2.Add(Animation.down, "0-2", 1);
     spritemap.CenterOrigin();
     spritemap2.CenterOrigin();
     Layer      = +600;
     this.delay = delay;
     scene.Add(this);
     this.sound = sound;
 }
Beispiel #12
0
 public grenade(float x, float y, float ex, float ey, int delay, bool ally) : base(x, y)
 {
     spritemap.Add(Animation.rotate, "0-15", 2);
     destination = new Vector2(ex, ey);
     start       = new Vector2(x, y);
     spritemap.CenterOrigin();
     Layer      = -600;
     height     = start.Y - 400;
     this.delay = delay;
     this.ally  = ally;
 }
Beispiel #13
0
 public projectile_mortar(float x, float y, float ex, float ey, int delay) : base(x, y)
 {
     spritemap.Add(Animation.rotate, "0", 2);
     destination = new Vector2(ex, ey);
     start       = new Vector2(x, y);
     spritemap.CenterOrigin();
     Layer           = -600;
     height          = start.Y - 400;
     this.delay      = delay;
     spritemap.Angle = -68;
 }
Beispiel #14
0
 public IronIso(float x, float y, Random random, Sound Sound) : base(x, y)
 {
     spritemap = new Spritemap <Animation>("Assets/Img/iron_iso.png", 148, 78);
     spritemap.Add(Animation.Shoot, "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17", 4).NoRepeat();
     spritemap.Add(Animation.Idle, "0", 4).NoRepeat();
     this.random = random;
     this.Sound  = Sound;
     spritemap.CenterOrigin();
     spritemap.Play(Animation.Idle);
     AddGraphic(spritemap);
 }
Beispiel #15
0
 public Mortar(float x, float y, Random random, Sound Sound) : base(x, y)
 {
     spritemap = new Spritemap <Animation>("Assets/Img/mortar2.png", 53, 54);
     spritemap.Add(Animation.Shoot, "18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18", 4).NoRepeat();
     spritemap.Add(Animation.Idle, "18", 4).NoRepeat();
     this.random = random;
     this.Sound  = Sound;
     spritemap.CenterOrigin();
     spritemap.Play(Animation.Idle);
     AddGraphic(spritemap);
 }
Beispiel #16
0
 public Minigun(float x, float y) : base(x, y)
 {
     spritemap.Add(Animation.Idle, "0, 1, 2, 3", 4);
     spritemap.Add(Animation.Shoot, "4-20", 4).NoRepeat();
     spritemap.CenterOrigin();
     spritemap.Play(Animation.Idle);
     AddGraphic(spritemap);
     scene.Add(this);
     this.cooldown = scene.random.Next(60 * 4, 60 * 6);
     SetHitbox(128, 63, ColliderTags.Garbage);
     Hitbox.CenterOrigin();
 }
Beispiel #17
0
 public FatTonk(float x, float y) : base(x, y)
 {
     spritemap.Add(Animation.Idle, "0, 1", 4);
     spritemap.Add(Animation.Shoot, "2-17", 4).NoRepeat();
     spritemap.CenterOrigin();
     spritemap.Play(Animation.Idle);
     AddGraphic(spritemap);
     cooldown = scene.random.Next(60 * 1, 60 * 2);
     scene.Add(this);
     SetHitbox(130, 62, ColliderTags.Garbage);
     Hitbox.CenterOrigin();
 }
Beispiel #18
0
 public Turret(float x, float y) : base(x, y)
 {
     spritemap.Add(Animation.Idle, "0, 1", 4);
     spritemap.Add(Animation.Shoot, "2-17", 4).NoRepeat();
     spritemap.CenterOrigin();
     spritemap.Play(Animation.Idle);
     AddGraphic(spritemap);
     scene.Add(this);
     cooldown = scene.random.Next(2 * 60, 3 * 60);
     SetHitbox(170, 80, ColliderTags.Garbage);
     Hitbox.CenterOrigin();
 }
Beispiel #19
0
 public Sniper(float x, float y) : base(x, y)
 {
     spritemap.Add(Animation.Idle, "0", 4);
     spritemap.Add(Animation.Shoot, "0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22", 3).NoRepeat();
     spritemap.CenterOrigin();
     spritemap.Play(Animation.Idle);
     AddGraphic(spritemap);
     cooldown = scene.random.Next(60 * 2, 60 * 3);
     scene.Add(this);
     SetHitbox(66, 27, ColliderTags.Garbage);
     Hitbox.CenterOrigin();
 }
Beispiel #20
0
 public Rocket(float x, float y) : base(x, y)
 {
     spritemap.Add(Animation.Idle, "0", 4);
     spritemap.Add(Animation.Shoot, "0,1,2,3,4,5,6,7, 8,9,10,8,9,10,8,9,10,8,9,10,8,9,10,8,9,10,8,9,10,8,9,10,8,9,10,8,9,10, 11,12,13,14,15,16,11,12,13,14,15,16,11,12,13,14,15,16,11,12,13,14,15,16, 17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34", 4).NoRepeat();
     spritemap.CenterOrigin();
     spritemap.Play(Animation.Idle);
     AddGraphic(spritemap);
     cooldown = scene.random.Next(60 * 4, 60 * 5);
     scene.Add(this);
     SetHitbox(124, 110, ColliderTags.Garbage);
     Hitbox.CenterOrigin();
 }
Beispiel #21
0
 public Mortar(float x, float y) : base(x, y)
 {
     spritemap.Add(Animation.Idle, "0", 4);
     spritemap.Add(Animation.Shoot, "0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13", 4).NoRepeat();
     spritemap.CenterOrigin();
     spritemap.Play(Animation.Idle);
     AddGraphic(spritemap);
     cooldown = scene.random.Next(60 * 1, 60 * 2);
     scene.Add(this);
     SetHitbox(40, 42, ColliderTags.Garbage);
     Hitbox.CenterOrigin();
 }
Beispiel #22
0
 public BiggestTonk(float x, float y) : base(x, y)
 {
     spritemap.Add(Animation.Idle, "0", 4);
     spritemap.Add(Animation.Shoot, "0-16", 4).NoRepeat();
     spritemap.CenterOrigin();
     spritemap.Play(Animation.Idle);
     AddGraphic(spritemap);
     cooldown = scene.random.Next(60 * 2, 60 * 3);
     scene.Add(this);
     SetHitbox(187, 80, ColliderTags.Garbage);
     Hitbox.CenterOrigin();
 }
Beispiel #23
0
 public Soldier(float x, float y) : base(x, y)
 {
     spritemap.Add(Animation.Idle, scene.GetAnimationString(0, 0), 5).NoRepeat();
     spritemap.Add(Animation.Throw, scene.GetAnimationString(0, 11), 4).NoRepeat();
     spritemap.CenterOrigin();
     spritemap.Play(Animation.Idle);
     runtime = (int)spritemap.Anim(Animation.Idle).TotalDuration *scene.random.Next(3, 4);
     AddGraphic(spritemap);
     scene.Add(this);
     SetHitbox(43, 42, ColliderTags.Garbage);
     Hitbox.CenterOrigin();
 }
Beispiel #24
0
        public IronSuit(float x, float y, Random random, Sound Sound) : base(x, y)
        {
            spritemap = new Spritemap <Animation>("Assets/Img/Player.png", 139, 61);

            spritemap.Add(Animation.Shoot, "0,1,2,3", 4);
            this.random = random;
            this.Sound  = Sound;
            spritemap.CenterOrigin();
            spritemap.Play(Animation.Shoot);
            //spritemap.
            AddGraphic(spritemap);
        }
Beispiel #25
0
 public Player2(float x, float y) : base(x, y)
 {
     spritemap2.Add(Animation.WalkUp, "4", 1);
     spritemap2.Add(Animation.WalkDown, "1", 1);
     spritemap2.Add(Animation.WalkRight, "10", 1);
     spritemap2.Add(Animation.WalkLeft, "7", 1);
     spritemap2.Add(Animation.Attack, "28, 1", 15).NoRepeat();
     spritemap2.CenterOrigin();
     spritemap2.Play(Animation.WalkDown);
     AddGraphic(spritemap2);
     AddCollider(c);
     c.CenterOrigin();
 }
Beispiel #26
0
 public Player1(float x, float y) : base(x, y)
 {
     spritemap.Add(Animation.WalkUp, "13", 1);
     spritemap.Add(Animation.WalkRight, "9", 1);
     spritemap.Add(Animation.WalkDown, "0", 1);
     spritemap.Add(Animation.WalkLeft, "5", 1);
     spritemap.Add(Animation.Attack, "17, 0", 15).NoRepeat();
     spritemap.CenterOrigin();
     spritemap.Play(Animation.WalkDown);
     AddGraphic(spritemap);
     AddCollider(c);
     c.CenterOrigin();
 }
Beispiel #27
0
        public Character(float x, float y) : base(x, y)
        {
            spritemap.Add(Animation.WalkUp, "0,1,2,3,4,5", 4);
            spritemap.Add(Animation.WalkRight, "6,7,8,9,10,11", 4);
            spritemap.Add(Animation.WalkDown, "12,13,14,15,16,17", 4);
            spritemap.Add(Animation.WalkLeft, "18,19,20,21,22,23", 4);
            spritemap.Add(Animation.PlayOnce, "5,11,17,23,5,11,17,23", 6).NoRepeat();
            spritemap.Add(Animation.Standing, "12,15", 8).PingPong();

            spritemap.CenterOrigin();
            spritemap.Play(Animation.Standing);
            AddGraphic(spritemap);
        }
Beispiel #28
0
        public SimpleAnimation(float x, float y, int w, int h, int frames, string path, float speed)
            : base(x, y)
        {
            var sprite = new Spritemap(Global.imagePath + "FX/" + path + ".png", w, h);

            sprite.CenterOrigin();
            sprite.Add(0, "0-" + frames, speed);
            AddGraphic(sprite);
            sprite.Anims[0].OnComplete += () => { RemoveSelf(); };
            sprite.Anims[0].NoRepeat();
            sprite.Play(0);

            AddComponent(new YSort());
        }
Beispiel #29
0
 public Projectile_rocket(float x, float y, float ex, float ey) : base(x, y)
 {
     spritemap.Add(Animation.Fly, "0-1", 3);
     start = new Vector2(x, y);
     end   = new Vector2(ex, ey);
     //spritemap.Angle = (float)((Math.Atan2(start.X - end.X, start.Y - end.Y)) * (180 / Math.PI)) + 90;
     spritemap.CenterOrigin();
     spritemap.Angle = (float)((Math.Atan2(start.X - end.X, start.Y - end.Y)) * (180 / Math.PI)) + 90;
     AddGraphic(spritemap);
     spritemap.Play(Animation.Fly);
     scene.Add(this);
     sound.Play();
     Layer = -600;
 }
Beispiel #30
0
 public Anakin(int x, int y) : base(x, y)
 {
     s.Add(Animation.WalkRight, "0", 3);
     s.Add(Animation.WalkLeft, "1", 3);
     s.Add(Animation.AttackR, "2,1", 3);
     s.Add(Animation.AttackL, "3,2", 3);
     s.Add(Animation.JumpR, "4", 3);
     s.Add(Animation.JumpL, "5", 3);
     health = 100;
     AddGraphic(s);
     s.CenterOrigin();
     AddCollider(b);
     b.CenterOrigin();
 }
Beispiel #31
0
        //private Sound exSound = new Sound(Assets.SOUND_EFFECTS_EXPLOSION);

        public Effects_Explosion(float x, float y)
            : base(x, y)
        {
            destroyFrame = DESTROY_FRAME;

            sprite = new Spritemap <string>(Assets.SPRITE_EXPLOSION, 64, 64);
            sprite.Add("Emit", new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }, new float[] { 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f, 10f });

            sprite.CenterOrigin();
            sprite.Play("Emit");
            Graphic = sprite;

            Global.camShaker.ShakeCamera();
            //exSound.Play();
        }
Beispiel #32
0
        private void Initialize(float scale)
        {
            _spritemap.Add(PlayerAnimation.Breath, "1,2,3,4,5,5,4,3,2,1", 4);
            _spritemap.Add(PlayerAnimation.Idle, "7,8,9,10,11,12", 4);
            _spritemap.Add(PlayerAnimation.Walk, "14,15,16,17,18,19,20,21,22,23,24", 4);
            _spritemap.Add(PlayerAnimation.Roll, "26,27,28,29,30", 4).NoRepeat();
            _spritemap.Add(PlayerAnimation.Run, "32,33,34,34,33,32", 4);
            _spritemap.Add(PlayerAnimation.Jumping, "36,37,38", 4).NoRepeat();
            _spritemap.Add(PlayerAnimation.Falling, "38,37,36", 4);
            _spritemap.Add(PlayerAnimation.Attacking, "40,41,42,43", 4).NoRepeat();

            _spritemap.Play(PlayerAnimation.Idle);
            _spritemap.CenterOrigin();
            _spritemap.Scale = scale;
            AddGraphic(_spritemap);
        }
Beispiel #33
0
        public Player(float x, float y)
        {
            X = x;
            Y = y;
            // load player sheet
            mySprite = new Spritemap<string>(Assets.GFX_PLAYER, 32, 32);
            mySprite.Add("idle", new int[] { 0 }, new float[] { 60.0f });
            mySprite.Add("run", new int[] { 0, 1, 2, 3, 4, 5 }, new float[] { 6f, 6f, 6f, 6f, 6f, 6f });
            mySprite.Add("dead", new int[] { 6 }, new float[] { 6f });
            mySprite.Play("run");
            mySprite.CenterOrigin();
            AddGraphic(mySprite);
            mySpeed = new Speed(5);

            // Load inventory images
            hand = new Image(Assets.GFX_HAND);
            boots = new Image(Assets.GFX_BOOTS);
            circuit = new Image(Assets.GFX_CIRCUIT);
            wrench = new Image(Assets.GFX_WRENCH);
            crisps = new Image(Assets.GFX_CRISPS);
            donut = new Image(Assets.GFX_DONUT);
            o2tank = new Image(Assets.GFX_O2TANK);
            fireextinguisher = new Image(Assets.GFX_EXTINGUISHER);
            battery = new Image(Assets.GFX_BATTERY);
            tiles = new Image(Assets.GFX_TILE);

            StartInspect = Global.theGame.Timer;

            AddCollider(new CircleCollider(8, 2));
            Collider.CenterOrigin();

            crossHair = new Entity(X, Y, new Image(Assets.XHAIR));
            crossHair.Graphic.CenterOrigin();
            crossHair.AddCollider(new CircleCollider(8, 4));
            crossHair.Collider.CenterOrigin();

            // Default vars
            NoShoes = false;
            HP = 100;
            O2Level = 100;
            Hunger = 0;
            InsideShip = true;
        }
Beispiel #34
0
        public Star(float x, float y, float xspd, float yspd)
        {
            X = x;
            Y = y - 10;
            XSpeed = xspd;
            YSpeed = yspd;

            LifeSpan = 60.0f;

            Spritemap<string> myGfx = new Spritemap<string>(Assets.GFX_STAR, 20, 19);
            myGfx.Add("default", new int[] {0, 1, 2, 3}, new float[] {1f});
            myGfx.Play("default");
            myGfx.Smooth = false;
            myGfx.CenterOrigin();
            //myGfx.Angle = Otter.Rand.Float(-180.0f, 180.0f);
            AddGraphic(myGfx);

            AddCollider(new BoxCollider(20, 19, 1));
            Collider.CenterOrigin();
        }
Beispiel #35
0
        public Ship()
        {
            // Create Graphics
            myShipSprite = new Spritemap<string>(Assets.SHIP_GFX_TEST, 33, 33);
            myShipSprite.Add("ship", new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }, new float[] { 2f });
            myShipSprite.Play("ship");
            myShipSprite.CurrentFrame = 0;

            myFlameSprite = new Spritemap<string>(Assets.SHIP_GFX_TEST_FLAME, 33, 33);
            myFlameSprite.Add("ship", new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }, new float[] { 2f });
            myFlameSprite.Play("ship");
            myFlameSprite.CurrentFrame = 0;
            myFlameSprite.CenterOrigin();

            Graphic = myShipSprite;
            Graphics.Add(myFlameSprite);
            Graphic.CenterOrigin();

            // Create Components
            myMovement = new ShipMovement(128 * 20, 128 * 20, EnginePower);
            myShipController = new ShipController(this);
            AddComponent(myMovement);
        }