First off, the map editor is coming along nicely. You can change tiles; load, place, and transform sprites (scale and rotate); create and manipulate geos (formerly called geometric objects); and resize the map. To do: allow user to change tile set, add color tint option for map and all objects on it, add sprite editor, save it all to a file, and load it back up from the file.
I'm getting closer. I'm feeling pretty good. As soon as I can save and load maps, I'm going to create a test level to play around with. So far I have two players on a map with a small geo off to the side and two sprites below, both arches, one scaled and rotated slightly.
I spoke previously about how segments will inevitably be tested multiple times when dragging due to my grid setup. I thought I'd done the best I could and there wasn't much else to do. However, the solution hit me this morning and I tapped away at the keyboard until it was done. The result was success. No segment will be tested twice. Neither will any sprite, geo, etc. I'm quite proud of my little discovery.
Originally, the size of each geo and sprite would've been smaller than a grid square so that there wouldn't be any chance of being tested multiple times, but that was quite restrictive and would've been alot of trouble. But that's irrelevant now. I can now make them as big as I want. What I do is assign each run through the grid an ID and check with each object to see if it has already been tested during this particular run. It works beautifully and it will make things easier in the future.
I also allowed for blank tiles, which would be placed beneath large sprites. The idea of big sprites is becoming more attractive as I improve my engine. At first it looked ugly, but it's growing on me. I'm excited.
Lastly, I was reading TIGSource, and came upon sfxr, which is an easy to use sound effects generator. The creator described it as an "MS Paint for sound effects." I like that description and while I think it's slightly more difficult than paint, it is nevertheless, as promised, easy. I've never generated a sound before and I now have some fun test sounds for Sever. They are by no means the final cut, but sfxr may be my sfx program of choice. It really is good for us sound newbies. Give it a try. It's mostly retro, but you can play with it to make it a little less electronic.
Now that I have some sounds, I'll probably get to work on some sound code. I'll probably finish the few things I'm working on now, but I'll get to it soon. I'm excited to "hear" Sever. I'm feeling comfortable with sfx now. I think I can do it. Next stop: music.
Thanks for reading! Questions? Suggestions?
clevceo
Tuesday, December 18, 2007
Thursday, December 13, 2007
Welcome
For those who've already been reading my blog, this post is for newcomers. It is this post that I will link to outside this blog. I want this to be a starting point.
Welcome to my dev blog. I've been working on Sever for a while, and as it's finally taking form, I'd like to get a little more exposure, even if that means just a few regular readers. I've even started a Google Group. Please join and share your input.
Sever's development began a year and a half ago. In fact, if you'd read from the beginning, you'd see I'm on my fourth attempt. I've matured as a developer and so has Sever. And after all the frustration, it's finally coming together. If there's a fifth attempt, it will be Sever 2.
Sever is an odd sort of RTS. I don't think there's another like it...anywhere. I guess the best comparison is a competitive connect-the-dots match where the goal is to sever the others' lines with your own. However, that's a very incomplete picture. For a more complete concept, look here. I've made a few conceptual changes since then, as you'll see if you read on, but nothing huge.
Also, it's not a simple arcade game like many indies out there. The gameplay mechanics are just complex enough to merit a more polished and complete game. If I can gather the people, both graphics and music will be high-quality. To top it off, there will also be a single-player campaign mode with a compelling story. Yes, a connect-the-dots fan fic.
The only two things haunting me at the moment are fog-of-war and AI. Neither of which I've done before. However, I have a few ideas. I've read a few articles on fog of war, but none seem to fit Sever's needs. I have one idea that's perfectly doable, but I don't know that it's the most efficient. But have faith. I'll figure it out.
Thanks for reading. And remember to take a look at my Google Group.
clevceo
Welcome to my dev blog. I've been working on Sever for a while, and as it's finally taking form, I'd like to get a little more exposure, even if that means just a few regular readers. I've even started a Google Group. Please join and share your input.
Sever's development began a year and a half ago. In fact, if you'd read from the beginning, you'd see I'm on my fourth attempt. I've matured as a developer and so has Sever. And after all the frustration, it's finally coming together. If there's a fifth attempt, it will be Sever 2.
Sever is an odd sort of RTS. I don't think there's another like it...anywhere. I guess the best comparison is a competitive connect-the-dots match where the goal is to sever the others' lines with your own. However, that's a very incomplete picture. For a more complete concept, look here. I've made a few conceptual changes since then, as you'll see if you read on, but nothing huge.
Also, it's not a simple arcade game like many indies out there. The gameplay mechanics are just complex enough to merit a more polished and complete game. If I can gather the people, both graphics and music will be high-quality. To top it off, there will also be a single-player campaign mode with a compelling story. Yes, a connect-the-dots fan fic.
The only two things haunting me at the moment are fog-of-war and AI. Neither of which I've done before. However, I have a few ideas. I've read a few articles on fog of war, but none seem to fit Sever's needs. I have one idea that's perfectly doable, but I don't know that it's the most efficient. But have faith. I'll figure it out.
Thanks for reading. And remember to take a look at my Google Group.
clevceo
Monday, December 10, 2007
Map Editor
I've made progress on the map editor. You can now edit tiles. There you go.
Anyway, it was hard work. I had to modify my listbox control. Originally it only displayed text for every element, so I had to split it in two: the first part is a base class that displays no text and each element is an object with unknown contents; the second inherits the first part, reading each element as a string, and displaying them on the box. The reason I did this is because I needed to use the base class without the text for displaying the tiles for the map editor.
Therefore, I made a second child of the listbox class, this one taking images with a caption, scaling them to fit in the element, and displaying them. Of course, the picture is the tile and the caption is the tile's name. This took some work because I had to make some decisions while I was at it. I had to rewrite some code a few times.
I also added some new functionality to the base Control class. Each control now has a 'Visible' property. Obviously, when set to false, the control disappears. I didn't do this before because I didn't need it. However, I need it for the map editor because the user is going to switch between edit modes (tiles, sprite objects, and geo-objects), each requiring a different toolbar. I'll only display the one being used.
For the tilesets and sprite object animation, I have each tile or frame in the same bitmap. So far, I've manually glued them together with Gimp. However, I just found a program that can do it automatically for me. This will save me alot of time. The only trouble was that it lines them up vertically while Sever was coded to read from left to right. But it wasn't hard to fix that.
Anyway, I'm getting there. Next step: sprite objects. After that, geo-objects. After that, grouping sprite objects with geo-objects. That's the daunting one. The idea is that you take something like my arch in the last post and draw a circular geo-object at each foot; then you can take that arch and put it in as many levels as you want without having to draw the geo-objects every time.
Progress has been made. Suggestions? Questions?
clevceo
Anyway, it was hard work. I had to modify my listbox control. Originally it only displayed text for every element, so I had to split it in two: the first part is a base class that displays no text and each element is an object with unknown contents; the second inherits the first part, reading each element as a string, and displaying them on the box. The reason I did this is because I needed to use the base class without the text for displaying the tiles for the map editor.
Therefore, I made a second child of the listbox class, this one taking images with a caption, scaling them to fit in the element, and displaying them. Of course, the picture is the tile and the caption is the tile's name. This took some work because I had to make some decisions while I was at it. I had to rewrite some code a few times.
I also added some new functionality to the base Control class. Each control now has a 'Visible' property. Obviously, when set to false, the control disappears. I didn't do this before because I didn't need it. However, I need it for the map editor because the user is going to switch between edit modes (tiles, sprite objects, and geo-objects), each requiring a different toolbar. I'll only display the one being used.
For the tilesets and sprite object animation, I have each tile or frame in the same bitmap. So far, I've manually glued them together with Gimp. However, I just found a program that can do it automatically for me. This will save me alot of time. The only trouble was that it lines them up vertically while Sever was coded to read from left to right. But it wasn't hard to fix that.
Anyway, I'm getting there. Next step: sprite objects. After that, geo-objects. After that, grouping sprite objects with geo-objects. That's the daunting one. The idea is that you take something like my arch in the last post and draw a circular geo-object at each foot; then you can take that arch and put it in as many levels as you want without having to draw the geo-objects every time.
Progress has been made. Suggestions? Questions?
clevceo
Saturday, December 8, 2007
Sprite/Geo-Objects, Single Player, Fog of War
I've made some decisions with the geo-objects. They'll be separated from the sprites. Also, the map editor will be able to draw geo-objects. The idea is that borders will be drawn around the sprites manually. Of course I'll include some prefabs that link the two together as well, if only for convenience.
Here's my first sprite object to place on a map:

