Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Level
- {
- private LevelTile[] level;
- private width;
- private height;
- public Level (width : int, height : int)
- {
- level = new LevelTile[width,height];
- this.width = width;
- this.height = height;
- }
- public LevelTile GetTile (x : int, y : int)
- {
- return level[x + y*height];
- }
- public void SetTile (x : int, y : int, LevelTile tile)
- {
- level[x + y*height] = tile;
- }
- }
Add Comment
Please, Sign In to add comment