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]
  Print  
  Critters4k  (Read 4126 times)
0 Members and 2 Guests are viewing this topic.
Offline ulfjack

Jr. Member
**

Posts: 68



« on: 2009-02-03 11:41:25 »

UlfJack proudly presents: Critters4k

Critters are attacking your desktop! Set up your tower defense and let them come. 100 levels of mayhem!

Input:
 *  1, 2, 3, or 4 to select a tower
 * space advances to the next level
 * backspace restarts the game
 * left button to build or upgrade a tower
 * right button to sell it

http://ulf.ofahrt.de/critters4k/Critters4k.jnlp

I didn't expect to submit a game this year due to time constraints, but I've found the time after all (also thanks to the deadline extension). Feedback is very welcome. (Don't complain that it is too difficult. I've personally finished level 100. :-)
Offline h3ckboy

JGO Kernel
*****

Posts: 1645
Medals: 4



« Reply #1 on: 2009-02-03 12:28:21 »

it is kina glitchy. i couldnt even get to the first level.
Offline Hansdampf

Sr. Member
**

Posts: 412
Medals: 2


too offending?


« Reply #2 on: 2009-02-03 14:01:05 »

amazing!
lvl 73, score: 32900

will have another go with more boosters

edit: lvl 77, very well balanced!

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

Jr. Member
**

Posts: 68



« Reply #3 on: 2009-02-03 17:59:38 »

h3ckboy: I'm sorry to hear that. Could you explain in a little more detail?

My girlfriend complained about the performance on her machine, which was apparently really bad for no discernable reason (she's got an Intel Core Duo with sufficient performance and the virtually identical software configuration as me). And she said that today's version was much better. I could try to use Thread.sleep instead of yield, maybe that would help?
Offline Hsaka

Jr. Member
**

Posts: 95
Medals: 2



« Reply #4 on: 2009-02-03 18:14:21 »

Addictive!

It runs very well on my machine, except for the rare occasion when the game would freeze for about 2 seconds and then continue on.
Offline Eli Delventhal
« League of Dukes »

JGO Kernel
*****

Posts: 3573
Medals: 44


Game Engineer


« Reply #5 on: 2009-02-04 03:10:12 »

Yay tower defense!

Great job fitting all this into 4k.  Smiley

See my work:
OTC Software
<br />
Currently Working On:
Secret project...
Quote from: _Riven
I edit JGO in production, because I simply don't waste time writing bugs
Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #6 on: 2009-02-04 04:59:18 »

Some sort of key to indicate what the different unit colours mean would help me, or did I just miss it?

I found it extremely hard (and I play a lot of tower defence) but it's very cool too. Glad you included the wave bar at the bottom, tower defence without doesn't feel right.

Visually could do with some blood splats, or explosions or something.

Kev

Offline h3ckboy

JGO Kernel
*****

Posts: 1645
Medals: 4



« Reply #7 on: 2009-02-04 07:38:19 »

my mouse moves SOO slow. and pressing draggint eh boxes... also the guys just never came.
Offline ulfjack

Jr. Member
**

Posts: 68



« Reply #8 on: 2009-02-04 08:53:38 »

kev: In the game or in the description? The blue guys are normal, the orange are fast, the black are slow, but strong, and the yellow ones fly. Something like this?

h3ckboy: You have to press space to start the first wave. I should have been more clear in the description about that...
Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #9 on: 2009-02-04 09:04:22 »

kev: In the game or in the description? The blue guys are normal, the orange are fast, the black are slow, but strong, and the yellow ones fly. Something like this?

Yeah, thats the sort of thing. I thought the black ones were some sort of ground attack unit only, didn't seem to be able to touch them with a standard tower.

Kev

Games published by our own members! Go get 'em!
Offline zeroone

Sr. Member
**

Posts: 295
Medals: 10



« Reply #10 on: 2009-02-04 09:18:16 »

On start up:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
   at Critters4k.paint(Unknown Source)
   at sun.awt.RepaintArea.paintComponent(Unknown Source)
   at sun.awt.RepaintArea.paint(Unknown Source)
   at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
   at java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)
Offline h3ckboy

JGO Kernel
*****

Posts: 1645
Medals: 4



« Reply #11 on: 2009-02-04 09:50:21 »

I did press space bar. it was on wave one just guys never came. maybe I didnt wait long enough.
Offline ulfjack

Jr. Member
**

Posts: 68



« Reply #12 on: 2009-02-04 11:54:40 »

h3ckboy: They should come in immediately when you press enter. Odd. I've changed the Thread.yield to a Thread.sleep in the jar below. Could you be so kind and try that out?

zeroone: Could you try it again with a jar that contains debugging info?

I've got one here: http://users.conquer-space.net/~ulfjack/Critters4k.jnlp
Offline h3ckboy

JGO Kernel
*****

Posts: 1645
Medals: 4



« Reply #13 on: 2009-02-04 12:31:23 »

I am on a different computer and it is working now. nice game btw. it may have been jsut a glitch during initialization. I am gunna ty it again in the other computer.
Offline zeroone

Sr. Member
**

Posts: 295
Medals: 10



« Reply #14 on: 2009-02-04 14:14:36 »

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
   at Critters4k.paint(Critters4k.java:290)
   at sun.awt.RepaintArea.paintComponent(Unknown Source)
   at sun.awt.RepaintArea.paint(Unknown Source)
   at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
   at java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)
Offline ulfjack

Jr. Member
**

Posts: 68



« Reply #15 on: 2009-02-05 09:49:19 »

zeroone: Apparently, start() is _not_ called before paint(), so the offscreen buffer is not initialized. I've eliminated the start method and now check whether the offscreen buffer is null, and do the initialization inside paint. I've uploaded the new jar.

I've also seen glitches where webstart does not initialize the applet window to the correct size (it's way too small, looks like some default params). Then I reload and it works. Any ideas?
Offline cylab

JGO Kernel
*****

Posts: 1940
Medals: 27



« Reply #16 on: 2009-02-10 05:23:03 »

Grr. 87, then I got a phone call Sad Great game, but it desperately needs a pause function...

Mathias - I Know What [you] Did Last Summer!
Offline Hansdampf

Sr. Member
**

Posts: 412
Medals: 2


too offending?


« Reply #17 on: 2009-02-11 06:52:18 »

 Cool Yay! I did it!  Cool

no juggle, 5 leaks, (lots of sells...)
You should make the sell factor a little bit smaller than 1, like 0.95 or so.

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

JGO Neuromancer
****

Posts: 1138
Medals: 8


Make it work; make it better.


« Reply #18 on: 2009-02-11 08:06:16 »

Does not work here.  I suspect because my work computer doesn't paint the way you expect.  If I continuously switch the window behind and back to front it goes a step at a time.

Java 1.6.0_06
Windows XP
HP I think 2GHz
On board Intel Extreme 2 graphics card

Offline zeroone

Sr. Member
**

Posts: 295
Medals: 10



« Reply #19 on: 2009-02-11 09:24:56 »

I really don't understand how to play this game.  Can you provide better instructions?
Offline CaptainJester

JGO Neuromancer
****

Posts: 1138
Medals: 8


Make it work; make it better.


« Reply #20 on: 2009-02-11 10:42:43 »

I really don't understand how to play this game.  Can you provide better instructions?

Do a search for desktop tower defense.  You will find the game this is based on.  That might help.

Offline Bonbon-Chan

Sr. Member
**

Posts: 417
Medals: 14



« Reply #21 on: 2009-02-13 03:08:25 »

Unplayable  Sad

I put some tower...
I press space, the level turn to 1...
And nothing... it seems that it take several minutes before something appends  Huh

Windows XP sp3, Celeron 2.40 GHz, 512 RAM, Java 1.6, Intel 82865G
Offline Bonbon-Chan

Sr. Member
**

Posts: 417
Medals: 14



« Reply #22 on: 2009-02-14 10:46:45 »

Try on a P4 3,20Ghz, Windows XP SP2, Java 1.6 and GeForce 7800GS. It works fine.

Great game  Smiley
Offline CaptainJester

JGO Neuromancer
****

Posts: 1138
Medals: 8


Make it work; make it better.


« Reply #23 on: 2009-02-14 12:44:12 »

Does not work here.  I suspect because my work computer doesn't paint the way you expect.  If I continuously switch the window behind and back to front it goes a step at a time.

Java 1.6.0_06
Windows XP
HP I think 2GHz
On board Intel Extreme 2 graphics card

This works on my home computer.
Java 1.6.0_11
Windows XP
AMD64 3000+
GeForce 6800

My only complaint is that you need to make the field half a tower size taller and half a tower size wider.  This will let me make a better maze.

Otherwise good job, it's pretty fun.

Offline cylab

JGO Kernel
*****

Posts: 1940
Medals: 27



« Reply #24 on: 2009-02-19 05:44:38 »

Regarding the "frozen" behavious. I had a similar issue with Grasshopper4k and the solution seems to be to add a Thread.sleep([sometime]) to give the AWT Thread some room to make its work.

Mathias - I Know What [you] Did Last Summer!
Pages: [1]
  Print  
 
 
Jump to:  

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.153 seconds with 21 queries.