I’ve been doing my daily logs over at the Ludum Dare site, to try and encourage more people to participate there. I’ve really only worked on the game for 2 days, despite my plans to start early. Today I was busy with something else, so this week’s update will be light.
This “week” was about getting the foundation of editor up and running. Currently it works on a 2 button mouse (right click to erase), but the editing interface will support a touch screen (tile zero is the eraser). There’s currently no UI, but I can cycle tiles with the mouse wheel. It auto saves/loads the map to a specific file.
It started out looking like this:
Then by the end of the night Saturday, it looked like this:
If you’re interested at all in the process from A to B, hit the jump for more.
I was going to do some work today (Sunday), but there’s so little time left, I’m calling it a night early.
*\* Day 1 (Friday) **
Well the plan was to get started before October, but due to some big stuff going on, I had to delay my start.
Now, late late night October 1st, I’ve finally started.
Building an editing interface, which you can see the foundation of in the shot above. The terrain renderer has nothing to do with what I’m doing, aside from verifying mixing my 2D and 3D code works. I don’t have any immediate plans to use any 3D content, but it might be cool for effects. We shall see.
Planning to do another hour or so of work, then sleep.
One Hour Later
Alright, it doesn’t look any different, but I made my editing a little more useful. Right click acts as an “erase” hotkey. Wow ‘eh?
As it turns out, my cross platform framework didn’t support multiple mouse buttons (it only supported 1 button). So I had to figure out why other buttons weren’t working. Added multiple button support, then found it wasn’t working (wuh!?). After some digging, it seems SDL button 1 is left click and 3 is right click (making 2 middle); I made the mistake of thinking right click would be 2. Oops!
So, be impressed! My crazy cross platform framework that builds for a dozen or so platforms now supports multiple mouse buttons!
… not impressed? Ah well.
I wouldn’t normally make a post in the same post, but so little has changed that I am. I’ll be removing the terrain renderer now, so really, I just wanted to take at least 1 more pic of that. 😉
That’s probably it for tonight. Tomorrow I need to make a texture atlas of tile properties, and overlay those instead of my red boxes. Mike, you better do this within a few hours of waking up… otherwise I’ll yell at you!
*\* Day 2 (Saturday) **
I need tools to make my game, so we’re making tools.
That texture atlas I quipped about yesterday now exists.
Now to actually draw these icons on tiles to show their material properties.
Several Hours Later
Tile properties are now displaying.
I’m not sure what comes next.
Hey… I know how to make it look cooler…
Yeah, here’s an idea.
Whoo!
Some 4 hours later
After having cook a fancy meal (Tacos), I now have textures working!
But as you can see, I don’t have any textures yet. Still, I can now assign them to tiles, and index in to a texture Atlas. Whee.
Even more hours later… 4:30 AM
Yes many hours have passed, but a major incremental milestone has been hit: Saving and Loading maps.
Between all kinds of “I’m tired” slacking, I finally got this done. It’s using my chunked file format used by my Smiles UI code. Hooray for re-use!
This is definitely it for the night. I have no idea where I’ll pick up tomorrow… I don’t even want to think about it. Brain is mush, proceed to bed. Do not pass go. Do not collect $200.