Example #1
0
        public Demon()
        {
            Texture = Moxy.ContentManager.Load<Texture2D>("Characters//demonSpriteSheet");
            Animations = new AnimationManager(Texture, new Animation[]
            {
                new Animation("Idle", new Rectangle[]
                {
                    new Rectangle(0, 0, 128, 128),
                    new Rectangle(128, 0, 128, 128),
                    new Rectangle(256, 0, 128, 128)
                }, new TimeSpan(0, 0, 0, 0, 100))

            });

            Animations.SetAnimation("Idle");
            Health = 80;
            TurnSpeed = MathHelper.Pi / 14f;
            LowSpeed = 60f;
            HighSpeed = 70f;
            Collision = new Rectangle(0, 0, 128, 128);
            Origin = new Vector2(64, 64);
            CollisionRadius = 64;
            ScoreGiven = 56;

            OnCollisionWithPlayer += (Demon_OnCollisionWithPlayer);
        }
Example #2
0
        public EnergyBar()
        {
            BubbleAnimation = new AnimationManager(Texture, new Animation[]
            {
                new Animation("Bubbles!", new Rectangle[]
                {
                    new Rectangle(36, 14, 24, 143),
                    new Rectangle(100, 14, 24, 143),
                    new Rectangle(68, 14, 24, 143),

                }, new TimeSpan(0, 0, 0, 0, 300))
            });
            BubbleAnimation.SetAnimation("Bubbles!");
        }
Example #3
0
        public Slime()
        {
            Texture = Moxy.ContentManager.Load<Texture2D>("Characters//EnemySpriteSheet");
            Animations = new AnimationManager(Texture, new Animation[]
            {
                new Animation("Idle_Ice", new Rectangle[]
                {
                    new Rectangle(0, 0, 96, 96),
                    new Rectangle(96, 0, 96, 96),
                    new Rectangle(192, 0, 96, 96)
                }),
                new Animation("Idle_Fire", new Rectangle[]
                {
                    new Rectangle(0, 96, 96, 96),
                    new Rectangle(96, 96, 96, 96),
                    new Rectangle(192, 96, 96, 96)
                }),
                new Animation("Idle_Rock", new Rectangle[]
                {
                    new Rectangle(0, 192, 96, 96),
                    new Rectangle(96, 192, 96, 96),
                    new Rectangle(192, 192, 96, 96)
                }),

            });
            Animations.SetAnimation("Idle_Ice");
            Health = 17;
            TurnSpeed = MathHelper.Pi/14f;
            LowSpeed = 100;
            HighSpeed = 150;
            Collision = new Rectangle(0, 0, 96, 96);
            Origin = new Vector2(42, 54);
            CollisionRadius = 48;
            Light = new Light(new Color(0f, 0.4f, 0f, 0.3f));
            Light.Scale = .4f;
            ScoreGiven = 56;

            EntityType = global::Moxy.EntityType.Slime;
            OnCollisionWithPlayer += Slime_OnCollisionWithPlayer;
        }
Example #4
0
        public AngryRock()
        {
            Texture = Moxy.ContentManager.Load<Texture2D>("Characters//EnemySpriteSheet");
            Animations = new AnimationManager(Texture, new Animation[]
            {
                new Animation("Idle_Ice", new Rectangle[]
                {
                    new Rectangle(0, 0, 96, 96),
                    new Rectangle(96, 0, 96, 96),
                    new Rectangle(192, 0, 96, 96)
                }),
                new Animation("Idle_Fire", new Rectangle[]
                {
                    new Rectangle(0, 96, 96, 96),
                    new Rectangle(96, 96, 96, 96),
                    new Rectangle(192, 96, 96, 96)
                }),
                new Animation("Idle_Rock", new Rectangle[]
                {
                    new Rectangle(0, 192, 96, 96),
                    new Rectangle(96, 192, 96, 96),
                    new Rectangle(192, 192, 96, 96)
                }),

            });
            Animations.SetAnimation("Idle_Rock");
            Health = 17;
            TurnSpeed = MathHelper.Pi / 14f;
            LowSpeed = 100;
            HighSpeed = 150;
            Collision = new Rectangle(0, 0, 96, 96);
            Origin = new Vector2(42, 54);
            CollisionRadius = 48;
            ScoreGiven = 56;

            EntityType = global::Moxy.EntityType.Slime;

            OnCollisionWithPlayer += new EventHandler<Events.GenericEventArgs<Player>>(AngryRock_OnCollisionWithPlayer);
        }
Example #5
0
        public EyeBall()
        {
            Texture = Moxy.ContentManager.Load<Texture2D>("Characters//MonsterEyeSpriteSheet");
            Animations = new AnimationManager(Texture, new Animation[]
            {
                new Animation("Idle", new Rectangle[] {
                    new Rectangle(0, 0, 98, 98),
                    new Rectangle(98, 0, 98, 98),
                    new Rectangle(196, 0, 98, 98)
                })
            });

            Animations.SetAnimation("Idle");
            Health = 10;
            TurnSpeed = MathHelper.Pi / 7f;
            LowSpeed = 150;
            HighSpeed = 300f;
            Collision = new Rectangle(0, 0, 98, 98);
            Origin = new Vector2(49, 50);
            CollisionRadius = 60;
            OnCollisionWithPlayer += EyeBall_OnCollisionWithPlayer;
            ScoreGiven = 56;
        }
