Skip to content

Instantly share code, notes, and snippets.

@alexyoung
Created April 2, 2009 11:03
Show Gist options
  • Select an option

  • Save alexyoung/89137 to your computer and use it in GitHub Desktop.

Select an option

Save alexyoung/89137 to your computer and use it in GitHub Desktop.
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