Ejemplo n.º 1
0
 public Boss()
     : base()
 {
     loader = TextureLoader.GetInstance();
     this.position.PosX = SSGame.GetInstance().GetBattleWindowSize().Width / 2;
     this.position.PosY = 100;
     this.collider = new collid.CircleCollider(this.GetType(), typeof(EntityPlayer));
     this.collider.Radius = this.GetRadius();
 }
Ejemplo n.º 2
0
 public Enemy()
     : base()
 {
     this.loader = TextureLoader.GetInstance();
     this.score = 10;
     this.KilledByPlayer += this.OnKilled;
     this.collider = new collid.CircleCollider(this.GetType(), typeof(Enemy), typeof(item.Item));
     this.collider.Radius = this.GetRadius();
 }
Ejemplo n.º 3
0
 public Bom()
     : base()
 {
     this.loader = TextureLoader.GetInstance();
     this.collider = new collid.CircleCollider(this.GetType(), typeof(EntityPlayer), typeof(item.Item));
     this.collider.Radius = this.GetRadius();
     this.info = new collid.CollitionInfo();
     info.CollitionObjectType = this.GetType();
     info.CollitionInteractor = this;
 }
Ejemplo n.º 4
0
        protected override void Init()
        {
            base.Init();

            collid.CircleCollider c = new collid.CircleCollider(this.GetType(), null);
            foreach (var n in noCollitionTypes)
            {
                c.AddNoCollitionTypes(n);
            }
            c.Radius = this.GetRadius();
            this.collider = c;
        }
Ejemplo n.º 5
0
        public EntityPlayer()
            : base()
        {
            this.textureLoader = TextureLoader.GetInstance();
            this.logger.Debug(this.GetType().ToString() + " is create");

            this.Life = 3;
            this.MaxLife = 3;

            this.bomCount = 1;

            this.position.PosX = SSGame.GetInstance().GetBattleWindowSize().Width / 2;
            this.position.PosY = SSGame.GetInstance().GetBattleWindowSize().Height - 100;

            this.textureLoader.LoadSprite("ora.png", 512 / 20, 256 / 20, 1, 20, 20);

            this.mainShotType = MainShotType.Normal;
            this.subShotType = SubShotType.None;

            this.collider = new collid.CircleCollider(this.GetType(), typeof(Bom), typeof(PlayerCircleShot));
            this.collider.Radius = this.GetRadius();
        }