Skip to content

Commit

Permalink
Update recipes.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dcrawl authored Oct 29, 2023
1 parent 1a87747 commit b115ec0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/guides/recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,11 @@ def tick args
w: 50,
h: 50)
end
```

You can represent a sprite using the attr_sprite helper method:

```ruby
class BlueSquare
# invoke the helper function at the class level for
# anything you want to represent as a sprite
Expand Down

0 comments on commit b115ec0

Please sign in to comment.