Created
April 2, 2009 11:03
-
-
Save alexyoung/89137 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class GameItem | |
| # Position and colour goes here | |
| # Movement commands will be required too | |
| end | |
| class Snake | |
| # The properties of the snake: current position, direction and segments | |
| end | |
| # All shoes apps use Shoes.app | |
| Shoes.app do | |
| main loop do | |
| # Get keyboard commands | |
| # Move the snake | |
| # Draw it | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment