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  
  Hey, my first playable 4K game, based on Rocket Jockey  (Read 4260 times)
0 Members and 2 Guests are viewing this topic.
Offline wilburthemexican

JGO n00b
*

Posts: 8



« on: 2007-12-21 11:38:26 »

This is my first attempt at the java 4k competition. I'm learning to program, and i thought this would be a fun challenge.  Here's the first version of my game rocket4k.  It needs a lot of work but the basic mechanics are there and its still under 4k.  I haven't tryed to make the code more compressable, so the source is probably ineffiecent size wise.

the controls are up and down accelerate deccelerate. left and right shoot out grappling hooks. the grappling hooks must hit the pink pylons to stick.  Space releases the grappling hook.  Try to get the ball, and don't hit the black square.

you can download the .jar file here:
http://rubleeproductions.com/rocket4k/rocket4k.jar
for some reason my internet browser shows it as a .zip, so you may have to download it and rename it to a .jar


any suggestions would be much appreciated as this game is still in the very early stages of development, and you still can't die. Thanks, and have fun

UPDATE:: I changed the controls a bit, so that when you are swinging around and you press the oppisite grapple key, it releases and that grapple shoots out, thanks for the idea; space still releases with out throwing out a grapple
also, i'm finding it difficult to make a working webstart, i feel like a fool!!!!

WEBSTART WORKING:
webstart version
Offline Morre

JGO Ninja
***

Posts: 507


I'm Dragonene on IRC.


« Reply #1 on: 2007-12-21 11:42:15 »

It's not a self-executable jar. Webstart would be nice, too Smiley

EDIT: Never mind, it was my browser being silly. It started just fine.

EDIT2: Interesting gameplay, I hadn't seen it before - good fun. I'd like to be able to release a specific hook by pressing the same button again - how about it? Smiley

EDIT3: http://www.cokeandcode.com/webstarthowto <-- kev's tutorial, try it out Smiley

Offline wilburthemexican

JGO n00b
*

Posts: 8



« Reply #2 on: 2007-12-21 11:44:42 »

yeah, i have to figure out how to do webstart i'll search around
Games published by our own members! Go get 'em!
Offline Morre

JGO Ninja
***

Posts: 507


I'm Dragonene on IRC.


« Reply #3 on: 2007-12-21 11:47:15 »

Updated the post above a few times, just making sure you'll notice Smiley

EDIT: Oh, and about signing jars - you probably won't need that for 4k games. As long as you can run your program in sandbox mode (no writing to memory, no full screen, etc) you can just cut out the <security><all-permissions/></security> stuff and skip signing the JAR.

Offline woogley

JGO Neuromancer
****

Posts: 1098
Medals: 5



« Reply #4 on: 2007-12-21 11:53:04 »

dude, that game is awesome!
Offline SimonH

JGO Strike Force
***

Posts: 896
Medals: 14



« Reply #5 on: 2007-12-21 13:32:25 »

Nice idea! Would feel a bit more natural if the pink squares were circles though...
Why not do an applet version like I did for z4rch? If you haven't got a webstartable server (like me) it's quite easy to make an applet version for people to try out, then just submit the final webstart version for the competition.

BTW you don't need the manifest file in your jar - use 'jar cvfM'  to ignore it.

Stickmen Wars 2 is in development.
Meanwhile try Bloodridge
Offline Abuse

JGO Kernel
*****

Posts: 1866
Medals: 5


falling into the abyss of reality


« Reply #6 on: 2007-12-21 13:50:52 »

BTW you don't need the manifest file in your jar - use 'jar cvfM'  to ignore it.

If he's sticking with an auto-executable jar, he does need it...
Offline wilburthemexican

JGO n00b
*

Posts: 8



« Reply #7 on: 2007-12-21 16:33:03 »

Thanks for the comments, and the tutorial for web start, finally got it working,

can you submit a php file to java4k instead of a jpnl or whatever?
Offline 106498

JGO n00b
*

Posts: 22



« Reply #8 on: 2007-12-23 18:45:46 »

Thats an awesome game! There seemed to be some text in the top left corner but it was mostly off the screen, I suppose thats my score but I couldn't read it.
Offline wilburthemexican

JGO n00b
*

Posts: 8



« Reply #9 on: 2007-12-24 11:45:32 »

i've noticed that on macs the acceleration is really slow, but the speeds are very similar.  Does this have something to do with how macs handle keyboard events.  All motion is based of System.nanotime(), and i don't really try to make a fixed frame rate or update rate.  All my keyboard event handling is done in the game loop, per the 4k wiki suggested method of handling keyboard events. 
And i thought java was supposed to be platform independent Smiley
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.089 seconds with 21 queries.