Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Java Tower Defense  (Read 4934 times)
0 Members and 1 Guest are viewing this topic.
Offline Cocosinus

Senior Newbie





« Posted 2009-04-04 21:54:32 »

Hello, fellow Java gamers, here is the URL to my free online game entirely in Java:

http://www.javatd.com

All advices/comments are welcome :-)
Offline bobjob

JGO Knight


Medals: 10
Projects: 4


David Aaron Muhar


« Reply #1 - Posted 2009-04-04 22:10:40 »

you can trick the units in to walking back and forth, by selling a building making a new path, then building another one at the other end. and repeating till they die.

My Projects
Games, Webcam chat, Video screencast, PDF tools.

Javagaming.org with chat room
Offline Corvinex

Senior Member


Projects: 1


Work Hard, Go Pro.


« Reply #2 - Posted 2009-04-04 22:11:49 »

When I sold the 2nd type tower it gave me this:

java.lang.NullPointerException
   at TD.mousePressed(TD.java:1115)
   ...

Pretty cool so far what I played.

"Do what you love and you'll never work a day in your life."
Android: Pac-Ball
Web Applet: Virus Effect
Old Games
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Cocosinus

Senior Newbie





« Reply #3 - Posted 2009-04-04 22:53:04 »

Corvinex, did it prevent the tower to be sold? Did it stop the game? Maybe it's just a sound issue?

Bobjob, you're right this is a crack in my game that needs fixed. I plan on doing a position LinkedList (position is a class with X,Y) that remembers the position of the built/sold towers and prevents that behavior.
Or should I just prevent towers to be sold during a round? (maybe even better)

Thanks for your comments guys :-)
Offline bobjob

JGO Knight


Medals: 10
Projects: 4


David Aaron Muhar


« Reply #4 - Posted 2009-04-04 23:51:19 »

in my version i fixed this by disabling, building during a wave.

My Projects
Games, Webcam chat, Video screencast, PDF tools.

Javagaming.org with chat room
Offline SunshineKiller

Junior Member





« Reply #5 - Posted 2009-04-05 00:51:51 »

Very fun, sound is annoying and the background eh. I got to wave 17, then i think i pushed s for sell and it crashed or something. Might of been just a fluke on my end. cool game.

<b>Check out my Development Blog:</b> <a href="http://www.scottscreations.com">Scotts Creations</a> | <b>Games in Development: </b> <a href="http://mechwarfare.scottscreations.com">Mech Warfare</a> | Mech Warfare: Facebook Edition | Game Master
Offline appel

JGO Wizard


Medals: 50
Projects: 4


I always win!


« Reply #6 - Posted 2009-04-05 01:36:47 »

Looks unusual.

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline Corvinex

Senior Member


Projects: 1


Work Hard, Go Pro.


« Reply #7 - Posted 2009-04-05 04:43:27 »

Yeah pressing S to sell, then clicking in game caused the exception.

"Do what you love and you'll never work a day in your life."
Android: Pac-Ball
Web Applet: Virus Effect
Old Games
Offline zammbi

JGO Coder


Medals: 4



« Reply #8 - Posted 2009-04-05 05:32:19 »

Go to lvl30 or so. Took about 50 min.

The game is not bad, but still can be improved in a lot of areas.

The loading was just a white screen for about 10 min for me.
Once it started the game, it froze a few times loading the images.
But once that was done, then I could play ok. The sounds were slightly annoying and 1 type of monster wasn't that exciting...
Should have bosses, different types of monsters that could be immune to a type of tower...
Able to see the monsters hp would be nice too.
I found the Ice tower not worth its money.
Right click should be deselect.
But yeah otherwise not bad... I would play again if those things were fixed.

Current project - Rename and Sort
Offline princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #9 - Posted 2009-04-05 08:47:38 »

Some general observations...
 
* could do with some improvement on the sound, graphics, and presentation
* antialias those fonts at the very least!
* seems to run at a low framerate, leaving it feeling somewhat sluggish

BTW am working on a tower defence game myself right now!

Cas Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Mike

JGO Ninja


Medals: 71
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #10 - Posted 2009-04-05 09:11:29 »

Got to lvl 28 or so but then I had spent too much money on freeze towers so it didn't work anymore.

Towers are very spread in price so you don't have that many options on what to build
Sound is... less good
Show the stats of a tower and what happens when you upgrade it so you don't spend money on unneccessary upgrades

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline zammbi

JGO Coder


Medals: 4



« Reply #11 - Posted 2009-04-05 10:06:54 »

Quote
Show the stats of a tower and what happens when you upgrade it so you don't spend money on unneccessary upgrades
It does show the stat's, but it doesn't show what the upgrade does iirc.

Current project - Rename and Sort
Offline Mike

JGO Ninja


Medals: 71
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #12 - Posted 2009-04-05 10:22:35 »

It does show the stat's, but it doesn't show what the upgrade does iirc.

Indeed, I meant the current stats next to the upgraded ones so you can compare them.

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline DzzD
« Reply #13 - Posted 2009-04-05 11:15:48 »

Quote
Java Plug-in 1.5.0_11
Utilisation de la version JRE 1.5.0_11 Java HotSpot(TM) Client VM
Répertoire d'accueil de l'utilisateur = C:\Documents and Settings\M-L M


----------------------------------------------------
c:   effacer la fenêtre de la console
f:   finaliser les objets de la file d'attente de finalisation
g:   libérer la mémoire
h:   afficher ce message d'aide
l:   vider la liste des chargeurs de classes
m:   imprimer le relevé d'utilisation de la mémoire
o:   déclencher la consignation
p:   recharger la configuration du proxy
q:   masquer la console
r:   recharger la configuration des politiques
s:   vider les propriétés système et déploiement
t:   vider la liste des threads
v:   vider la pile des threads
x:   effacer le cache de chargeurs de classes
0-5: fixer le niveau de traçage à <n>
----------------------------------------------------

java.lang.UnsupportedClassVersionError: Bad version number in .class file
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(Unknown Source)
   at java.security.SecureClassLoader.defineClass(Unknown Source)
   at sun.applet.AppletClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.applet.AppletClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.applet.AppletClassLoader.loadCode(Unknown Source)
   at sun.applet.AppletPanel.createApplet(Unknown Source)
   at sun.plugin.AppletViewer.createApplet(Unknown Source)
   at sun.applet.AppletPanel.runLoader(Unknown Source)
   at sun.applet.AppletPanel.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

oups...

Offline gouessej
« Reply #14 - Posted 2009-04-05 13:18:45 »

Hi!

It works nice here except that I had to restart the game once to make it work and when I left, I got a NullPointerException in TD.mousePressed(). Good luck.

Offline Cocosinus

Senior Newbie





« Reply #15 - Posted 2009-04-05 16:59:45 »

Thank you for all your comments and inputs, I still have a lot of work to do  Grin

For now I'm going to focus on the nullPointer exception that apparently appears when a tower is sold.

Also does someone know why people with macs keep having this mistake "bad version number in .class file"?

Also on my to fix list: better backgrounds, different kind of monsters with resistance to certain towers, maybe a new raw of towers (3 new towers to smooth the huge price difference).

Thanks again for helping me!

Offline appel

JGO Wizard


Medals: 50
Projects: 4


I always win!


« Reply #16 - Posted 2009-04-05 18:48:28 »


BTW am working on a tower defence game myself right now!

Cas Smiley

ME TOO!!!  Grin

Bahh...

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline Cocosinus

Senior Newbie





« Reply #17 - Posted 2009-04-05 21:08:00 »

So here is what I did:

1) You can now see the characteristics of the upgrades
2) There is a limit in the build/sell per round (4 of them)
3) You can now enjoy 4 different monsters, detailed in the "monster" section of the "game" explanation page: common, solid, magic and boss!
4) Also there is a "tip" section in the "game" page

Don't forget to check the keyboard shortcuts: you can turn down sound with 'm' and display the monster's hitpoints with 'x'
Offline Cocosinus

Senior Newbie





« Reply #18 - Posted 2009-04-05 22:00:14 »

I stupidly forgot to upload the new monster's pictures. It's now done they should stop being invisible  Wink
Offline DzzD
« Reply #19 - Posted 2009-04-06 00:40:23 »

back at home and can test the game again, the good news is that it work fine here and is pretty cool Smiley, the bad new is that the background image look awefull Wink

nice game

Offline Gudradain
« Reply #20 - Posted 2009-04-06 05:55:01 »