Example #6
0
        public PowerGenerator()
        {
            Texture = Moxy.ContentManager.Load<Texture2D>("Characters\\Team1SpriteSheet");
            Animations = new AnimationManager(Texture,
                new Animation[]
                {
                    new Animation("Idle_1", new Rectangle[]
                    {
                        new Rectangle(0, 256, 64, 64),
                    }),
                    new Animation("Idle_2", new Rectangle[]
                    {
                        new Rectangle(0, 320, 64,64 ),
                    }),
                    new Animation("Idle_3", new Rectangle[]
                    {
                        new Rectangle(0, 384, 64, 64),
                    }),
                    new Animation("Idle_4", new Rectangle[]
                    {
                        new Rectangle(0, 448, 64, 64),
                    }),
                    new Animation("Walk_1", new Rectangle[]
                    {
                        new Rectangle(0, 256, 64, 64),
                        new Rectangle(64, 256, 64, 64),
                        new Rectangle(128, 256, 64, 64),
                    }, new TimeSpan(0, 0, 0, 0, 200)),
                    new Animation("Walk_2", new Rectangle[]
                    {
                        new Rectangle(0, 320, 64, 64),
                        new Rectangle(64, 320, 64, 64),
                        new Rectangle(128, 320, 64, 64),
                    }, new TimeSpan(0, 0, 0, 0, 200)),
                    new Animation("Walk_3", new Rectangle[]
                    {
                        new Rectangle(0, 384, 64, 64),
                        new Rectangle(64, 384, 64, 64),
                        new Rectangle(128, 384, 64, 64),
                    }, new TimeSpan(0, 0, 0, 0, 200)),
                    new Animation("Walk_4", new Rectangle[]
                    {
                        new Rectangle(0, 448, 64, 64),
                        new Rectangle(64, 448, 64, 64),
                        new Rectangle(128, 448, 64, 64),
                    }, new TimeSpan(0, 0, 0, 0, 200))
                });

            Animations.SetAnimation("Idle_1");
            EntityType = global::Moxy.EntityType.Generator;
            Health = 100;
            CurrentRunes = new ItemID[4];
            Skills = new List<GeneratorSkill>();
            Skills.Add(new PowerSKill(this));
            Skills.Add(new ProtectionSkill(this));
            Skills.Add(new TriShotSkill(this));
            Skills.Add(new RageSkill(this));
            CurrentSkill = Skills[3];
            ActiveSkills = new List<SkillEffect>();
            CurrentItem = 0;
        }
Example #7
0
        public Gunner()
        {
            PowerCircleTexture = Moxy.ContentManager.Load<Texture2D>("Radius");
            Texture = Moxy.ContentManager.Load<Texture2D>("Characters//Team1SpriteSheet");
            Animations = new AnimationManager(Texture,
                new Animation[]
                {
                    new Animation("Idle_1", new Rectangle[]
                    {
                        new Rectangle(0, 0, 64, 64)
                    }),
                    new Animation("Idle_2", new Rectangle[]
                    {
                        new Rectangle(0, 64, 64, 64)
                    }),
                    new Animation("Idle_3", new Rectangle[]
                    {
                        new Rectangle(0, 128, 64, 64)
                    }),
                    new Animation("Idle_4", new Rectangle[]
                    {
                        new Rectangle(0, 192, 64, 64)
                    }),
                    new Animation("Walk_1", new Rectangle[]
                    {
                        new Rectangle(0, 0, 64, 64),
                        new Rectangle(64, 0, 64, 64),
                        new Rectangle(128, 0, 64, 64),
                    }, new TimeSpan(0, 0, 0, 0, 200)),
                    new Animation("Walk_2", new Rectangle[]
                    {
                        new Rectangle(0, 64, 64, 64),
                        new Rectangle(64, 64, 64, 64),
                        new Rectangle(128, 64, 64, 64),
                    }, new TimeSpan(0, 0, 0, 0, 200)),
                    new Animation("Walk_3", new Rectangle[]
                    {
                        new Rectangle(0, 128, 64, 64),
                        new Rectangle(64, 128, 64, 64),
                        new Rectangle(128, 128, 64, 64),
                    }, new TimeSpan(0, 0, 0, 0, 200)),
                    new Animation("Walk_4", new Rectangle[]
                    {
                        new Rectangle(0, 192, 64, 64),
                        new Rectangle(64, 192, 64, 64),
                        new Rectangle(128, 192, 64, 64),
                    }, new TimeSpan(0, 0, 0, 0, 200))

                });
            EntityType = global::Moxy.EntityType.Gunner;
            Animations.SetAnimation("Walk_1");
            fireSound = Moxy.ContentManager.Load<SoundEffect>("Sounds//Fire");
            fireSoundInstance = fireSound.CreateInstance();
            Health = 100;
            CircleOrigin = new Vector2(PowerCircleTexture.Width / 2f, PowerCircleTexture.Height / 2f);
        }