Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2 3
  Print  
  Cell Invaders - TowerDefense Applet  (Read 12162 times)
0 Members and 3 Guests are viewing this topic.
Offline Hansdampf

Sr. Member
**

Posts: 412
Medals: 2


too offending?


« on: 2010-04-28 09:28:20 »

It ist not complete yet, but playable.



This Applet won't crash your browser! Promise!

clicky!

Feedback please!

lots of sillystupid games: http://www.emaggame.com
Offline teletubo
« League of Dukes »

Sr. Member
*****

Posts: 463
Medals: 17



« Reply #1 on: 2010-04-28 09:39:16 »

Awesome !
I couldn't play too much (I'm at work now) but I really liked it .
I couldn't help noticing the similarity with Desktop Tower defense, but yours seems lot more polished .
I tried clicking "next" to fill it with bacterias, and no slow down . Very good !
Just need some more towers and stuff.
I wonder who's the 'hero' that the spacebar refers to .

Edit: oh, and did you do it only with Java2D ? cause I didn't get any security popup.

Offline Hansdampf

Sr. Member
**

Posts: 412
Medals: 2


too offending?


« Reply #2 on: 2010-04-28 09:43:13 »

thanks Smiley
You get the hero in level 2.
yeah, it is much like DTD (my fav Flash game), but... drumroll... with some movable units.
The tutorial (first 3 levels) should explain everything.

lots of sillystupid games: http://www.emaggame.com
Games published by our own members! Go get 'em!
Offline Hansdampf

Sr. Member
**

Posts: 412
Medals: 2


too offending?


« Reply #3 on: 2010-04-28 09:51:51 »

Edit: oh, and did you do it only with Java2D ? cause I didn't get any security popup.
mostly my own software rendering, looping through int[]  (except non-prerotated sprites -> standard java2d)

lots of sillystupid games: http://www.emaggame.com
Online Riven
« League of Dukes »

JGO Kernel
*****

Posts: 5866
Medals: 255


Hand over your head.


« Reply #4 on: 2010-04-28 11:22:21 »

It crashed in level 6... white applet. Java Console vanished...

Hi, appreciate more people! Σ ♥ = ¾

Learn how to award medals... and work your way up the social rankings
Offline Hansdampf

Sr. Member
**

Posts: 412
Medals: 2


too offending?


« Reply #5 on: 2010-04-28 11:44:27 »

Hm.. unkewl.
Will test, investigate and hunt that error down. Will be difficult.
The levels are not very balanced yet nor extremely tested - very time consuming.
At least the error could be  not my fault (no console?)... like always: blame the VM Smiley
I will update the levels in a few days and tweak everything, so I can finish this game next week.
...must ...finish this game.

lots of sillystupid games: http://www.emaggame.com
Online Riven
« League of Dukes »

JGO Kernel
*****

Posts: 5866
Medals: 255


Hand over your head.


« Reply #6 on: 2010-04-28 11:48:34 »

Hm.. unkewl.
Will test, investigate and hunt that error down. Will be difficult.
The levels are not very balanced yet nor extremely tested - very time consuming.
At least the error could be  not my fault (no console?)... like always: blame the VM Smiley
I will update the levels in a few days and tweak everything, so I can finish this game next week.
...must ...finish this game.

Regarding the gameplay: I didn't ever use the painters, and only started using air-defense structures in level 5. I'm always using the most basic defense, don't really need to upgrade them, just making a very long path.

Hi, appreciate more people! Σ ♥ = ¾

Learn how to award medals... and work your way up the social rankings
Offline JoC

Jr. Member
**

Posts: 71


I love YaBB 1G - SP1!


« Reply #7 on: 2010-04-28 15:48:10 »

Very nice game!
Crashed here on level 6 aswell, on my second try on that level.
Offline Hansdampf

Sr. Member
**

Posts: 412
Medals: 2


too offending?


« Reply #8 on: 2010-04-28 16:00:36 »

Yay! I'm so glad it is reproducible.
I'll let you know when I corrected it and provide a level code which unlocks the first 6 level.

lots of sillystupid games: http://www.emaggame.com
Online Riven
« League of Dukes »

JGO Kernel
*****

Posts: 5866
Medals: 255


Hand over your head.


« Reply #9 on: 2010-04-28 16:02:22 »

... and provide a level code which unlocks the first 6 level.

Was just about to ask. Smiley

Hi, appreciate more people! Σ ♥ = ¾

