Skip to content

Commit

Permalink
Added a wee bit'o doc for a sprite sheet class
Browse files Browse the repository at this point in the history
  • Loading branch information
rbgrouleff committed Feb 9, 2012
1 parent dfe9dc4 commit 02ca806
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -29,6 +29,16 @@ map = new Squash.Map '/images/map.png', tiles
scene.setBackground map
```

Before I throw myself at the background, I think I'll do a little sprite
sheet class first:

```coffeescript
sheet = new Squash.SpriteSheet img_path, tile_width, tile_height

new Squash.Tile sheet, col_no, row_no # Default to height = width = 1

new Squash.Tile sheet, col_no_other, row_no_other, width, height
```
As always - since this hasn't been coded up yet - feel free to suggest improvements!

## Usage
Expand Down

0 comments on commit 02ca806

Please sign in to comment.