April 20th-23rd 2012 :: 10 Year Anniversary! :: Theme: Tiny World

Back to Browse Entries

Tiny Defenders

by Raptor85 - 48 Hour Compo Entry

Fight against the hoardes of black ants to defend your colony!

Everything is mouse driven, mouse over the buttons to the right to see prices/descriptions of the units to place.

If you try to run and have missing libraries (for shame!) they're packed in folders in this zip (and actually larger than the game itself...) you can either copy them into the main directory or set your LD_LIBRARY_PATH to it when running.

Do NOT use these commands unless it does not run normally, if your system is set up properly there's the chance that running like this will not work while just simply running the game would.
for 32 bit
LD_LIBRARY_PATH="./linux-libs_x86" ./tinydefenders_linux-x86
for 64 bit
LD_LIBRARY_PATH="./linux-libs_x86-64" ./tinydefenders_linux-x86-64

There is a rare bug (no pun intended) that makes the ants not spawn, I did not have time to track it down for the compo as it rarely happens and I wanted the game more "complete" first. If this occurs simply close and restart.

Tools/Languages Used:
IDE: Code::Blocks
Language: C++
Compiler(s): GCC & Mingw32
Libraries: TinyXML, SDL, SDL_mixer, SDL_image, SDL_ttf, OpenGL
Graphics: Gimp(backdrops), Sprite Editor (sprites)
Sound: SFXR
Music: autotracker-c, audacity,schismtracker

Per Request, Stats on the different ant types:

Defenders: (all units start at level 1, so they get the first bonus free)
Levelup cost is (level*1.5)*base cost
__Army Ant:
____Attack Delay: .55s
____Damage: 10
____Range: 32
____Damage Bonus: 7/level
____Delay Reduction: .1s/level
____Range Increase: 16/level
____Levelup Base cost: 10
__Magic Ant:
____Attack Delay: 4s
____Damage: 0
____Range: 64
____Damage Bonus: 0/level
____Delay Reduction: .2s/level
____Range Increase: 16/level
____Levelup Base cost: 15
____Attack Delay: 2s
____Damage: 25
____Range: 48
____Damage Bonus: 25/level
____Delay Reduction: .05s/level
____Range Increase: 16/level
____Levelup Base cost: 17

Attackers: (attacktime/damage is how quickly they damage your ant hill)
__Black Ant:
____HP: 60
____Speed: 15.0
____AttackTime: 1s
____Killpoints: 1
__Giant Ant:
____HP: 300
____Speed: 7.0
____AttackTime: 1s
____Killpoints: 2
__Scout Ant:
____HP: 15
____Speed: 30.0
____AttackTime: 2s
____Killpoints: 1

Downloads and Links




caranha says ...
Apr 23, 2012 @ 1:50pm

Very fun! It seems that the ants need some experience before they can be upgraded - It would be nice to have an indicator somewhere of which ants are ready to receive an upgrade.

Thanks for the game!

Raptor85 says ...
Apr 23, 2012 @ 2:30pm

they cost "AP" (ant power) to upgrade, when you click the upgrade button and hover over an ant it shows it's current level and cost to upgrade. (or, more precisly, the square the ant is in, unfortunately i didnt have time to do more proper ant animations so they just kinda hang out where they last attacked something, but their "square" is where you upgrade them at)

It may not be obvious actually, but you can hover over the controls too for a description in the upper left.

artefon says ...
Apr 23, 2012 @ 2:49pm

I had some problems running on my linux_x86_64 but I managed to play using wine.

Usually tower defenses are fun games and this one is no exception. I like the ants theme. The graphics could have a little more working, for example, on the menu, since it makes the game a little confusing at first (making prices and turret types more visual would be really nice).

Thanks for the great game :)

Jigxor says ...
Apr 23, 2012 @ 4:27pm

Pretty fun tower game! It did seem balanced, though it was hard to see which units were specifically attacking at any time. It was very satisfying to watch my red ants beating the other ones :)

I really enjoyed it. Nice work!

Raptor85 says ...
Apr 23, 2012 @ 4:33pm

thanks, i wanted to do better attack animations but due to lack of time i settled for just drawing the red ants closer to who they were attacking. For anyone interested too, the files stage1.xml - stage4.xml define the enemy waves and the paths the ants follow, you can have up to 40 waves and 40 path nodes, and 100 enemies per wave.

Rectifier says ...
Apr 23, 2012 @ 4:54pm

Ooh, someone else who made a tower defense.

I like it. The attack animations make sense to me.

I couldn't survive for more than a few waves though, and I tried a few different tower strategies. But even so, you got me to play it four times. That's a success in my book.

Dracir says ...
Apr 23, 2012 @ 5:14pm

:) pretty cool!
What are the stats of the towers, need some text somewhere to know.:(

omaha says ...
Apr 23, 2012 @ 6:20pm

couldn't get the linux-64 build to run (ldd shows issues with libSDL_mixer-1.2.so.0 and libSDL_ttf-2.0.so.0).

Raptor85 says ...
Apr 23, 2012 @ 6:25pm

what issues with them? and are you using your system ones or the packed ones?

jeroenimooo says ...
Apr 23, 2012 @ 7:27pm

A speed up button would be nice! The idea is very cool :)

AlwaysGeeky says ...
Apr 23, 2012 @ 8:11pm

Basic graphics, but I never know when to upgrade ants... still fun :)

Hazematman says ...
Apr 23, 2012 @ 9:15pm

I loved the audio! I think the ants are an interesting way to display the theme and a great idea for a tower defense game!

feyleaf says ...
Apr 24, 2012 @ 4:26am

This game was amazing! I love the mechanic, a nice version of tower defense.

armornick says ...
Apr 24, 2012 @ 4:41am

Pretty cool game. And kudos for using something like C++/SDL for the ludum dare ;)

Tourgen says ...
Apr 24, 2012 @ 5:05am

I really liked it. Fighting bugs is just fun I guess. It all worked and was pretty straight forward to figure out.

dansludumdare says ...
Apr 24, 2012 @ 5:32am

