Millennuim Pac-Man

Hi all!

Here is my version of pac-man!!!

space = start and arrows to move
a joystick button = start and x,y axis to move

f11=toggle fullscreen, default on

f = toggle fps, default off

d = toggle debug mode, default off: shows the frame duration in yellow, the display time in orange and the update time in red when fps are on

v = toggle vsync, default on (i strongly recommend to enable vsync in the video card option, and don’t touch the v key, for very smooth movements. And if you are really a pac-maniac use a crt monitor!!!)

esc = quit

enjoy and send feedback

http://www.cortegaia.com/pacman/pacman.jnlp

http://www.cortegaia.com/pacman/Screenshot.png

Hi!

It is a nice game. If you have already done it, put it into the Java Game Tome :wink:

I made it just to make the experience of developing a complete game in java, with jogl joal and jinput.
And i put it here because i want to test the online score system. The server is running on my pc and is visible through dyndns.

I’d like to share it with the whole world but i don’t know if there are copyrights on pac-man.

I see splash screen and then this

Failed to validate certificate.
The application will not be executed.

sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: java.io.IOException: Response is unreliable: its validity interval is out-of-date
	at sun.security.validator.PKIXValidator.doValidate(Unknown Source)
	at sun.security.validator.PKIXValidator.doValidate(Unknown Source)
	at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
	at sun.security.validator.Validator.validate(Unknown Source)
	at sun.security.validator.Validator.validate(Unknown Source)
	at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
	at com.sun.javaws.security.AppPolicy.grantUnrestrictedAccess(Unknown Source)
	at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
	at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)
	at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
	at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
	at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
	at com.sun.javaws.Launcher.launch(Unknown Source)
	at com.sun.javaws.Main.launchApp(Unknown Source)
	at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
	at com.sun.javaws.Main$1.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.security.cert.CertPathValidatorException: java.io.IOException: Response is unreliable: its validity interval is out-of-date
	at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(Unknown Source)
	at sun.security.provider.certpath.PKIXCertPathValidator.doValidate(Unknown Source)
	at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(Unknown Source)
	at java.security.cert.CertPathValidator.validate(Unknown Source)
	... 17 more
Caused by: java.io.IOException: Response is unreliable: its validity interval is out-of-date
	at sun.security.provider.certpath.OCSPResponse$SingleResponse.<init>(Unknown Source)
	at sun.security.provider.certpath.OCSPResponse$SingleResponse.<init>(Unknown Source)
	at sun.security.provider.certpath.OCSPResponse.<init>(Unknown Source)
	at sun.security.provider.certpath.OCSPChecker.check(Unknown Source)
	... 21 more

Ummm…
The jarsigner output is: The signer certificate will expire within six months.
And i signed it today…

Is there anybody that knows what that exception means?

???

I disabled the v,f end d keys.
Only f11 and esc are now enabled.

Nice remake!

I would love it if it had keyboard controls. :wink:

very neat … but I would definetly enable keyboard input . Mouse control is very awkward and it happens very often that it takes a turn I didn’t mean to …
other than that, very nice. Congrats !

I improved joystick controls.
Now all the devices are scanned and you can start with a device then continue with the other, just press a button to use joystick…
Also added rz and z axis for directions…
The keyboard input device is still there, just press space to start and arrows to move
the mouse imput device is no longer enabled

And i put it on java game tome ;D
http://www.javagametome.com/game.html?id=180

plz vote and leave comment

Sorry, I didn’t see i was possible to use keyboard .

but another comment, I don’t think you should install an icon in the desktop and the start menu . Maybe you should ask the user if he wants it . I personally don’t like to have a million icons in my desktop/start menu .,

In the jnlp file you can specify if the icon should be added to the start menu and/or to the desktop.
I don’t know if it’s possible how to make the jnlp let the user choose…
Anyone can tell me how to do that?
It seems that I need further study about jnlp…

it is an option in the users jdk. It doesnt have to do with the jnlp. it is in the settings section. It just is a option ot ask/never allow/always allow

And where this option can be set?

control panel > advanced > shortcut creation

hope this helps.

For ubuntu users: System -> Preferences -> Sun Java 6 Plugin Control Panel

This game is great!

How long did it take to write it?

Is the source code available? I’m just getting into Java gaming (a newless clubie?)

1 month + some time for debugging and deploying.

The source is not public. There is an online score system and the client must not to be modified.

If you are interested in some part of the game, this is the place where you can ask :slight_smile:

The game works well in my Linux environment. It seems like a faithful if slow translation of the originals in the early 1980s. I know there is no desire for exposing code, but may I ask what library you chose? JOGL by chance?

hi
I use jogl joal and jinput.

[quote] It seems like a faithful if slow translation of the originals in the early 1980s.
[/quote]
Some days was spent to study ghost psychology and game speeds from the original, i used a timer while playing to measure times in many lvl :persecutioncomplex:
Do you mean slow refresh rate? Tell me your pc configuration plz…

I have best results on my old pc with a Athlon 1300Mhz processor, a Ati x800 graphic card and a CRT monitor with 100hz of refresh rate.
With this configuration i have 100 frames per second and i use almost all the cpu.