Yeah, I made a little game myself and use the classes FoodPiece, Snake, and GameWorld and SnakeGame. Meaning that SnakeGame handles all the stuff such as start/stop game, score counting. The GameWorld is responsible for all the drawing, and calling the update method of the Snake instance, which will then have dedicated code to update itself.

Works nicely!

Weyert
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to