コード例 #1
0
ファイル: Block.cs プロジェクト: Harrum/TestGamePlsIgnore
 public BouncyBlock(float x, float y, BaseTexture texture)
     : base(x, y, Block.WIDTH, Block.HEIGHT)
 {
     this.SpeedX = speed;
     base.SetTexture(texture);
     base.Decelleration = 0;
 }
コード例 #2
0
 public BaseEntity(float x, float y, float width, float height)
 {
     this.X = x;
     this.Y = y;
     this.Width = width;
     this.Height = height;
     SetHitbox(new RectangleF(0, 0, Width, Height));
     this.Mirrored = false;
     this.Layer = 1;
     this.Texture = null;
 }
コード例 #3
0
ファイル: Block.cs プロジェクト: Harrum/TestGamePlsIgnore
 public FallingBlock(float x, float y, BaseTexture texture)
     : base(x, y, Block.WIDTH, Block.HEIGHT)
 {
     this.IsAirborne = true;
     base.SetTexture(texture);
     this.Weight = 0.1f;
 }
コード例 #4
0
ファイル: Block.cs プロジェクト: Harrum/TestGamePlsIgnore
 public Block(float x, float y, BaseTexture texture)
     : base(x, y, WIDTH, HEIGHT)
 {
     base.SetTexture(texture);
 }
コード例 #5
0
 public void ChangeTexture(BaseTexture texture)
 {
     base.SetTexture(texture);
 }
コード例 #6
0
 protected void SetTexture(BaseTexture texture)
 {
     if(texture != null)
     {
         this.Texture = texture;
     }
 }