2009-05-12から1日間の記事一覧

C#のプロパティというもの。

これは、starterkit: Platformerの中のLevel.csというソースの一部なのだが、 public Rectangle GetBounds(int x, int y) { return new Rectangle(x * Tile.Width, y * Tile.Height, Tile.Width, Tile.Height); } /// /// Width of level measured in tiles.…