Stu's Rusty Bucket

Fishguts I : State

I have been converting my roguelike state system over into Fishguts. All game state is internally in C code. Any state in the lua scripts is local and destroyed on each script close/open. All memory is addressed via handles, so I’m not dealing with pointers.

Saving and Loading state is eachived by dumping the memory manager, which is nothing but a list of ID’s and memory blocks. All memory is addressed via its ID.

short lived objects can be put into lua userdata and get GC’d nicely

copy ~/svn/sdlrl/trunk/memhandle.[ch] .

done!

Posted by on 04/06 at 01:50 PM    
Filed Under : ComputersDevelopmentFishguts
Comments are closed There are no comments on this entry.

Next entry: bazaar vs svn

Previous entry: Fishguts I : Talking

<< Back to main