I can't believe I didn't implement this earlier, but the serializer can now write serialize nodes to an XML file. And it doesn't do a half-bad job of it, either.
I'm now saving and loading maps from disk, which is awesome.
In the tradition I seem to be upkeeping, today I participated in a jaunt to the junkyard to pick up chunks of car. It's a lot of fun, and I recommend it to anyone with the slightest technical bent.
When I got home, I got to work on message passing. I've hacked up a very basic, very raunchy event interface that should work with a suitable amount of abstraction; here is a button that makes the game console write "hello world" when you click it.
Gifted readers will note that this is similar to the XML I posted for the previous example of my program.
In the codebehind you should derive from IEventHandler<HudMessage>, which is more or less the standard event-handling interface for all the Iodine applications from now on. This set of delegation classes has been used all over and it's fairly non-stupid, though I wouldn't count on it excessively. This means you have to implement a method for handling this message...
So at least there's some potential for arguments. I think this really sucks, though, and will have to find a better way to pass especially non-numeric arguments around (such as keystrikes).
Anyway, more next time once I actually use these buttons to do something!
P.S. Opera 9.5 is a huge pleasant surprise. It's really improved my Mac browsing experience, and just when I thought it couldn't get any better. Kudos to the Opera team for being badass.
You can also add walls in the editor now. I would've posted about it when I wrote the feature on Thursday, but I was too busy keeping it real, as the kids say these days.
Tonight I'll work a bit on asset management in the editor; loading up fonts for the GUI and providing texture swatches for the user to pick from. This will require some up-front user interface work, so it should result in some pretty impressive screenshots, provided I can get it done.
Car search is also getting more promising. We'll see how it goes.
So I implemented the ability to add vertices, and also worked out how to make a tool for adding polygons on paper. I'll work some more on this later.
Oh, I also got snap to grid implemented. You like snap to grid, don't you?
Link of the Day: Darque Dungeon. Only some of you will get the musical references. The rest of you have lost out. I guess you could go onto the hosting website, where you could read about the new album, Bitch Go Buy Me A Hot Dog.
Quote:
Tracklist /
Bitch Go Buy Me A Hot Dog (4:18) [clip]
Thanks Bitch This Is Delicious (4:50) [clip]
Intermission (2:18) [clip]
Bitch Go Buy Me A Hot Dog (I'll Be Waiting Here, Doing The Robot) (5:08) [clip]
[clips are +/- 45 second, 128kbps mp3]
This is a concept album. The concept is that I tell a bitch to go buy me a hot dog, and she does. While she is buying me a hot dog, I wait patiently, and do The Robot. I eat the hot dog and it is delicious.