Saturday, July 02, 2011

Water Screenshots!







Obviously it needs texturing and stuff.  I just thought I'd post some preliminary screenshots.

edit: Oh god infinite water.


Thursday, June 30, 2011

New Texture Stuff, Screenshots and some compartmentalization.

A couple of months ago I posted a question to reddit.  I asked them if they ever think about starting over and rewriting their games from scratch using all their newfound knowledge.  Every 2 months I have this urge.  I feel like I could rewrite the game without all the previous mistakes and make it even more OOP.

Reddit's response was a pretty clear no.  They said that if you do this once, you'll keep doing it over and over  and instead of adding features I'll be spending my time rewriting code.  Their solution was to fix things as I went along and when I wanted something different to code, rewrite the sections that needed work.

So that's what I did this week.  Input from the player was being checked from many different places.  This was really hard to maintain so I've compartmentalized that into a single controller class.  It takes the input and makes changes to the world.

I've rewritten part of the chunk generation code to allow me to have multiple texture passes.  I was concerned this would take the game longer to launch but after timing before/after, I didn't notice any difference in the load  times.  Multiple texture passes allows me to do this:




So I'm going to continue working on that stuff this week. It's fun to be back in programming mode.