I'm not sure if I'm addicted to tower defense (I've only played such games a few times, but enjoyed them) or this particular take on it. I'm also not sure if I want to see it fixed up or not (the graphics are endearing and figuring out that ants exist in a square is cool, even though it "should" be intuitive). (Although I'd like to see the price check fixed -- you can't spend down to 0 AP when upgrading).

Did anyone find a strategy that worked that depended on anything other than fast ants?

My strategy: fast and near hole, fast ant near entrance. Upgrade and near hole so you can survive, then upgrade ant near entrance, to take dudes out faster. Anyone find something that works faster on the completely big ant wave? The front guy isn't upgraded enough in time for it.

Endurion says ...
Apr 24, 2012 @ 5:52am

Good game! I'm not too fond of Tower Defense games, since they're mostly samey samey, but yours plays good.
Well done!

MyFrosch says ...
Apr 24, 2012 @ 7:01am

A very fun game. Old concept but implemented cool.

Daniel says ...
Apr 24, 2012 @ 1:11pm

Using ants for a defense game was a clever idea, it also matches the theme. Cheers!

NeiloGD says ...
Apr 24, 2012 @ 2:44pm

Liked this one, but it deluded me into thinking I was doing awesomely, then kicked my arse -_-

Raptor85 says ...
Apr 24, 2012 @ 3:05pm

*Mission Accomplished!*

Unlike my LD22 entry though I promise that with a good strategy it IS beatable. (My LD22 entry looped and got harder, you had to die eventually)

Matt Rudder says ...
Apr 24, 2012 @ 6:52pm

The stats you listed here would have been helpful in game, maybe as bars relative to other unit stats. I couldn't tell right off the bat what each unit would be best suited for. Love the concept though. Nicely done. :)

andyrofl says ...
Apr 25, 2012 @ 1:01am

I'm really bad at TD, but I enjoyed it. Managed to get to the boss (atleast I think it was the boss) wave on each map before dying.

Fireblend says ...
Apr 25, 2012 @ 2:13pm

A funny and well executed by-the-book TD, with a nice interpretation of the theme. Nicely done! Some more visual helpers could've been nice, but it's a good game :D

free_napalm says ...
Apr 25, 2012 @ 4:09pm

First, good music. And I really liked that the ants actually walk and beat up their enemy, never saw "moving" towers in a TD before.
Sometimes it was hard to tell how to do something, for example you just had to memorize in which square your ants were built, just a small anthill for the "building site" would have helped a lot, earlier in the game at least. This would have made it easier to upgrade.
Nice game though!

rvmook says ...
Apr 25, 2012 @ 6:16pm

Nicely balanced wave/ap system but a bit to slow paced for me. I liked the fact the ants moved to their enemies

Apr 25, 2012 @ 7:50pm

Better descriptions and in game info would have helped a lot. Pretty good tower defence when you figure out what's going on.

robcozzens says ...
Apr 25, 2012 @ 9:28pm

I would play it if you had a web or osx version.

Raptor85 says ...
Apr 25, 2012 @ 9:48pm

I made a makefile for OSX, it's in the source, but I can't find anyone to compile it for me :/

If anyone has SDL set up on OSX and wants to give it a go that would rock!

JustinMullin says ...
Apr 25, 2012 @ 10:27pm

Huh, pretty cool - I'm not up on my tower defense, but I've never seen the "melee towers" thing done before. It's a nice twist!

Topaz says ...
Apr 26, 2012 @ 1:11am

Wow. Nice game! Good job.

mess110 says ...
Apr 26, 2012 @ 7:27am

wish I had unity..

Raptor85 says ...
Apr 26, 2012 @ 12:19pm

what's unity have to do with...anything? This was raw C++/SDL, no engine used.

firstrowgames says ...
Apr 27, 2012 @ 1:26am

fun game.

BuffaloPhil says ...
Apr 27, 2012 @ 1:36am

Cool man!

invaderJim says ...
Apr 27, 2012 @ 5:11pm

Very well done little defender game! Plus, love the tool-tips, which are always welcome in LD games :D

Muu? says ...
Apr 27, 2012 @ 5:41pm

A simple but addicting tower defense game. Ants fits the theme well.

summaky says ...
Apr 27, 2012 @ 8:54pm

Unfortunately, I couldn't run neither the x86_64 nor the i386 version of the Linux build; I had to use a Windows box.

I tried at least 5 times and I always lose at the 4th wave or so (the one immediately after the small but fast ants). I guess it is too hard for me, but I enjoyed trying it.

The graphics are a bit too simplistic in the sense that the big ants are the same but scaled up and it is clearly visible, but they are OK. The music doesn't get in the way and although a bit repetitive, I didn't hate it :-D

jeffz says ...
Apr 28, 2012 @ 2:25pm

good fun, could have used some music!

BenW says ...
Apr 28, 2012 @ 3:20pm

Lots of fun but sometimes if a single enemy gets to the end it won't disappear and your hp just keeps going down.

Raptor85 says ...
Apr 28, 2012 @ 3:54pm

enemies dont disappear at the end, they continue to attack the anthill until you kill them, unfortunatley the graphics are incomplete so they tend to stack on top of each other.

Apr 29, 2012 @ 1:05am

I enjoy tower defense games a lot, this one is very nice and fun. Well done, congrats.

Apr 29, 2012 @ 3:47pm

Let me first start off by saying it's pretty awesome that you got this done in 48 hours with C++! But is there any reason why you chose C++ over something more suited to rapid development like Flash?

Now onto the game, it's a pretty cool tower defense game, but I feel the coolness stops there. I'm not sure how the technical side of the game went (if this was the first time programming a tower defense like that with C++, then kudos to you!) however if you'd like to develop this further, why not try something different?

How about a tower defense with you playing as the *ants* instead? And with the enemy setting up defenses? Perhaps you can control the speed and type of ants that come in and try to take over the enemy's "tower"?

Just some food for thought!

Raptor85 says ...
Apr 29, 2012 @ 5:03pm

Flash has no working dev environments on linux and imho isn't really any faster than c++ if you know what you're doing. (that and actionscript has some shortfalls that as a programmer drive me insane)

There wasn't really a plan going in, I just stuck with the tech I knew best and did the first thing that came to mind from the theme.

Scott Baker says ...
Apr 29, 2012 @ 7:40pm

Good game. Defense games aren't my thing or I would say more, but it is good. Much harder than I expected.

vigrid says ...
Apr 30, 2012 @ 6:35pm

It could be a little addictive TD game, if added some polish. I liked the concept of ants moving, instead of having classic static turrets.

Zyll says ...
May 1, 2012 @ 12:08am

Really enjoyed it. Once the ant is level 5, it seems to be the equivalent of Rambo. Would be good if they reset back to their place when done so it's easier to find them to upgrade.

Raptor85 says ...
May 1, 2012 @ 1:08am

yeah...i thought of that, resetting them to their starting spot when not attacing IMMEDIATELY after the deadline as I found myself wishing they did that as well. It definitely could have used some more time balancing units...you should have seen the magic ants before I nerfed them (nerfed too far I might add) They'd spam slow on everything as it came out and the game was a cakewalk O_x

Probably going to do an enhanced pc version and an android version soon, using a lot of the feedback from here and finishing up the ideas i didn't get to implement for LD (powerups you can place on the map to increse effectiveness of nearby units, etc..)

Shadow says ...
May 1, 2012 @ 6:51am

It's been a while since I had so much fun with a TD game. I second what some people have said here; units should go back to their position when not attacking. A nice take on the game with a catchy background music. A solid entry overall. Congratulations : )

kirbytails7 says ...
May 4, 2012 @ 6:28am

I've mentioned this on some other tower defense games: The game would be more enjoyable if you gave more information on ranges, health/damage, etc. Still a solid game.

starpixie says ...
May 5, 2012 @ 5:39pm

More HUD stuff would be nice. A fast forward button would also be nice. Ants are cute.

tcstyle says ...
May 12, 2012 @ 7:02am

Interesting take on Tower Defense. I foound it quite hard to beat. Maybe the big enemies should award more than just one point per kill. (I just read that they do, probably mislooked during play)
Nevertheless quite fund to play with very nice music.

ericdpitts says ...
May 12, 2012 @ 4:00pm

Fun little tower defense game! Pretty challenging and felt well balanced. Nice variety in the enemy types.

PabloAM says ...
May 13, 2012 @ 11:22pm

Nice tower defence. I liked the fighitings hehe
Good job!

You must sign in to comment.

[cache: storing page]