Saturday, August 2, 2008

Editor control and quad splitting

Now I just need to figure out how to hook up the editor to the input so that I can control pucks when building levels. The problem is that the game runs its own event loop, detached from the one in the NSView. It might be that the easiest way to go about it is to duplicate the mapping from NSView to bmInputFrames, but I'll give it a Deep Think™ over lunch.

Yeah, I should be able to use MapCharToKeySym from GrayEvents. It's ugly, but I don't have to worry about platform agnosticism since I'm in Cocoa anyway. It's the shortest possible path, and it's pretty clean too. […] Worked just fine!

Set up splitting of quads into triangles when geometry leaves the editor for the game itself. First screenshot here, I wager.



Fixed bug where grid drawing could hang, since drawing grids of size smaller than 1.0 units would round down to zero and never reach the other end of the screen.

No comments: