It's time for some screenshots!

posted in old blog
Published February 22, 2005
Advertisement
I let the whole of yesterday pass by without any screenshots taken of current progress in CivSim. Well, I'm going to finish up a few things in the editor today, and post a screenshot of it. Know in advance, though, that this is simply the culmination of ~3 days of work on the thing.

It isn't pretty, but it's starting to become a little bit functional.

AND HERE IT IS, PATRONS! (Previous comment is emphasized)



The editor takes the brush that you choose by clicking on a tile to the left, and 'paints' it into the array which represents the map. All you need to do is click in the viewable area (which can be scrolled around per-pixel, since the map is larger than the edit window) and drag your mouse around to paint tiles inside.

I'm currently working on creating brush types and sizes. Thus, you can paint tile-by-tile, or a 2x2, 4x4, 8x8, or 16x16 'square' or 'circle' of tiles at a time.

Edit: Most of today's work went into code optimizations. This is essentially how I code in general. I can break my coding time down like so:

20% - Write the base code, make sure it works properly.
60% - Optimize a large chunk of code that has nothing to do with what I'm working on at the time being. These optimizations just pop in my head while I'm coding, and I immediately stop what I'm working on, and make the changes, so I don't forget later on.
10% - Idiot-proof the code, so nothing can go wrong. I've become so used to thinking about coding this way that it's drastically reduced in coding time, since I now just naturally think of the possible errors first before coding. This has made life easier.
10% - Throw in some 'glitter' code, which is essentially little ideas that usually form the foundation of a new 'base code'.
Previous Entry Working away.. phew!
0 likes 1 comments

Comments

noaktree
Look'n good!
February 22, 2005 09:11 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement