public static TextureLoader GetInstance()
        {
            if (instance == null)
                instance = new TextureLoader();

            return instance;
        }
 public TitleSceneBase()
 {
     this.interval = 5;
     sloader = SoundLoader.GetInstance();
     tLoader = TextureLoader.GetInstance();
     SSMath.Init();
 }
示例#3
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();
 }
示例#4
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();
 }
示例#5
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;
 }
示例#6
0
        public Item()
            : base()
        {
            this.loader = TextureLoader.GetInstance();
            this.MoveSpeed = 2;

            this.collider = new collid.SquareCollider(this.GetType(), null);
            this.collider.SquarePosition =
                new position.SquareSSPositon(
                    new position.SSPosition(this.GetTexturePosition().PosX, this.GetTexturePosition().PosY),
                    new position.SSPosition(this.GetTexturePosition().PosX,  this.GetTexturePosition().PosY + this.GetTextureSize().Height),
                    new position.SSPosition(this.GetTexturePosition().PosX + this.GetTextureSize().Width, this.GetTexturePosition().PosY),
                    new position.SSPosition(this.GetTexturePosition().PosX + this.GetTextureSize().Width, this.GetTexturePosition().PosY + this.GetTextureSize().Height));
        }
        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();
        }