Ben's blog
Software development, games, and all that jazz
Home
Archive
Posts
Pages
Search:
Edit Post
Title:
Body:
<p>As I said in my last post, the next thing I wanted to get done was to fix up the physics on the raisable buildings by rejiggling the code for the Building class. I've now added 'Debris' which is spawned by each 'Building' when it decides it's time to fall off the island. Currently all the buildings just spawn a piece of debris that looks exactly like the building itself, though in the raisable building's case this means one piece per floor. Since the physics can be a tad unstable at times, this can result in interesting-looking explosions such as that pictured in this screenshot!</p> <p><a href="http://www.flickr.com/photos/38367409@N02/3537980311/" title="Broken buildings and little people by b.hymers, on Flickr"><img src="http://farm3.static.flickr.com/2138/3537980311_85b63ea45a.jpg" width="500" height="375" alt="Broken buildings and little people" /></a></p> <p>You may also notice there are some bright orange buildings there. If you don't notice them you're not looking very hard. They're just replacements I made for the 'tudor house' mesh that I borrowed from Ogre right at the start of this project - it was unnecessarily highly detailed, a bit ugly, and not mine. These new buildings have only one of those problems.</p> <p>I also replaced the graphics of the people - they're now little chaps made out of several cuboids (what an evolutionary leap!). They're even textured! You can't see it from the screenshot, but they each have a smiley happy face. They're blissfully unaware that if 'trippedOver' ever returns true, they'll be launched upwards with '10' force, which although unitless is definitely quite deadly, and comical.</p> <p>Next I'm going to do a bit more rejiggling ('refactoring' is a term many programmers use inappropriately, so it's sort of lost its meaning. 'Rejiggling' is a good replacement I think), since there are a few bits of code that are being duplicated every time I add a new type of object. After that I'll be adding some 'special' buildings and updating the game logic a bit, which will be fun :) That will probably have to wait until after Easter though, since I'm off to France with my girlfriend for a bit first!</p>
Tags:
cities-in-the-sky
Body markup:
Plain Text
Textile
HTML
Markdown
ReStructuredText
Draft: