Created
April 2, 2009 21:23
-
-
Save alexyoung/89500 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 GameBoard | |
| class Food < GameItem | |
| def initialize(app, x, y, colour = '#00ff00') | |
| super | |
| end | |
| end | |
| def initialize(app) | |
| @food_items = [] | |
| @app = app | |
| end | |
| def add_food(x, y) | |
| @food_items << Food.new(@app, x, y) | |
| end | |
| def collision_at?(x, y) | |
| end | |
| def remove_food_at(x, y) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment