Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (472)
Games in Android Showcase (105)
games submitted by our members
Games in WIP (524)
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 5783 times)
0 Members and 1 Guest are viewing this topic.
Offline wilburthemexican

Senior Newbie





« Posted 2007-12-21 17: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 Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


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

Senior Newbie





« Reply #2 - Posted 2007-12-21 17: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 17: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 17:53:04 »

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


Medals: 11


falling into the abyss of reality


« Reply #6 - Posted 2007-12-21 19: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! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline wilburthemexican

Senior Newbie





« Reply #7 - Posted 2007-12-21 22: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-24 00: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 17: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.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Riven (5 views)
2014-07-10 18:29:06

Riven (17 views)
2014-07-10 14:55:47

CopyableCougar4 (16 views)
2014-07-10 02:26:14

CopyableCougar4 (25 views)
2014-07-09 02:55:38

Code Mage (24 views)
2014-07-08 23:57:00

Code Mage (10 views)
2014-07-08 23:49:08

AppleSauce (20 views)
2014-07-08 19:25:32

CopyableCougar4 (21 views)
2014-07-06 01:51:26

ipe369 (26 views)
2014-07-05 14:18:25

vastrolorde (37 views)
2014-07-04 18:45:44
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org 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‑gaming.org
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!