Learn how to award medals... and work your way up the social rankings
Games published by our own members! Go get 'em!
Offline kappa
« League of Dukes »

JGO Kernel
*****

Posts: 2357
Medals: 59


★★★★★


« Reply #10 on: 2010-04-28 16:27:22 »

oh, very impressive work, really fun to play and great amounts of polish, top stuff.

+1 point if the game installs and uninstalls correctly
+0 point if the game doesn't crash ever (probably get this point too once its crashes get fixed, see below for further explanation)
+1 point if the game is slickly presented
+1 point if the game has "good" graphics that suit the game
+1 point if the game has "good" sound that suit the game
+1 point if the game's overall style is "good"
+0 point if the game is original or brings a great new original twist (just a tower defence, but a very polished one, need to play it more to see if this point can be awarded but so far not convinced)
+1 point if your judge enjoyed playing the game
+1 point if the game is complete enough that doesn't feel anything is missing
+1 point if you don't whine and you demand nothing of the mods (simply saying "can you rate my game please" is fine)

8/10

Top game, I'm sure you'll fix the crash issues ppl have mentioned above, further I get an ugly exception box that pops up at the start of every level (sometimes multiple times) but game continues to work fine after I close it example.

Further could do with some balancing on the weapons strength/enemy strength, thought that the initial enemy strength was a little too strong. Once you have enough towers then suddenly feels a bit too easy making the towers a bit too strong. Guess a little tweaking here and there is need to get it to the right balance.

Also rocket tower behaviour is a bit odd as sometimes it might push the enemies in a direction that might allow them to get to the destination quicker and bypass some of your well placed towers.

the animation on the graphics are really smooth, 3d to 2d? they feel very fluid.

really nicely done and deserves to be in the featured section.

FEATURED.
Offline Hansdampf

Sr. Member
**

Posts: 412
Medals: 2


too offending?


« Reply #11 on: 2010-04-28 16:54:50 »

Cheesy
*bows low*

BUT I WANT 10/10 !!! just kidding.
And thanks for the comments and the exception.

>The rocket tower behaviour is a bit odd as sometimes it might push the enemies in a direction that might allow them to get to the destination >quicker and bypass some of your well placed towers.

thats on purpose

>the animation on the graphics are really smooth, 3d to 2d? they feel very fluid.

Yes, 3d -> monocolor-> black cartoon border -> 2d (and everything generated procedurally in game)
Just got it down to 650k (pack200)

lots of sillystupid games: http://www.emaggame.com
Offline princec
« League of Dukes »

JGO Kernel
*****

Posts: 8076
Medals: 91


Eh? Who? What? ... Me?


« Reply #12 on: 2010-04-28 17:28:41 »

Really slick work*

Cas Smiley

* Bah! A competitor!

Offline Gudradain

Sr. Member
**

Posts: 371
Medals: 8



« Reply #13 on: 2010-04-28 22:42:33 »

White crash in level 5. I did level 6 before 5 and 4. So it might not be related to level 6. Maybe something like score or hero level or just something random...

Btw

Nice game. Very well done Smiley
Offline zammbi

JGO Strike Force
***

Posts: 963
Medals: 9



« Reply #14 on: 2010-04-29 05:25:13 »

Just got this crash while trying to load the game. This is the first time loading it.
Windows 7.
Java 6 Update 20.
Chrome 5 browser.

Quote

load: class gamecow.collectionplayer.CollectionPlayerStarterFixCompiled not found.
java.lang.ClassNotFoundException: gamecow.collectionplayer.CollectionPlayerStarterFixCompiled
   at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://www.krautsoft.vs241092.vserver.de/virchow/gamecow/collectionplayer/CollectionPlayerStarterFixCompiled.class
   at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
   at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   ... 7 more
Exception: java.lang.ClassNotFoundException: gamecow.collectionplayer.CollectionPlayerStarterFixCompiled

When refreshing it, it came right and was able to play.

Edit:
Great game. Had no problems playing it.

Current project - Rename and Sort
Offline JoC

Jr. Member
**

Posts: 71


I love YaBB 1G - SP1!


« Reply #15 on: 2010-04-29 15:56:48 »

I got the crash on level 3 now.
Win7 64bit, Java6.18
Offline Hansdampf

Sr. Member
**

Posts: 412
Medals: 2


too offending?


« Reply #16 on: 2010-04-29 16:22:01 »

yep, I put a warning message into the title screen that the game will crash soon or later.
Did not find the cause yet, pretty hard without a stack trace.
I catch all Throwables. In theory, the trace should be sent back to the server (I log 'em all, including the exception which kapta sent).
But there is nothing...

lots of sillystupid games: http://www.emaggame.com
Online Riven
« League of Dukes »

JGO Kernel
*****

Posts: 5866
Medals: 255


Hand over your head.


« Reply #17 on: 2010-04-29 17:05:02 »

Java Console was open, then it crashed, and the console vanished (again). So... no stacktrace of that one.


An other one however:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
java.lang.NullPointerException
   at kdk.util.StringHelper.a(Unknown Source)
   at kdk.util.StringHelper.<init>(Unknown Source)
   at kdk.threeD.OObjectModifier.<init>(Unknown Source)
   at kdk.threeD.SceneModPod$14.a(Unknown Source)
   at kdk.threeD.studio.TinyParser.b(Unknown Source)
   at kdk.threeD.studio.TinyParser.c(Unknown Source)
   at kdk.threeD.studio.TinyParser.a(Unknown Source)
   at kdk.threeD.studio.TinyParser.a(Unknown Source)
   at kdk.ScreenSource3D.a(Unknown Source)
   at gamecow.stuff.picpod.SceneScreenPod.a(Unknown Source)
   at gamecow.stuff.picpod.SceneScreenPod.a(Unknown Source)
   at gamecow.stuff.picpod.SceneScreenPod.a(Unknown Source)
   at gamecow.games.towerdefense.spawner.WaveListViewer.render(Unknown Source)
   at gamecow.games.towerdefense.spawner.WaveListViewer.render(Unknown Source)
   at gamecow.gamefx.GameFX.paint(Unknown Source)
   at kdk.dope.PluginManager.a(Unknown Source)
   at kdk.dope.PluginManager.a(Unknown Source)
   at kdk.dope.CannabisKwt.a(Unknown Source)
   at gamecow.SuperGame.b(Unknown Source)
   at gamecow.chapter.Chapter.a(Unknown Source)
   at gamecow.collectionplayer.playertypes.CollectionPlayer.c(Unknown Source)
   at gamecow.collectionplayer.playertypes.SingleGamePlayer.b(Unknown Source)
   at gamecow.chapter.Chapter.a(Unknown Source)
   at gamecow.collectionplayer.playertypes.CollectionPlayer.a(Unknown Source)
   at gamecow.collectionplayer.CollectionPlayerStarter.a(Unknown Source)
   at gamecow.collectionplayer.CollectionPlayerStarter.b(Unknown Source)
   at kdk.Main.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


And...
VaWNlGiGaciGaciGR3oQkX6YnnDg4qUq2qq9VATx4qfavsdT0s-TacyQZNM6TciGacmwn
XaWNlGiGaciGaciGR3oQkX6YnTT8XPebTN4AEZcpXNmybpOLqjf8aRVMaomT*eARaciGqiB

Hi, appreciate more people! Σ ♥ = ¾

Learn how to award medals... and work your way up the social rankings
Offline Karmington

Full Member
**

Posts: 177
Medals: 1


Co-op Freak


« Reply #18 on: 2010-04-29 19:08:18 »

Played, solid start. Memory use keeps growing with each game played, about 10 meg more every new game.

Offline Hansdampf

Sr. Member
**

Posts: 412
Medals: 2


too offending?


« Reply #19 on: 2010-04-30 01:28:16 »

BAM!
I found the cause (I hope!) and it was really, really stupid. Stupid because I already corrected it before, but commented it out again for testing. It was a simple ConcurrentModificationException when updating the blocked regions (by towers and creeps).
I guess proguard screwed it up, so nothing was printed to the console. Yes, I really need the Proguard step.

Played, solid start. Memory use keeps growing with each game played, about 10 meg more every new game.
I think/hope it keeps growing because there is lots of memory left (I reserve 256m). Just simulated 1000 game plays with a robot and it worked fine.
Thanks everyone for (re-re-re) testing.
Loving Java again. Until the next exception!
Now working on the actual gameplay/levels again...

lots of sillystupid games: http://www.emaggame.com
Offline princec
« League of Dukes »

JGO Kernel
*****

Posts: 8076
Medals: 91


Eh? Who? What? ... Me?


« Reply #20 on: 2010-04-30 05:04:51 »

Why on earth do you need the proguard step?

Cas Smiley

Offline Hansdampf

Sr. Member
**

Posts: 412
Medals: 2


too offending?


« Reply #21 on: 2010-04-30 05:26:54 »

Why on earth do you need the proguard step?

Cas Smiley
because 2.3m is less than 6 mb.

compile->jar = 6m    (lots of class files + ca. 200k data in txt files)
-> prog = 2.3m
-> pack200 -> 650k

in my "toolchain" I set some final variables, so proguard can eliminate unneeded code.
like:
1  
injectBoolean(SuperGame.class,"DEBUG",false);

and automatically reverting it afterwards.

plus my code is so f**king awesome and I will make trillions of drachmas and it is protected that way.
Maybe I could play around more with the proguard options, but so far it worked fine for me. Stack traces can easily been remapped:
I have a retrace.bat
1  
2  
java -jar retrace.jar proguard.map %1
pause
where I can drag-drop the stack traces

lots of sillystupid games: http://www.emaggame.com
Offline princec
« League of Dukes »

JGO Kernel
*****

Posts: 8076
Medals: 91


Eh? Who? What? ... Me?


« Reply #22 on: 2010-04-30 07:30:08 »

How big is it just with pack200/gz?

Cas Smiley

Offline Hansdampf

Sr. Member
**

Posts: 412
Medals: 2


too offending?


« Reply #23 on: 2010-04-30 07:55:42 »

How big is it just with pack200/gz?

Cas Smiley
1.6m
thats not too big for an applet, but I have a better feeling when there are not 50 other, unfinished games and all my editors inside the jar. Including the server code...

lots of sillystupid games: http://www.emaggame.com
Offline princec
« League of Dukes »

JGO Kernel
*****

Posts: 8076
Medals: 91


Eh? Who? What? ... Me?


« Reply #24 on: 2010-04-30 09:15:26 »

Doh, hardly seems worth the effort of the proguard step then. The difference is like, 2 page views from Puppygames.

Cas Smiley

Offline Hansdampf

Sr. Member
**

Posts: 412
Medals: 2


too offending?


« Reply #25 on: 2010-04-30 09:49:08 »

Small is cool. This is a mouse speaking.

lots of sillystupid games: http://www.emaggame.com
Online Riven
« League of Dukes »

JGO Kernel
*****

Posts: 5866
Medals: 255


Hand over your head.


« Reply #26 on: 2010-04-30 10:01:04 »

in my "toolchain" I set some final variables, so proguard can eliminate unneeded code.
like:
1  
injectBoolean(SuperGame.class,"DEBUG",false);

and automatically reverting it afterwards.

NEVER do that. the JVM will make optimisations around final variables, and modifying them will make the behaviour of your code 'undefined'.


Besides that. When you applet crashes, and the Java Console vanishes, that means the JVM crashed, which should be impossible, unless you do naughty stuff, like you did.

Hi, appreciate more people! Σ ♥ = ¾

Learn how to award medals... and work your way up the social rankings
Offline Hansdampf

Sr. Member
**

Posts: 412
Medals: 2


too offending?


« Reply #27 on: 2010-04-30 10:22:51 »

No, no, no naughty stuff happening.
I change the final variables BEFORE using javac.
inject(blahh) finds the .java source file and modifies it.
Instead of messing around with ANT and XML I call everything from Eclipse.
Pressing play, keep on coding until a nice sounds indicates that everything is nicely deployed, packed and logged.
Life is much easier since I'm only dependent on a working Java compiler. 
So no explanation for the cruel crashes.

lots of sillystupid games: http://www.emaggame.com
Offline Noobtastic

JGO n00b
*

Posts: 46



« Reply #28 on: 2010-04-30 10:52:09 »

Excellent game, must have more!

Offline Marksman Ken

Jr. Member
**

Posts: 52



« Reply #29 on: 2010-04-30 12:44:12 »

Works perfect, amazing game!
Pages: [1] 2 3
  Print  
 
 
Jump to:  


Add your game by posting it in the showcase section.

The first screenshot will be displayed as a thumbnail.

obsidian_golem 2012-05-23 10:14:50

Danny02 2012-05-21 17:10:34

Danny02 2012-05-21 17:07:10

Danny02 2012-05-21 16:56:12

davedes 2012-05-21 13:59:23

obsidian_golem 2012-05-20 20:28:41

darkjava55 2012-05-12 16:14:40

Ultroman 2012-05-12 09:36:05

Ultroman 2012-05-11 22:49:53

Ultroman 2012-05-11 22:20:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.233 seconds with 19 queries.