Tower Defence

Anything related in any way to game development as a whole is welcome here. Tell us about your game, grace us with your project, show us your new YouTube video, etc.

Moderator: PC Supremacists

Post Reply
User avatar
zeid
Chaos Rift Junior
Chaos Rift Junior
Posts: 201
Joined: Fri Apr 24, 2009 11:58 pm

Tower Defence

Post by zeid »

For one of my uni workshops I had to make a tower defence game in a week. This particular assesment was all about AI, we needed to integrate the A* algorithm. I also added flocking behaviour. I skipped adding in influence map stuff but might do so tomorrow if I can be bothered.

Here is a link to the game, hopefully it works on everyone's machines with sound;
DOWNLOAD v1
DOWNLOAD v2 - with Influence Map

Here is a screeny;
Image

**EDIT**
I should probably mention the controls;
Left Mouse Button creates A Tower (you need $10, your money is shown in the top left).
Right Mouse Button deletes a Tower (you do not get refunded anything).
Last edited by zeid on Tue Sep 07, 2010 1:25 pm, edited 3 times in total.
Axolotl Pop!
Image
Or, try it for free.

For many more free games online visit www.sam-zeid.com
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: Tower Defence

Post by eatcomics »

that's pretty freakin sweet
Image
User avatar
GroundUpEngine
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 835
Joined: Sun Nov 08, 2009 2:01 pm
Current Project: mixture
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: UK

Re: Tower Defence

Post by GroundUpEngine »

Really cool man! A while back I was thinkin of trying something similar 8-)
systat wrote:Sweet, but why is it almost 30 mb?
Theres a music file called "rapid_arc.wav" which is about 31mb.
systat
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 26
Joined: Sun Jan 04, 2009 3:27 pm

Re: Tower Defence

Post by systat »

I've finally downloaded it, but sadly it doesn't seem to work on Windows 7 64bit, here is the error:

Image

In next project please use .mp3 for music, or even better use mp3lame to compress sounds :=)
That 30 mb sound file could be compressed to 2-3 mb :p
Screenie looks nice.
Image
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Tower Defence

Post by dandymcgee »

I made it to 340.. it's fairly difficult. Fun as hell though.

Would be much easier if I could tell where my cursor was before I'm at $10. Also, sometimes the towers randomly stop shooting.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
MrDeathNote
ES Beta Backer
ES Beta Backer
Posts: 594
Joined: Sun Oct 11, 2009 9:57 am
Current Project: cocos2d-x project
Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
Programming Language of Choice: C/++
Location: Belfast, Ireland
Contact:

Re: Tower Defence

Post by MrDeathNote »

Looks bad ass for one weeks work dude nice job :)
http://www.youtube.com/user/MrDeathNote1988

Image
Image

"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
User avatar
zeid
Chaos Rift Junior
Chaos Rift Junior
Posts: 201
Joined: Fri Apr 24, 2009 11:58 pm

Re: Tower Defence

Post by zeid »

That 30 mb sound file could be compressed to 2-3 mb :p
I'm using openAL for sound which doesn't support mp3 format. I could use something else as well as openAL for the background music, but as it was a school assignment and I have a lot of work as is, I figured I would go easy on myself.
Looks bad ass for one weeks work dude nice job :)
Thanks I spent more like 3 days on it (I really should have been doing other assignments) most of my time was used to polish it up.
I've finally downloaded it, but sadly it doesn't seem to work on Windows 7 64bit, here is the error:
Odd, I developed it on win7 64bit. Not sure what the error is about.
Would be much easier if I could tell where my cursor was before I'm at $10. Also, sometimes the towers randomly stop shooting.
In the latest version the $10 has been made more obvious when you have less then 10.
The towers stop working sometimes because of some optimization code I did that groups near enemies together. Not sure where I went wrong and can't be bothered to fix that issues, sorry :P. Fixed the towers occasionally not firing issue in the latest version.

Here is the latest version with influence map code, as per assignment requirements (not sure how well it works with the game).
DOWNLOAD
DOWNLOAD
Axolotl Pop!
Image
Or, try it for free.

For many more free games online visit www.sam-zeid.com
User avatar
epicasian
Chaos Rift Junior
Chaos Rift Junior
Posts: 232
Joined: Mon Feb 22, 2010 10:32 pm
Current Project: Gigazilla Engine
Favorite Gaming Platforms: Dreamcast, SNES, PS2, PC
Programming Language of Choice: C/++
Location: WoFo, KY

Re: Tower Defence

Post by epicasian »

I have to show this... :lol:

Image
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Tower Defence

Post by dandymcgee »

New version is MUCH MUCH easier. Made it to like wave 150.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
Post Reply