Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (686)
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  
  Hey, my first playable 4K game, based on Rocket Jockey  (Read 6424 times)
0 Members and 1 Guest are viewing this topic.
Offline wilburthemexican

Senior Newbie

« Posted 2007-12-21 16: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:
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 version
Offline Morre

JGO Knight

Medals: 2
Projects: 10

I'm Dragonene on IRC.

« Reply #1 - Posted 2007-12-21 16: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: <-- kev's tutorial, try it out Smiley

Offline wilburthemexican

Senior Newbie

« Reply #2 - Posted 2007-12-21 16:44:42 »

yeah, i have to figure out how to do webstart i'll search around
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Morre

JGO Knight

Medals: 2
Projects: 10

I'm Dragonene on IRC.

« Reply #3 - Posted 2007-12-21 16: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
« Reply #4 - Posted 2007-12-21 16:53:04 »

dude, that game is awesome!
Offline SimonH
« Reply #5 - Posted 2007-12-21 18: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.

People make games and games make people
Offline Abuse

JGO Ninja

Medals: 42

falling into the abyss of reality

« Reply #6 - Posted 2007-12-21 18: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...

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here!
Offline wilburthemexican

Senior Newbie

« Reply #7 - Posted 2007-12-21 21: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

Senior Newbie

« Reply #8 - Posted 2007-12-23 23: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

Senior Newbie

« Reply #9 - Posted 2007-12-24 16: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]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Dwinin (69 views)
2015-11-07 13:29:08

Rems19 (78 views)
2015-10-31 01:36:56

Rems19 (71 views)
2015-10-31 01:32:37

williamwoles (105 views)
2015-10-23 10:42:59

williamwoles (92 views)
2015-10-23 10:42:45

Jervac_ (106 views)
2015-10-18 23:29:12

DarkCart (133 views)
2015-10-16 00:58:11

KaiHH (116 views)
2015-10-11 14:10:14

KaiHH (155 views)
2015-10-11 13:26:18

BurntPizza (168 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 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‑
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!