コード例 #1
0
ファイル: Sprite.cs プロジェクト: yichen0831/SokobanMonoGame
 public Sprite(Texture2D texture2D)
 {
     textureRegion = new TextureRegion(texture2D, texture2D.Bounds);
 }
コード例 #2
0
 public Crate(Texture2D texture2D)
 {
     normalTextureRegion    = new TextureRegion(texture2D, new Rectangle(0, 0, GameParameters.TileSize, GameParameters.TileSize));
     activatedTextureRegion = new TextureRegion(texture2D, new Rectangle(GameParameters.TileSize, 0, GameParameters.TileSize, GameParameters.TileSize));
 }
コード例 #3
0
ファイル: Sprite.cs プロジェクト: yichen0831/SokobanMonoGame
 public Sprite(TextureRegion textureRegion)
 {
     this.textureRegion = textureRegion;
 }