JavaGaming.org

March 18, 2010, 11:57:21 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
Advanced search  
Pages: [1] 2   Go Down
Print
Author Topic: Agent: 00PK  (Read 13978 times)
0 Members and 1 Guest are viewing this topic.
Demonpants
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2244


Looking For Work


View Profile WWW
« on: April 14, 2008, 03:51:41 am »

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.
« Last Edit: May 12, 2009, 11:42:14 am by Demonpants » Logged

See my work:
OTC Software


Current Project(s):
Agent: 00PK
Voodoo Vendetta
cylab
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 1545


View Profile WWW
« Reply #1 on: April 14, 2008, 04:01:40 am »

Doesn't work for me:

Empty window pops up and then I get an exception:

Code:
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?
Logged

gouessej
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 2209


TUER


View Profile WWW
« Reply #2 on: April 14, 2008, 04:07:15 am »

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?
« Last Edit: April 14, 2008, 04:11:12 am by gouessej » Logged

Riven
Guest
« Reply #3 on: April 14, 2008, 06:31:39 am »

Code:
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
Logged
fletchergames
JGO Ninja
*****
Offline Offline

Gender: Male
Posts: 503


View Profile WWW
« Reply #4 on: April 14, 2008, 07:34:07 am »

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.
Logged
Bonbon-Chan
Sr. Member
****
Offline Offline

Posts: 261



View Profile
« Reply #5 on: April 14, 2008, 08:34:38 am »

Not much more luck for me.

Windows XP SP2
Java 1.6.0_05

Code:
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
...
« Last Edit: April 14, 2008, 08:44:32 am by Bonbon-Chan » Logged
Abuse
JGO Kernel
*********
Offline Offline

Posts: 1755

falling into the abyss of reality


View Profile
« Reply #6 on: April 14, 2008, 08:52:04 am »

Work PC has done the same here too:

Code:
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)
Logged
SimonH
JGO Ninja
*****
Offline Offline

Gender: Male
Posts: 643



View Profile WWW
« Reply #7 on: April 14, 2008, 08:53:00 am »

W2K J1.5
Code:
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)
Logged

Sparrow - a work in progress.
Try Bloodridge
irreversible_kev
Full Member
***
Offline Offline

Posts: 167



View Profile
« Reply #8 on: April 14, 2008, 09:44:40 am »

Code:
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

Code:
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
Logged
Riven
Guest
« Reply #9 on: April 14, 2008, 11:18:13 am »

I think he got the point Grin
Logged
Demonpants
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2244


Looking For Work


View Profile WWW
« Reply #10 on: April 14, 2008, 12:40:54 pm »

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!
Logged

See my work:
OTC Software


Current Project(s):
Agent: 00PK
Voodoo Vendetta
Demonpants
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2244


Looking For Work


View Profile WWW
« Reply #11 on: April 14, 2008, 02:39:32 pm »

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
Logged

See my work:
OTC Software


Current Project(s):
Agent: 00PK
Voodoo Vendetta
cylab
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 1545


View Profile WWW
« Reply #12 on: April 14, 2008, 02:41:33 pm »

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

Demonpants
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2244


Looking For Work


View Profile WWW
« Reply #13 on: April 14, 2008, 02:45:23 pm »

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.
Logged

See my work:
OTC Software


Current Project(s):
Agent: 00PK
Voodoo Vendetta
irreversible_kev
Full Member
***
Offline Offline

Posts: 167



View Profile
« Reply #14 on: April 14, 2008, 02:51:27 pm »

When trying to exit the game

Code:
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)
Logged
Demonpants
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2244


Looking For Work


View Profile WWW
« Reply #15 on: April 14, 2008, 06:48:30 pm »

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.
Logged

See my work:
OTC Software


Current Project(s):
Agent: 00PK
Voodoo Vendetta
Demonpants
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2244


Looking For Work


View Profile WWW
« Reply #16 on: April 15, 2008, 02:44:25 am »

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.
Logged

See my work:
OTC Software


Current Project(s):
Agent: 00PK
Voodoo Vendetta
g666
Sr. Member
****
Offline Offline

Posts: 388


View Profile
« Reply #17 on: April 15, 2008, 02:46:07 am »

looks interesting, the controls feel very  "slippy" though
Logged

desperately seeking sanity
Markus_Persson
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 1995


Mojang Specifications


View Profile WWW
« Reply #18 on: April 15, 2008, 06:30:17 am »

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.
Logged

Play Minecraft!
Demonpants
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2244


Looking For Work


View Profile WWW
« Reply #19 on: April 15, 2008, 09:26:43 am »

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.
Logged

See my work:
OTC Software


Current Project(s):
Agent: 00PK
Voodoo Vendetta
CaptainJester
JGO Neuromancer
*******
Offline Offline

Gender: Male
Posts: 1014


Make it work; make it better.


View Profile
« Reply #20 on: April 15, 2008, 07:37:02 pm »

When I die, then try to quit it gives me an error that it cannot save the player.  This exception is in the console.
Code:
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.
Logged

Demonpants
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2244


Looking For Work


View Profile WWW
« Reply #21 on: April 16, 2008, 11:34:03 am »

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.
Logged

See my work:
OTC Software


Current Project(s):
Agent: 00PK
Voodoo Vendetta
Orangy Tang
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 2451


Monkey for a head


View Profile WWW
« Reply #22 on: April 16, 2008, 01:01:58 pm »

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
Logged

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Demonpants
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2244


Looking For Work


View Profile WWW
« Reply #23 on: April 16, 2008, 06:33:29 pm »

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.
Logged

See my work:
OTC Software


Current Project(s):
Agent: 00PK
Voodoo Vendetta
CaptainJester
JGO Neuromancer
*******
Offline Offline

Gender: Male
Posts: 1014


Make it work; make it better.


View Profile
« Reply #24 on: April 16, 2008, 08:07:10 pm »

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.
Logged

cylab
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 1545


View Profile WWW
« Reply #25 on: April 17, 2008, 12:27:20 am »

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.
Logged

Demonpants
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2244


Looking For Work


View Profile WWW
« Reply #26 on: April 17, 2008, 02:02:52 am »

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.
Logged

See my work:
OTC Software


Current Project(s):
Agent: 00PK
Voodoo Vendetta
TheAnalogKid
JGO Neuromancer
*******
Offline Offline

Gender: Male
Posts: 1212



View Profile WWW
« Reply #27 on: April 18, 2008, 10:00:21 am »

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.
Logged

Demonpants
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2244


Looking For Work


View Profile WWW
« Reply #28 on: April 18, 2008, 03:08:54 pm »

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.
Logged

See my work:
OTC Software


Current Project(s):
Agent: 00PK
Voodoo Vendetta
gouessej
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 2209


TUER


View Profile WWW
« Reply #29 on: May 11, 2008, 10:34:35 am »

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

Pages: [1] 2   Go Up
Print
 
Jump to: