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
  Print  
  A little hack  (Read 4558 times)
0 Members and 3 Guests are viewing this topic.
Offline DrBizzar0

Full Member
**

Posts: 175


Raj raj!


« on: 2004-02-04 15:44:16 »

Ah, I've discovered something very entertaining. Hacking together small games that takes at the most two days from idea to completion.

Usually I embark on projects that tends to be quiet big and I often end up losing interest in it a long time before it's even playable. But when hacking together a game in a couple of days losing interest never is an issue Smiley. Hopefully it will be fun to later on add features to the small games and by that be able to make something bigger, thus beating my lack of endurance Cheesy

Anyway, enough rambling, here's the game I made today. The game-play is pretty simple, you move the character Zog with the mouse and have to avoid being hit by the rocks that flies around.

http://www.enormousgames.com/subsites/zogsrockingtrouble/zogsrockingtrouble.jnlp

I will probably put some finishing touches on it tomorrow.
Offline Conzar

Sr. Member
**

Posts: 317


There is nothing common about common sense


« Reply #1 on: 2004-02-04 20:42:10 »


This is the error I get when it starts -- using linux 2.6.1 kernel and blackdown linux 1.4.2

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
 java.lang.NullPointerException
      at com.enormousgames.database.mysql.DatabaseInterface.makeStatement(DatabaseInterface.java:110)
      at com.enormousgames.database.mysql.DatabaseInterface.<init>(DatabaseInterface.java:64)
      at com.enormousgames.projects.zogsrockingtrouble.logic.MainLogic.<init>(MainLogic.java:54)
      at com.enormousgames.projects.zogsrockingtrouble.ZogsRockingTrouble.main(ZogsRockingTrouble.java:21)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at com.sun.javaws.Launcher.executeApplication(Launcher.java:837)
      at com.sun.javaws.Launcher.executeMainClass(Launcher.java:797)
      at com.sun.javaws.Launcher.continueLaunch(Launcher.java:675)
      at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:390)
      at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:199)
      at com.sun.javaws.Launcher.run(Launcher.java:167)
      at java.lang.Thread.run(Thread.java:534)

Ubuntu
Offline oNyx

JGO Kernel
*****

Posts: 2943
Medals: 5


pixels! :x


« Reply #2 on: 2004-02-04 21:28:31 »

java.lang.NullPointerException

     at com.enormousgames.database.mysql.DatabaseInterface.makeStatement(DatabaseInterface.java:110)

     at com.enormousgames.database.mysql.DatabaseInterface.<init>(DatabaseInterface.java:64)
[...]

Same error. 1.4.2_03 win98se.

弾幕 ☆ @mahonnaiseblog
Games published by our own members! Go get 'em!
Offline Java Cool Dude

JGO Ninja
***

Posts: 680


Java forever


« Reply #3 on: 2004-02-04 21:41:08 »

/me is in the same league
Offline DrBizzar0

Full Member
**

Posts: 175


Raj raj!


« Reply #4 on: 2004-02-05 00:15:50 »

Hm ok, must have been trouble with the webhotel, it has been unreliable the last two months. On the otherhand the game shouldn't chrash just because it couldn't connect to the highscoredatabase Smiley. I've made a quick change so it shouldn't chrash, will look into it more seriously later on today.
Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #5 on: 2004-02-05 00:24:51 »

Interesting that you came to this idea, I reached the same conclusion about games a while ago and started doing 40 hour projects (http://www.newdawnsoftware.com/40hrweb/).

Thats where Warlock came from..

Kev

Offline princec
« League of Dukes »

JGO Kernel
*****

Posts: 8073
Medals: 91


Eh? Who? What? ... Me?


« Reply #6 on: 2004-02-05 01:59:48 »

AWESOME GAME! It's just... brilliant in concept!
And I should hope so too, because it has a fundamentally very similar mechanic to Invasion of the Jellies! (Except you can't shoot...)

Cas Smiley

Online Orangy Tang

JGO Kernel
*****

Posts: 2959
Medals: 37


Monkey for a head


« Reply #7 on: 2004-02-05 02:25:40 »

Interesting game, but... didn't I see this exact same game (but with simple coloured squares) in an applet a few days ago? Was that yours as well or did you happen to get the idea from it?

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline DrBizzar0

Full Member
**

Posts: 175


Raj raj!


« Reply #8 on: 2004-02-05 05:15:08 »

Orangy Tang: no I stole the idea from a javascript version of the game.

Princec: look above Roll Eyes

kevglas: nice to see that I'm not the only one with that problem Smiley


I'm planning to add features to the game next, so the game won't be a total rip-off and Orangy Tang can sleep well tonight  Wink
Offline DrBizzar0

Full Member
**

Posts: 175


Raj raj!


« Reply #9 on: 2004-02-05 10:11:06 »

Ok, I've uploaded a new version with bonus features.

A bonus feature pops up after a while and you pick it up by simply draging Zog over the feature. To activate the picked up feature you press a mouse button.

One of the features is evil so if you get that you'll have to decide whatever it is an idea to use it and be able to get a new one or not.  Grin

The features will need som tweaking so suggestions is most welcome.
Games published by our own members! Go get 'em!
Offline Conzar

Sr. Member
**

Posts: 317


There is nothing common about common sense


« Reply #10 on: 2004-02-05 14:07:48 »

Cool.  Nice game.

Did you use java2d or jogl or what???
Just wondering.

Oh yea, the guy yelling kinda gets on your nervs Smiley

And by the way --- I've got the high score -- hur ra!!!!!

Ubuntu
Offline Mojomonkey

JGO Ninja
***

Posts: 540
Medals: 3


ooh ooh eee eeee


« Reply #11 on: 2004-02-05 15:05:11 »

Wow! I found myself playing repeatedly. It's amazing how fun something so simple can be. Good job!

Don't send a man to do a monkey's work.
Offline ChrisM

JGO Neuromancer
****

Posts: 1181
Medals: 17


END OF LINE.


« Reply #12 on: 2004-02-05 17:46:37 »

Love this kind of game.  Simple, quick and addictive. Smiley

-ChrisM

Offline DrBizzar0

Full Member
**

Posts: 175


Raj raj!


« Reply #13 on: 2004-02-06 00:18:12 »

Conzar: It's plain java2d. And damn you for stealing the firts place! Grin I'll have to beat your score later today.
Offline oNyx

JGO Kernel
*****

Posts: 2943
Medals: 5


pixels! :x


« Reply #14 on: 2004-02-06 01:36:22 »

84.64

Hm. The collision detection isn't perfect. It's just simple bounding box stuff right? Well, it seems to be a bit "off".

However, it's a nice game Smiley

弾幕 ☆ @mahonnaiseblog
Offline DrBizzar0

Full Member
**

Posts: 175


Raj raj!


« Reply #15 on: 2004-02-06 01:45:52 »

Jupp simple bounding box. The rocks can go into the character a little bit, which is intentional to give more of a "I'm the king of the world" felling while playing. What exactly felt off?
Offline oNyx

JGO Kernel
*****

Posts: 2943
Medals: 5


pixels! :x


« Reply #16 on: 2004-02-06 03:25:58 »

Hm... if you look at the character and asumes that the bounding box is just a box wich exactly encloses the character (image size heh)... it's exactly that way in the upper area but it isnt that way in the lower area.

E.g. the rocks can flow through your legs but if they just came near your head you die Smiley

Also the bounding box should not be able to leave the screen ... I mean it should be always completly on the screen.

弾幕 ☆ @mahonnaiseblog
Offline DrBizzar0

Full Member
**

Posts: 175


Raj raj!


« Reply #17 on: 2004-02-06 03:52:46 »

Yeah I took a look at it, right now the boundingbox looks like this.



So the head is indeed pretty exposed. Wink

Maybe I'll add some more advanced collision detection later on, it'll have to do for now though Smiley

Offline oNyx

JGO Kernel
*****

Posts: 2943
Medals: 5


pixels! :x


« Reply #18 on: 2004-02-06 04:00:20 »



Ah yea... that looks better... it's as expected plus a little buffer zone Smiley

弾幕 ☆ @mahonnaiseblog
Offline moonpxi

JGO n00b
*

Posts: 38


Java games rock indeed!!!


« Reply #19 on: 2004-02-08 06:54:12 »

Oh....how I hate you for doing such an addictive game!!!

Argh...I..must...keep..playing!!!

Moon Pxi, a NerdCorper
Offline princec
« League of Dukes »

JGO Kernel
*****

Posts: 8073
Medals: 91


Eh? Who? What? ... Me?


« Reply #20 on: 2004-02-08 08:25:08 »

*cough* found serious bug... hold down left mouse button whilst playing Wink (Hence you find me mysteriously at the top of the hiscores list! Hehe)

Cas Smiley

Offline oNyx

JGO Kernel
*****

Posts: 2943
Medals: 5


pixels! :x


« Reply #21 on: 2004-02-08 09:23:05 »

Quote
*cough* found serious bug... hold down left mouse button whilst playing Wink (Hence you find me mysteriously at the top of the hiscores list! Hehe)


Doh... dragging out of the screen Shocked

弾幕 ☆ @mahonnaiseblog
Offline moonpxi

JGO n00b
*

Posts: 38


Java games rock indeed!!!


« Reply #22 on: 2004-02-08 14:38:38 »

Quote
*cough* found serious bug... hold down left mouse button whilst playing Wink (Hence you find me mysteriously at the top of the hiscores list! Hehe)


Cheater!!! Angry

You know, cheaters never win!!! Wait....hmmm...they DO win...and rather quickly....  Embarrassed

Moon Pxi, a NerdCorper
Offline DrBizzar0

Full Member
**

Posts: 175


Raj raj!


« Reply #23 on: 2004-02-09 06:17:49 »

lol! Convenient bug, just hide Zog and go for coffe and when you come back you'll have a nice highscore Wink

The bug is fixed now anyway and I have deleted the highscores that seemed to be cheats. So moonpxi it seems like in the end cheaters don't win Cheesy
Offline Jens

JGO Ninja
***

Posts: 575


Java for games!


« Reply #24 on: 2004-02-11 12:17:50 »

I didn't even cheat, when I made the highscore. I think the stones were too slow.

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline DrBizzar0

Full Member
**

Posts: 175


Raj raj!


« Reply #25 on: 2004-02-11 13:58:41 »

ok, so slow that you could have gone on forever? And you didn't by any chance get alot of snail rock features?
Offline blahblahblahh

JGO Kernel
*****

Posts: 4575


http://t-machine.org


« Reply #26 on: 2004-02-12 07:05:16 »

A boring game, I thought, although I was grateful for a game I could play for just a minute, since I'm usually too busy to play any normal games.

(...5 minutes later, having found the highscore table and the powerups...) Grr. Must. Beat. Score!

I'm now forcing myself not to try again (or I'll never get backto work Sad ), but here are a few simple suggestions for improvements you might like:

  • Don't center the initial positions of the rocks AND the "start game" dialog! I die three times every time I try to start a new game Sad.
  • Make the counter move faster when zog's not moving - kill two birds with one stone: takes too long to get going for some people, and also staying still is a skill.
  • ...or even: Make the counter accelerate when zog's not moving, then reset to normal speed when he stops - this rewards anyone who can predict (or thinks they can) where all the rocks are going to move. Adds the spice of playing "chicken" with the rocks ( can I get away with this pending collision? Dare I stay still, and preserve the fast counter, or move and live to fight another day?)
  • perhaps hard-limit the rocks speed to a slightly lower max speed, if you introduce new features, so that people have more time to compete on the new features rather than raw speed / luck.
  • Display a countdown timer showing how much longer you need to survive to get one tick higher on the high scores table. Cruel, but.. Smiley. Obviously, this needn't be 100% correct, just correct as of the last synch to the highscore table. Also show your current position on the highscores table...


Oh, and rocks bouncing off each other as well as the walls would be nice, increasing the difficulty. Perhaps, after say 100 seconds, it switches to this mode (makes it much harder to predict where rocks will go, AND means the amount of "safe" screen space is constant; at the moment there are times when there is more safe space because of overlap)

malloc will be first against the wall when the revolution comes...
Offline blahblahblahh

JGO Kernel
*****

Posts: 4575


http://t-machine.org


« Reply #27 on: 2004-02-12 07:10:54 »

Quote
Interesting that you came to this idea, I reached the same conclusion about games a while ago and started doing 40 hour projects (http://www.newdawnsoftware.com/40hrweb/).

Thats where Warlock came from..

Kev


Nooooooo! ZIP'd JAR! You *sinner*! (is there a need for these ZIP's? What?)

To be honest, I would happily click a jar on a webpage (opens automatically because I've set up the association), but I can't be bothered to:

  • Click on link
  • Wait for mozilla (slow app) to display save as dialog
  • Find somewhere sensible to save to
  • Save the ZIP
  • Open up a new terminal window
  • Navigate to relevant directory
  • type "unzip blah"
  • (possibly move to a new subdirectory, happens often Sad )
  • Find filename of jar file
  • type java -jar blah.jar


PS Please continue developing the 1942 clone; my addiction to that game is so strong that even though I haven't played your version, I'm sure you're onto a good thing here Smiley

malloc will be first against the wall when the revolution comes...
Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #28 on: 2004-02-12 07:47:43 »

<THREAD JACK>
Fraid it's all be left behind like so many other my projects, filled my 40 hr quota tho Wink

Zipped Jars, I know know! I have been converted honest, this was before WebStart was really available properly and before I realised the error of my ways..

However, my other sin is laziness, and hence no updates shall ever get done Smiley
</THREAD JACK>

Kev

Offline Jens

JGO Ninja
***

Posts: 575


Java for games!


« Reply #29 on: 2004-02-12 08:29:48 »

Quote
ok, so slow that you could have gone on forever? And you didn't by any chance get alot of snail rock features?


I created the highscore (I think it was 32x.xxx) before there were features. For the last couple of times I played, it was OK. Is the snail rock feature supposed to make the stones slightly slower? At least I don't see any visible effect. Time freeze and the immaterial thing works fine.

Xith3D Getting Started Guide (PDF,HTML,Source)
Pages: [1] 2
  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.144 seconds with 19 queries.