If I don't meet an artist this next semester, I'll be doing the art myself. And I'll need some art to start off with anyway. Thus, I'll probably be making a few more.
Once the code for the sprites is complete, I will most likely get to work on the editor. I already have a base listbox control I can use to display the various tiles and sprites.
I'm making progress. Once the map editor is complete, I'll get the multiplayer up and running. Once that's working, I'll work on the structure of a single-player campaign. Right now you can only run a single map before returning to the main menu, but I need to be able to go from map to map, showing any cutscenes (pictures with text) and messages in between levels. I'll also need to do the scripting. That'll be a challenge.
Eventually, I hope to do the fog-of-war. I think the fun of the game will be multiplied if I do. But I'll have to think about that later. I really don't know how I'll do it. I would also like to display ghost images of opponent routes that were seen, but are now covered in fog. Basically, you'll see what was there last time that portion of the map was uncovered. I have an idea of how I'll implement that, but I just don't know how I'll detect whether a route is covered by fog or not. That's what has me befuddled.
Thanks for reading. Questions? Suggestions?
clevceo
Here's my first sprite object to place on a map:

If I don't meet an artist this next semester, I'll be doing the art myself. And I'll need some art to start off with anyway. Thus, I'll probably be making a few more.
Once the code for the sprites is complete, I will most likely get to work on the editor. I already have a base listbox control I can use to display the various tiles and sprites.
I'm making progress. Once the map editor is complete, I'll get the multiplayer up and running. Once that's working, I'll work on the structure of a single-player campaign. Right now you can only run a single map before returning to the main menu, but I need to be able to go from map to map, showing any cutscenes (pictures with text) and messages in between levels. I'll also need to do the scripting. That'll be a challenge.
Eventually, I hope to do the fog-of-war. I think the fun of the game will be multiplied if I do. But I'll have to think about that later. I really don't know how I'll do it. I would also like to display ghost images of opponent routes that were seen, but are now covered in fog. Basically, you'll see what was there last time that portion of the map was uncovered. I have an idea of how I'll implement that, but I just don't know how I'll detect whether a route is covered by fog or not. That's what has me befuddled.
Thanks for reading. Questions? Suggestions?
clevceo
Friday, December 7, 2007
Map Editor, Tile Engine
I've begun to build a map editor. Before I got too far, however, I decided I had to beef up the tile engine a little. The game now reads a text file with info on a tileset for a map, such as the image's path, the size of a tile, and so forth. Also, on the spur of the moment, I added the capability to animate the tiles. Anyway, I tested it and voila, it worked. Of course, nothing on the screen had changed, but the new code had worked nonetheless.
Next, I wanted to test the animation code, so I took my one tile and put a duplicate right next to it with some highlights. I set the duration for each frame as half a second. It worked. There were no errors. None. I got it on my first try. That's a first. Anyway, I changed the frames again so that the highlighted one only flashed every so many seconds, so it was more like lightning than a consistent blinking light. Not that I'm keeping the animation for good, but I want it to look as good as it can until I add more tiles. And I won't be adding tiles until I have a working version of the editor. And even then I'll probably only add one more tile.
There you have it. A decent tile engine. I'm planning on sticking with it unless someone suggests something better.
Suggestions? Questions?
clevceo
Next, I wanted to test the animation code, so I took my one tile and put a duplicate right next to it with some highlights. I set the duration for each frame as half a second. It worked. There were no errors. None. I got it on my first try. That's a first. Anyway, I changed the frames again so that the highlighted one only flashed every so many seconds, so it was more like lightning than a consistent blinking light. Not that I'm keeping the animation for good, but I want it to look as good as it can until I add more tiles. And I won't be adding tiles until I have a working version of the editor. And even then I'll probably only add one more tile.
There you have it. A decent tile engine. I'm planning on sticking with it unless someone suggests something better.
Suggestions? Questions?
clevceo
Thursday, December 6, 2007
Debugging, Distribution, Tile Engine
A few hours of the day were spent debugging. I had a problem with the people's behavior. For some reason, when a segment was just almost fully packed with people, all the people would all of a sudden jump backwards behind the nodes, out of the segment entirely, then come back in. I was baffled too.
Anyway, a whole lot of divide and conquer to find the single erroneous line of code...excuse me, erroneous number. All that work just to find one simple small number. But it was fun though. It was a real challenge, and it feels good when you fix it and the bug is gone forever. In the process, I also found a few other small details that needed tweaking. So all in all it was sort of productive.
Of course, there were other minor glitches and so forth that I've come upon and fixed involving severing and retracting. It seems most problems are triggered by one of the two. But they're becoming more stable every day. I'm pretty confident in them.
I hit a problem with the grid testing. I've mentioned before that when testing against a segment, you have to test every grid square it passes through. The code for it is a heck of alot simpler than the code in my last iteration and faster too. But it's also newer and thus more prone to error. It was fine when testing down and to the right, but any other direction and it hit a never-ending loop.
I had to look at the math and figure it out. Sometimes my mind fogs up when I try to do math in my mind. But after about 10-15 minutes of trial and error, it clicked. Doh! The solution was simple and the test now works wonders. Also, to make sure it was working as intended I wrote a few extra lines of code to display an X over every square tested.
I added a little to the..."Person Distribution AI" we'll call it. To start with, each time a person hits a node, the node has to decide which of its branching segments to put the person in. I use a little recursion to determine the cumulative density of each path and all beyond it, and place the person in the one that is least dense. That's old hat. What I did today involved only segments that are retracting. Their density returns as 100%, which means no person in their right mind will try to enter it. More people are saved this way.
I created a simple tile engine. So far there's only one tile. It'll probably stay that way for a bit; I just wanted the tiles there for the sake of progress and prettiness. I'm still open for suggestions if anyone knows of a better method than a grid of tiles. Anyway, even though the tile isn't great, it's better than nothing.
Suggestions? Questions?
clevceo
Anyway, a whole lot of divide and conquer to find the single erroneous line of code...excuse me, erroneous number. All that work just to find one simple small number. But it was fun though. It was a real challenge, and it feels good when you fix it and the bug is gone forever. In the process, I also found a few other small details that needed tweaking. So all in all it was sort of productive.
Of course, there were other minor glitches and so forth that I've come upon and fixed involving severing and retracting. It seems most problems are triggered by one of the two. But they're becoming more stable every day. I'm pretty confident in them.
I hit a problem with the grid testing. I've mentioned before that when testing against a segment, you have to test every grid square it passes through. The code for it is a heck of alot simpler than the code in my last iteration and faster too. But it's also newer and thus more prone to error. It was fine when testing down and to the right, but any other direction and it hit a never-ending loop.
I had to look at the math and figure it out. Sometimes my mind fogs up when I try to do math in my mind. But after about 10-15 minutes of trial and error, it clicked. Doh! The solution was simple and the test now works wonders. Also, to make sure it was working as intended I wrote a few extra lines of code to display an X over every square tested.
I added a little to the..."Person Distribution AI" we'll call it. To start with, each time a person hits a node, the node has to decide which of its branching segments to put the person in. I use a little recursion to determine the cumulative density of each path and all beyond it, and place the person in the one that is least dense. That's old hat. What I did today involved only segments that are retracting. Their density returns as 100%, which means no person in their right mind will try to enter it. More people are saved this way.
I created a simple tile engine. So far there's only one tile. It'll probably stay that way for a bit; I just wanted the tiles there for the sake of progress and prettiness. I'm still open for suggestions if anyone knows of a better method than a grid of tiles. Anyway, even though the tile isn't great, it's better than nothing.
Suggestions? Questions?
clevceo
Wednesday, December 5, 2007
Geo-Objects, Glitch, Tiles, Sounds
I now have a working version of the geometric object class. It's drawn with the PrimitiveBatch for now, though I plan on changing that eventually because it's too pixelly. Plus, it's only an outline, and it needs a texture. I'll probably just make some prefabs with static textures. Once I have a few, I'll make a map editor and try them out.
I finished the collision detection for the geo-objects as well. It wasn't so bad. I'm proud of my work. In the process I made some optimizations to some other collision detection as well. It works beautifully.
I also discovered a glitch. To create a new node, you click and drag from an existing node. Normally while dragging, a single node and segment are displayed under the cursor. However, I discovered that they were displaying once per grid square in view. When zoomed out that's alot, 100 at the moment. Two sprites (node and segment) x 100 = 200 sprites! That's fairly inefficient if you ask me. However, I'm proud to say that the game didn't slow down a bit. I didn't even notice it was happening until I saw the code in the wrong place.
I'm piddling around with Gimp and Inkscape, trying to come up with some presentable background tiles to try out. I could just go with the ones I made for the last iteration, but they were thrown together in seconds and really don't look right. I want a working look & feel for the game.
It would also be nice to get some sound effects going. Unfortunately, my webcam's microphone is broken. It's a LifeCam VX-6000. $60. I looked it up and many people have had the same problem. I haven't even dropped the thing. Anyway, I don't have a microphone to use, so I'll have some trouble managing the sound effects. However, once I find a way, I know how to cancel noise with Audacity.
Suggestions? Questions?
clevceo
I finished the collision detection for the geo-objects as well. It wasn't so bad. I'm proud of my work. In the process I made some optimizations to some other collision detection as well. It works beautifully.
I also discovered a glitch. To create a new node, you click and drag from an existing node. Normally while dragging, a single node and segment are displayed under the cursor. However, I discovered that they were displaying once per grid square in view. When zoomed out that's alot, 100 at the moment. Two sprites (node and segment) x 100 = 200 sprites! That's fairly inefficient if you ask me. However, I'm proud to say that the game didn't slow down a bit. I didn't even notice it was happening until I saw the code in the wrong place.
I'm piddling around with Gimp and Inkscape, trying to come up with some presentable background tiles to try out. I could just go with the ones I made for the last iteration, but they were thrown together in seconds and really don't look right. I want a working look & feel for the game.
It would also be nice to get some sound effects going. Unfortunately, my webcam's microphone is broken. It's a LifeCam VX-6000. $60. I looked it up and many people have had the same problem. I haven't even dropped the thing. Anyway, I don't have a microphone to use, so I'll have some trouble managing the sound effects. However, once I find a way, I know how to cancel noise with Audacity.
Suggestions? Questions?
clevceo
Subscribe to:
Posts (Atom)