Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Menu system object for future save games

edited November 2011 in Code Sharing Posts: 622

I was thinking about saving games in future versions and experimented with a menu system.

The code contains the main and two objects (hope I pasted them in the right order) http://pastebin.com/F8cwsx20

The menu system holds multiple instance of an object. If you put your entire game/project as an object, the menu can control it.

The sample object it comes with in just a random circle wiggle. The 16 boxes that come up by default are the 16 instances/partitions/saves/objects it can hold.

Using the menu as is put some constraints on your code. However it does show you can pass an object name to an object without actually creating the object. The object you pass to can then create the object. Also the menu boxes are drawn based on the golden ratio.

Sign In or Register to comment.