Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (524)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (592)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  Agent: 00PK  (Read 22825 times)
0 Members and 1 Guest are viewing this topic.
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Posted 2008-04-14 10:51:41 »

NOW WORKS ON WINDOWS, LINUX, AND MAC OS X.

I've been making a game for the past three months called "Agent: 00PK." In it you play as a spy who uses her incredible parkour skills to sneak into enemy bases and rescue the world from nuclear destruction.

This isn't anywhere near done, but there's plenty to demo if people want to give it a look. And if you don't know what parkour is, be sure to check this link: http://www.youtube.com/results?search_query=parkour&search_type=

Features
• Over 40 different parkour moves your character can perform (not all implemented yet).
• Realistic physics (a modified version of Phys2D, and currently the gravity is too low).
• Adaptive AI (current not a very good AI because the learning function has issues, but nonetheless uses a Q-Learner algorithm).
• Pretty sprites made with PNG-16 encoding, and expansive compressed backgrounds (although I haven't made nearly all the graphics yet).
• An intricate level editor that allows you to construct anything you can imagine.
• OpenGL and OpenAL via LWJGL.
• Robots with simple AI and Guards with Q-Learning AI. Lasers, bullets, homing missiles.

Known Bugs
• If you're at standing and hold the jump button, you'll do a crazy super jump.
• You can often grab an edge from an inappropriate distance, or can't grab one when you should be able to.
• If you try to play past the third level, the game will break (no other levels made yet).
• If you see an "ugly" sprite, it's because the animation for it hasn't been added in yet.
• You can't jump while running.

Controls
The controls are all customizable, but it should be noted that they're very context sensitive. If you're using the defaults, here are some hints:
• Move around with the left and right arrow keys.
• Press C while moving to do a forward jump. Press C while still to do a standing jump.
• Hold C when near an edge to have your character grab and hang (for as long as you hold C).
• While hanging with C, also press Z and X to do a pullup and get on the ledge (careful this is sort of buggy, you might be hanging too low to actually get up).
• If you have just jumped at a wall, press Z, X, and C, to do a "Tic Tac," which will propel you in the other direction.
• If you have just jumped at a wall, press C to do a Wall Jump. Currently, this is broken.
• If you are landing from a drop, hold down C to do a parkour roll. This will lower the likelihood of death from falling.
• If you are landing from a drop, hold down X to do a precision landing. This increases your friction on landing.

Cheats
There are cheats in the game to mess around with things.
• Kitty Cat Kong
• Joints of Steel
• Bullet Speed
• I am David Belle
• Moon Shoes
• Coo Coo Raw Cha

I think that's about it. Have fun! There is a significant amount of tweaking that needs to happen to make this game more enjoyable, but you'll get the idea. Oh, and in order to finish a level, follow your compass in the bottom right corner. It will lead you to a glowing arrow that is the "exit." A good hint for getting past the guards is that they can't shoot you while you hang on a ledge. Try it out.

Download Webstart here:
http://www.slyhawk.com/agent00pk/webstart/Agent00PK.jnlp
(latest Webstart update: April 15, 2008)

Updates:
• April 13, 2008 – Initial upload of early build.
• April 14, 2008 – Support added for all OS's, repeat texture loading bug fixed.
• April 15, 2008 – Simple AI added, more guards placed in levels, JNLP file size optimized, texture loading optimized. Debug turned off, with cheat (Coo Coo Raw Cha) to turn it back on.
• April 16, 2008 – Training levels being worked on, physics further tweaked, pushable blocks added, individual hit boxes for hands added. Destructible terrain being worked on.
• May 13, 2008 – Robots added. Homing missiles added. Level selector added. Webstart custom level support added. Webstart save file support added. Bug fixes and tweaks. Sound added. Level loading optimized.

See my work:
OTC Software
Offline cylab

JGO Ninja


Medals: 55



« Reply #1 - Posted 2008-04-14 11:01:40 »

Doesn't work for me:

Empty window pops up and then I get an exception:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
java.lang.NullPointerException
   at apk.Sprite.getWidth(Sprite.java:91)
   at apk.ImageManager.getSprite(ImageManager.java:68)
   at apk.OptionMenu.draw(OptionMenu.java:83)
   at apk.OptionMenu.start(OptionMenu.java:65)
   at apk.Agent00PK.showOptionMenu(Agent00PK.java:100)
   at apk.Agent00PK.<init>(Agent00PK.java:54)
   at apk.Agent00PK.main(Agent00PK.java:62)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


So maybe your resource loading does not work?

Mathias - I Know What [you] Did Last Summer!
Offline gouessej
« Reply #2 - Posted 2008-04-14 11:07:15 »

Hi!

It works under Linux. It is very slow because of the driver, not your fault. I got a popup telling that there is an error while saving and I don't understand why the images are loaded each time I restart the game.

Would you like your game to be added to the Java game tome?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Riven
« League of Dukes »

« JGO Overlord »


Medals: 833
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #3 - Posted 2008-04-14 13:31:39 »

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
java.lang.NullPointerException
   at apk.Sprite.getWidth(Sprite.java:91)
   at apk.ImageManager.getSprite(ImageManager.java:68)
   at apk.OptionMenu.draw(OptionMenu.java:83)
   at apk.OptionMenu.start(OptionMenu.java:65)
   at apk.Agent00PK.showOptionMenu(Agent00PK.java:100)
   at apk.Agent00PK.<init>(Agent00PK.java:54)
   at apk.Agent00PK.main(Agent00PK.java:62)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


same here

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline fletchergames

Senior Devvie





« Reply #4 - Posted 2008-04-14 14:34:07 »

This isn't anywhere near done, but there's plenty to demo if people want to give it a look. And if you don't know what parkour is, be sure to check this link: http://www.youtube.com/results?search_query=parkour&search_type=
Wow.  It's like Aladdin for the Super Nintendo except in real life.  In other words, it's a real life platformer where you can catch the edge of a platform with your hands, but you don't whack your head on bricks.

That's just great.
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Reply #5 - Posted 2008-04-14 15:34:38 »

Not much more luck for me.

Windows XP SP2
Java 1.6.0_05

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
java.io.IOException: Cannot find: Images\Interface\Default0.png
   at apk.TextureLoader.loadImage(TextureLoader.java:292)
   at apk.TextureLoader.getTexture(TextureLoader.java:178)
   at apk.TextureLoader.getTexture(TextureLoader.java:144)
   at apk.Sprite.<init>(Sprite.java:68)
   at apk.ImageManager.initialize(ImageManager.java:27)
   at apk.Agent00PK.<init>(Agent00PK.java:46)
   at apk.Agent00PK.main(Agent00PK.java:62)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
java.io.IOException: Cannot find: Images\Interface\OptionMenu.jpg
   ...
Offline Abuse

JGO Knight


Medals: 14


falling into the abyss of reality


« Reply #6 - Posted 2008-04-14 15:52:04 »

Work PC has done the same here too:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
java.lang.NullPointerException
   at apk.Sprite.getWidth(Sprite.java:91)
   at apk.ImageManager.getSprite(ImageManager.java:68)
   at apk.OptionMenu.draw(OptionMenu.java:83)
   at apk.OptionMenu.start(OptionMenu.java:65)
   at apk.Agent00PK.showOptionMenu(Agent00PK.java:100)
   at apk.Agent00PK.<init>(Agent00PK.java:54)
   at apk.Agent00PK.main(Agent00PK.java:62)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline SimonH
« Reply #7 - Posted 2008-04-14 15:53:00 »

W2K J1.5
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
java.lang.NullPointerException
   at apk.Sprite.getWidth(Sprite.java:91)
   at apk.ImageManager.getSprite(ImageManager.java:68)
   at apk.OptionMenu.draw(OptionMenu.java:83)
   at apk.OptionMenu.start(OptionMenu.java:65)
   at apk.Agent00PK.showOptionMenu(Agent00PK.java:100)
   at apk.Agent00PK.<init>(Agent00PK.java:54)
   at apk.Agent00PK.main(Agent00PK.java:62)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
   at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
   at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


People make games and games make people
Offline irreversible_kev

Junior Devvie





« Reply #8 - Posted 2008-04-14 16:44:40 »

1  
2  
3  
4  
5  
java.lang.NullPointerException
   at apk.Sprite.getWidth(Sprite.java:91)
   at apk.ImageManager.getSprite(ImageManager.java:68)
   at apk.OptionMenu.draw(OptionMenu.java:83)
   ....ETC...


console shows

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
java.io.IOException: Cannot find: Images\Interface\Default0.png
   at apk.TextureLoader.loadImage(TextureLoader.java:292)
   at apk.TextureLoader.getTexture(TextureLoader.java:178)
   ....ETC...

java.io.IOException: Cannot find: Images\Interface\OptionMenu.jpg
   at apk.TextureLoader.loadImage(TextureLoader.java:292)
   at apk.TextureLoader.getTexture(TextureLoader.java:178)
   ....ETC...

   ....ETC...
   ....ETC...

#### Java Web Start Error:
#### null
Offline Riven
« League of Dukes »

« JGO Overlord »


Medals: 833
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #9 - Posted 2008-04-14 18:18:13 »

I think he got the point Grin

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #10 - Posted 2008-04-14 19:40:54 »

Wow.  It's like Aladdin for the Super Nintendo except in real life.  In other words, it's a real life platformer where you can catch the edge of a platform with your hands, but you don't whack your head on bricks.

That's just great.
Sure, that sounds great. Yeah, I loaded all the sprites into the map, so it's really odd that they get completely reloaded, but I'll change that sometime soon.

As for all these bugs, it's probably because I didn't do the ulta-safe way of loading resources from within my classpath. I'll try to change that and find a PC to test it on to see if I get better results. Should be good to go later today.

Thanks for all the responses!

See my work:
OTC Software
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #11 - Posted 2008-04-14 21:39:32 »

Okay, the game now works on Windows.  Grin

It was a simple fix... the problem was that I was using file.separator to choose resource paths, which is a / on most systems but a \ on Windows. I was originally using file browsing instead of class path stuff, so that's why I had the \ stuff.

But why can't Windows just get with the program and use / like everyone else?  Roll Eyes

See my work:
OTC Software
Offline cylab

JGO Ninja


Medals: 55



« Reply #12 - Posted 2008-04-14 21:41:33 »

Actually you can use / on windows when working with files in java. In fact I never use backslashes at all...

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

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #13 - Posted 2008-04-14 21:45:23 »

Actually you can use / on windows when working with files in java. In fact I never use backslashes at all...
Oh really? Someone had told me that but it didn't work when I tried it before. Maybe they added that since 1.4 (last time I tried it). Good to know, for sure.

See my work:
OTC Software
Offline irreversible_kev

Junior Devvie





« Reply #14 - Posted 2008-04-14 21:51:27 »

When trying to exit the game

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
java.io.FileNotFoundException: C:\Program Files\Mozilla Firefox 3 Beta 4\Players\Eli.pksave (The system cannot find the path specified)
   at java.io.FileOutputStream.open(Native Method)
   at java.io.FileOutputStream.<init>(Unknown Source)
   at java.io.FileOutputStream.<init>(Unknown Source)
   at apk.FileManager.save(FileManager.java:20)
   at apk.ModelGL.factorKeyPresses(ModelGL.java:254)
   at apk.ModelGL.runMainLoop(ModelGL.java:76)
   at apk.OptionMenu.makeChoice(OptionMenu.java:155)
   at apk.OptionMenu.factorKeyPresses(OptionMenu.java:125)
   at apk.OptionMenu.start(OptionMenu.java:66)
   at apk.Agent00PK.showOptionMenu(Agent00PK.java:100)
   at apk.Agent00PK.<init>(Agent00PK.java:54)
   at apk.Agent00PK.main(Agent00PK.java:62)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #15 - Posted 2008-04-15 01:48:30 »

When trying to exit the game

Yeah, you can't save the game because there is no Players folder. I'll fix that in a future update, for now just ignore it. You'll most likely get the same sort of message if you try to save a level.

See my work:
OTC Software
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #16 - Posted 2008-04-15 09:44:25 »

More updates and bug fixes implemented. Things should download and load significantly faster now, and I put in a simple AI to replace the failing Q-Learner AI (although I should get that working soon). If you still want to see the Q Learner AI, you can use the debug cheat. Its AI file isn't in the JAR, though, so it will start with an "empty" brain. The guards make it significantly more fun, adding an actual element of difficulty.  Lips Sealed

Quote
Simple AI added, more guards placed in levels, JNLP file size optimized, texture loading optimized. Debug turned off, with cheat (Coo Coo Raw Cha) to turn it back on.

See my work:
OTC Software
Offline g666

Junior Devvie





« Reply #17 - Posted 2008-04-15 09:46:07 »

looks interesting, the controls feel very  "slippy" though

desperately seeking sanity
Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #18 - Posted 2008-04-15 13:30:17 »

Lovely graphics!
The physics were really weird, to the point of making the game unplayable. Sliding around and floating through the air for fifteen seconds isn't much fun.

What's with the weird perspective? The starting area seems to have an escher-like fence around it, and your appear to see the street behind you from above, yet most other things are seen from the side.

Play Minecraft!
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #19 - Posted 2008-04-15 16:26:43 »

Lovely graphics!
The physics were really weird, to the point of making the game unplayable. Sliding around and floating through the air for fifteen seconds isn't much fun.

What's with the weird perspective? The starting area seems to have an escher-like fence around it, and your appear to see the street behind you from above, yet most other things are seen from the side.
Basically, I'm a terrible artist. I drew half of the level from 50% magnification and then remembered I was zoomed in  Grin.

And yeah, the physics totally need work. It is completely playable if you get used to it (I can beat both levels with no issues), but I absolutely agree I need to do things like increase gravity and give you more control over sliding and whatnot on the ground.

See my work:
OTC Software
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #20 - Posted 2008-04-16 02:37:02 »

When I die, then try to quit it gives me an error that it cannot save the player.  This exception is in the console.
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
java.io.FileNotFoundException: C:\Documents and Settings\Mark\Desktop\Players\Eli.pksave (The system cannot find the path specified)
   at java.io.FileOutputStream.open(Native Method)
   at java.io.FileOutputStream.<init>(Unknown Source)
   at java.io.FileOutputStream.<init>(Unknown Source)
   at apk.FileManager.save(FileManager.java:20)
   at apk.ModelGL.factorKeyPresses(ModelGL.java:260)
   at apk.ModelGL.runMainLoop(ModelGL.java:76)
   at apk.OptionMenu.makeChoice(OptionMenu.java:155)
   at apk.OptionMenu.factorKeyPresses(OptionMenu.java:125)
   at apk.OptionMenu.start(OptionMenu.java:66)
   at apk.Agent00PK.showOptionMenu(Agent00PK.java:100)
   at apk.Agent00PK.<init>(Agent00PK.java:54)
   at apk.Agent00PK.main(Agent00PK.java:62)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


Also, don't save to my desktop please.  I would rather not have these files on my desktop.

Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #21 - Posted 2008-04-16 18:34:03 »

That's just leftover from when I used file browsing and it saved the player save in the Players folder in the game directory. Now that it's webstart, I still need to create a folder in your preferences folder.

While I've got people here, does anyone mind posting exactly how you link to the path of the preferences folder using Windows and Linux? On Mac OS X it's /Users/user.name/Library/Preferences. The only thing holding me back from making save files there has been not knowing the paths for other OSes. So if I could get help that would be great.

See my work:
OTC Software
Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #22 - Posted 2008-04-16 20:01:58 »

Well that was... odd.

Seemed to load and start fine, but I was very, very confused by the level. Not sure if that was a road in the background or what on earth the fences and platforms were doing. I think you really need to get a consistent perspective for the game and make it obvious where the actual surfaces are that you can interact with and what's just random fluff you can ignore.

Spent 5 mins trying to make the first jump then gave up when I fell straight down the second hole. Sorry.  Huh

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

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #23 - Posted 2008-04-17 01:33:29 »

Well that was... odd.

Seemed to load and start fine, but I was very, very confused by the level. Not sure if that was a road in the background or what on earth the fences and platforms were doing. I think you really need to get a consistent perspective for the game and make it obvious where the actual surfaces are that you can interact with and what's just random fluff you can ignore.

Spent 5 mins trying to make the first jump then gave up when I fell straight down the second hole. Sorry.  Huh
Smiley
Well that's not too surprising to me. I've started a training level that's a lot more straightforward, which I will release in the near future. I also have spent some more time on the Physics, so it's easier to survive.

See my work:
OTC Software
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #24 - Posted 2008-04-17 03:07:10 »

That's just leftover from when I used file browsing and it saved the player save in the Players folder in the game directory. Now that it's webstart, I still need to create a folder in your preferences folder.

While I've got people here, does anyone mind posting exactly how you link to the path of the preferences folder using Windows and Linux? On Mac OS X it's /Users/user.name/Library/Preferences. The only thing holding me back from making save files there has been not knowing the paths for other OSes. So if I could get help that would be great.
System.getProperty("user.home");

Should work on all three systems.

To use preferences though, you should use the Preferences class.  Java automatically maps them.  On Windows it stores them in the registry.  On Linux and Mac it stores them in a file store.

Offline cylab

JGO Ninja


Medals: 55



« Reply #25 - Posted 2008-04-17 07:27:20 »

Check where FileSystemView.getFileSystemView().getDefaultDirectory() resolves to on MacOS X. I've used it in the past, since it resolves to "My Documents" on Windows and "/home/<user>" on Linux. I would also add "My Games/<game-name>" or something to the resulting path. That's what Crysis did.

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

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #26 - Posted 2008-04-17 09:02:52 »

Check where FileSystemView.getFileSystemView().getDefaultDirectory() resolves to on MacOS X. I've used it in the past, since it resolves to "My Documents" on Windows and "/home/<user>" on Linux. I would also add "My Games/<game-name>" or something to the resulting path. That's what Crysis did.
Okay, that sounds perfect. I know that the default directory on Mac OS X is also your documents folder, so that should work nicely.

I'll implement that soon, thanks guys.

See my work:
OTC Software
Offline TheAnalogKid

JGO Coder


Projects: 2



« Reply #27 - Posted 2008-04-18 17:00:21 »

Hi Demonpants,

Interesting game here but I'm not able to play it because of the controls. I try to jump while running but it doesn't work at all. The only time I jump is when I don't move. And I can do multiple jumps in a row like moving in thin air. At that time I get killed by that bad guy because he shoots me something.  Smiley Also, it seems to me that there's too many keys to master at the beginning. Controls are easily an issue, right?  Smiley (thinking about my game)

And speaking about gravity, I have the impression to have the mass of a sheet of paper. It really need adjustment.

Graphics are good, thought they are lacking perspective. Take the street for example.

Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #28 - Posted 2008-04-18 22:08:54 »

You're quite right, there is indeed a ginormous (if that's a word) difficulty curve to learn the controls. I don't think the problem is the number of buttons, it's more the number of combinations, completely without any tutorial. I'm hard at work making a tutorial for the game, so I'll make sure to get a new opinion after that.

See my work:
OTC Software
Offline gouessej
« Reply #29 - Posted 2008-05-11 17:34:35 »

Please give me an URL to a screenshot of your game as I'm currently writing the Java Game Tome, you know it.

Pages: [1] 2
  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.

toopeicgaming1999 (57 views)
2014-11-26 15:22:04

toopeicgaming1999 (50 views)
2014-11-26 15:20:36

toopeicgaming1999 (10 views)
2014-11-26 15:20:08

SHC (24 views)
2014-11-25 12:00:59

SHC (24 views)
2014-11-25 11:53:45

Norakomi (26 views)
2014-11-25 11:26:43

Gibbo3771 (23 views)
2014-11-24 19:59:16

trollwarrior1 (36 views)
2014-11-22 12:13:56

xFryIx (75 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!