Thursday, March 3, 2011

I lie, apparently.

So yesterday I posited that I would spend this evening working on implementing object manipulation. Well that, as it turns out, was a fallacy. To my credit, though, it's not a complete fallacy. I did begin work tonight with that goal in mind, but things wandered. Regardless, it's turned out pretty nicely.

I began working on how I want to implement the manipulation. From the game world, you can hit "escape" and the menu will pop up. In addition, in this mode you can mouse over objects (thereby highlighting them) and click them to interact. This is essentially what I refer to as "Freemouse" mode. Well, in attempting to implement a right-click-popup-menu feature, I realized that I had actually coded my menu class pretty poorly. As a result I spent about three hours wading elbow-deep through recursive code in an attempt to get everything kosher.

End result: success.

So I added a "Delete Object" to the right-click menu, as well as a fun little feature: "Paint Object". Via three sliders (individually controlling the R, G and B values) you can now adjust the object's base color. Ooooh pretty. I'll have screenshots tomorrow (due to the screencapture issue mentioned in a previous post).

I then spent marginal time prettifying the HUD a little more, and am now calling it a night.

This weekend, seriously. Object manipulation and joint construction.

Seriously.

1 comment:

  1. Don't forget music! We're gonna work on some cool stuff Saturday morning and get 3 or 4 different blubs to you!

    ReplyDelete