Got to level 32 and it freeze after that...

The game is ok.

Did you try the TD in WarcraftIII? People made the best tower defense I ever see with the world editor. You could get a lot of great idea from there. Here are some of my suggestion :

- The ice tower must be a must have. Don't be scare to give it BIG attack. Splash upgrape is very important too.
- Once people have freezing tower, the splash tower became very usefull. Currently it's not that usefull because the ennemy come out 1 by 1 and (if the splash size correspond to the animation) the splash size is too small.
- You should drop the price of a couple of tower. Ice and splash at least. (and probably all the other one too, but I hadn't the chance to test them before the game crash...)
Offline Cocosinus

Senior Newbie





« Reply #21 - Posted 2009-04-06 12:47:02 »

Gudradain, do you have the display of the Java console when the freeze happened? And/or a precise description of the context? Cause it happened to several people and I really need to fix that, but it never happened to me and I only have little information.

Concerning WIII, I spent hundreds of hours just on the WIII TDs, my favorite is the gold tower defense where you can both defend and send waves to the enemy, but please do not remind me of that I'm extremely busy right now and thinking about the awesomeness of WIII TDs just frustrates me  Grin

I'm thinking of having a "hero" tower that can either evolve with experience or create units that evolve with experience. Would it be just a feature or is it a big plus?

Anyways all players please let me know the conditions under which it freezes! And thanks for your interest I really appreciate it  Smiley
Offline atomhamster

Senior Newbie





« Reply #22 - Posted 2009-04-07 22:22:06 »

i love the fact that it's an applet and even more so that it's working here. xp, java 6 u12.

some feedback (im not tower defense fan, so i don't compare much):
* too slow. the first wave takes ages! i didn't know where they were coming from and where they want to get. now i realize there are images indicating that.
* the background does not hint at the grid and seems to be random
* sounds are awful, but i guess it's just some placeholder you found. too early, i guess
* no cheap walls?
* level 5 is quite ugly, to be honest   Wink

are you loading the graphics one by one, after the applet started? nice. you should add a splash screen maybe.
how is the game special? do you have more ideas? where are you going?

overall, im missing a bit of action.

Offline Cocosinus

Senior Newbie





« Reply #23 - Posted 2009-04-09 23:42:02 »

New version released: it includes a special unit called "Thing" that you can buy. It acts like a mobile unit you can command and that attacks monsters like a mobile tower. Also you can decide what kind of "Thing" you want (warrior, hero, wizard) and upgrade different abilities of it. The Thing becomes stronger when earning experience (by killing monsters or being close to monsters when they're killed) or when you buy its upgrades.

atomhamster, maybe it will make it more exciting now. I keep working on it to make it more pleasant, fix issues, add stuff!
Offline DzzD
« Reply #24 - Posted 2009-04-09 23:50:40 »

as said before too slow (not lagging but gameplay too slow), background still awefull Wink but load & run fine, it will be probably a great game once finished

EDIT:

also => you should draw the way ennemy units are going to take

Offline Cocosinus

Senior Newbie





« Reply #25 - Posted 2009-04-28 20:51:34 »

Hello folks! I recently did several changes in the game:

1) Tower combos are now possible. In a first time only with low level towers, but I am open to suggestion for hi-level combos.
2) Less monsters per wave, more start money, to make the starting less boring
3) Possibility to launch several waves at a time
4) New background, new site design
 
Please let me know what you think about it!

http://www.javatd.com
Offline Darrin

Junior Member


Projects: 1



« Reply #26 - Posted 2009-05-04 11:21:45 »

heya,

Kudos on getting it up and going.
Launched and plays fine on windows xp, intel chip set.

I just compared it to a few of these. 
http://www.defendthetowers.com/

A few suggestions to make it stronger.

I like the idea of knowing where the enemy is going via a path or goal.  Tower defense is fun trying to position correctly to maximize your towers fire power.
Speed of shots and deaths increased.
I'd start with weaker creatures, then build them up.
Mouse over tool tip instead of click would be nice.
art and sound needs some umph.  Wasn't sure if this was werewolf defence or not. 

Anywho,  good stuff.  Keep up the great work. 

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

atombrot (26 views)
2014-08-19 09:29:53

Tekkerue (25 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (14 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (61 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!