by date
Docoto Defense October Update
Docoto Defense October Update
| Name: | Deozaan | ![]() |
|---|---|---|
| Date Posted: | Oct 31, 2007 | |
| Rating: | Not Rated | |
| Public: | YES | |
| Comments: | YES | |
| RSS Feed: | or Subscribe with . | |
| Profile Page: | View profile page for Deozaan |
Blog post
TGE was proving to be too complex for me to make much progress, so I decided to go back to TGB. My background is mostly in Flash/Actionscript so the 2D stuff makes a lot of sense to me.
Anyway, since I made that decision I've been coding away at the project. It's been some slow progress, me being a full-time student (and strangely it seems my wife's schooling takes up more of my time than my own) and having a part time job. The day I decided to go back to TGB I coded up something to get a turret to follow and shoot at a target. I wrote in my developer blog about the decision to move back to TGB and what I'd done with turret tracking.
Here's a video of the initial targeting in action: Small (~8MB) or Large (~22MB).
I was so excited just to get something done with the game after facing so many setbacks, and just trying out some prototypes to see if certain things would work, that I didn't think it through very well. When I actually sat down and thought about how I wanted these things to interact with each other, I realized the way I'd gone about having the tower pick it's target and follow it around was not done properly.
So I sketched out some relationships on a piece of paper and then tried to figure out how to use UML software, which didn't work very well, so I ended up just using a standard image editor to draw this up:

Using the behavior system in TGB 1.5.x is nice because it lets me add this functionality to any object in the game. With that in mind I've been trying to generalize some of the functionality and make it very expandable and flexible.
Here's the dev blog entry which details the flowchart and shows a new video (~1.5MB) of the rewritten code in action.
Then finally, after testing the code more fully I realized even more changes needed to be made to give it the functionality that I wanted, so I heavily modified it and I think now I've got it working at a very satisfactory level and I can move on to something else.
There isn't a lot about it to show off visually, but I feel the inner workings of the code are very robust and will allow for some fun and interesting strategies in the game.
- Deozaan
Anyway, since I made that decision I've been coding away at the project. It's been some slow progress, me being a full-time student (and strangely it seems my wife's schooling takes up more of my time than my own) and having a part time job. The day I decided to go back to TGB I coded up something to get a turret to follow and shoot at a target. I wrote in my developer blog about the decision to move back to TGB and what I'd done with turret tracking.
Here's a video of the initial targeting in action: Small (~8MB) or Large (~22MB).
I was so excited just to get something done with the game after facing so many setbacks, and just trying out some prototypes to see if certain things would work, that I didn't think it through very well. When I actually sat down and thought about how I wanted these things to interact with each other, I realized the way I'd gone about having the tower pick it's target and follow it around was not done properly.
So I sketched out some relationships on a piece of paper and then tried to figure out how to use UML software, which didn't work very well, so I ended up just using a standard image editor to draw this up:
Using the behavior system in TGB 1.5.x is nice because it lets me add this functionality to any object in the game. With that in mind I've been trying to generalize some of the functionality and make it very expandable and flexible.
Here's the dev blog entry which details the flowchart and shows a new video (~1.5MB) of the rewritten code in action.
Then finally, after testing the code more fully I realized even more changes needed to be made to give it the functionality that I wanted, so I heavily modified it and I think now I've got it working at a very satisfactory level and I can move on to something else.
There isn't a lot about it to show off visually, but I feel the inner workings of the code are very robust and will allow for some fun and interesting strategies in the game.
- Deozaan
Recent Blog Posts
| List: | 10/31/07 - Docoto Defense October Update 10/01/07 - Docoto Defense September Update 08/29/07 - Docoto Defense August Update 07/31/07 - Docoto Defense July Update 06/27/07 - Docoto Defense June Update 05/26/07 - Docoto Defense |
|---|
Submit your own resources!| Steven S (Oct 31, 2007 at 19:30 GMT) |
Behaviors are REALLY nice.
You must be a member and be logged in to either append comments or rate this resource.



Not Rated


