Java-Gaming.org
Java4K - to go         Javadoc:
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, peek at the official java tutorials or join us at irc #jgo.
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Millennuim Pac-Man  (Read 2999 times)
0 Members and 1 Guest are viewing this topic.
Offline giacobua

JGO n00b
*

Posts: 29



« on: 2009-07-10 13:17:18 »

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


Offline gouessej

JGO Kernel
*****

Posts: 3433
Medals: 26


TUER


« Reply #1 on: 2009-07-11 04:34:04 »

Hi!

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

Julien Gouesse
Offline giacobua

JGO n00b
*

Posts: 29



« Reply #2 on: 2009-07-11 05:06:00 »

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.
Games published by our own members! Go get 'em!
Offline systat

JGO n00b
*

Posts: 9



« Reply #3 on: 2009-07-11 09:15:58 »

I see splash screen and then this

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


1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
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



Offline giacobua

JGO n00b
*

Posts: 29



« Reply #4 on: 2009-07-11 14:36:34 »

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?

 Huh
Offline giacobua

JGO n00b
*

Posts: 29



« Reply #5 on: 2009-07-15 12:25:46 »

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

Full Member
**

Posts: 231



« Reply #6 on: 2009-07-15 18:41:01 »

Nice remake!

I would love it if it had keyboard controls.  Wink

Offline teletubo
« League of Dukes »

Sr. Member
*****

Posts: 430
Medals: 15



« Reply #7 on: 2009-07-16 15:43:02 »

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 !
Offline giacobua

JGO n00b
*

Posts: 29



« Reply #8 on: 2009-07-17 08:12:55 »

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
Offline giacobua

JGO n00b
*

Posts: 29



« Reply #9 on: 2009-07-17 09:20:32 »

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

plz vote and leave comment
Games published by our own members! Go get 'em!
Offline teletubo
« League of Dukes »

Sr. Member
*****

Posts: 430
Medals: 15



« Reply #10 on: 2009-07-17 10:50:21 »

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 .,
Offline giacobua

JGO n00b
*

Posts: 29



« Reply #11 on: 2009-07-18 05:38:51 »

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...
Offline h3ckboy

JGO Kernel
*****

Posts: 1628
Medals: 4



« Reply #12 on: 2009-07-19 02:48:00 »

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
Offline giacobua

JGO n00b
*

Posts: 29



« Reply #13 on: 2009-07-19 05:24:33 »

And where this option can be set?
Offline h3ckboy

JGO Kernel
*****

Posts: 1628
Medals: 4



« Reply #14 on: 2009-07-19 08:09:09 »

control panel > advanced > shortcut creation

hope this helps.
Offline giacobua

JGO n00b
*

Posts: 29



« Reply #15 on: 2009-07-19 13:14:04 »

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

JGO n00b
*

Posts: 1



« Reply #16 on: 2009-07-21 18:58:40 »


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?)
Offline giacobua

JGO n00b
*

Posts: 29



« Reply #17 on: 2009-07-24 01:00:44 »

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 Smiley
Offline shatterblast

JGO n00b
*

Posts: 44


Noobier Than Thou


« Reply #18 on: 2009-07-24 02:48:11 »

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?

Offline giacobua

JGO n00b
*

Posts: 29



« Reply #19 on: 2009-07-24 11:58:25 »

hi
I use jogl joal and jinput.

Quote
It seems like a faithful if slow translation of the originals in the early 1980s.
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.

Offline shatterblast

JGO n00b
*

Posts: 44


Noobier Than Thou


« Reply #20 on: 2009-07-24 13:06:38 »

hi
I use jogl joal and jinput.

My guess would be that your software uses a version of JME?  I ask because I'm starting to explore libraries myself.  At the moment, I use LWJGL, but I start to consider JOGL again.

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

The refresh rate seemed fast.  It maybe hit at least the 50 FPS mark.  I meant the game play's pace.  The AI also appeared about twice as aggressive in chasing the player-controlled character than in much older versions.  The classic style use to launch an accelerated game where the player's character could reach any cornering edge of the screen in less than 3 seconds, but the ghosts had a limit placed on the pursuit AI that grew in difficulty as levels became faster.  It probably just performed the AI routine for the route adjustment with increased frequency as the levels grew in number.   In this game, it seems reversed where the ghosts chase better early on, but the slow pace allows for an easier opportunity to take one's time.  Modern public arcade versions that also offer the Galaga shooter tend to mix both quick pace along with relatively high AI aggression.

Offline Cero

JGO Strike Force
***

Posts: 876
Medals: 14



« Reply #21 on: 2009-07-24 14:36:19 »

WinXp Sp2, AMD ATI 32 bit machine
1024 MB DDR RAM
standard PCI 5.1 Soundcard

I dont get sound, other than that everything works fine

Alchemic-Tempest.com            Google+            Twitter
Offline giacobua

JGO n00b
*

Posts: 29



« Reply #22 on: 2009-07-25 03:06:56 »

If you have audio problems try to install openal on your system.

For ubuntu users: install packages libopenal1 and libalut0
For win users: run the installer found at http://connect.creativelabs.com/openal/Downloads/oalinst.zip

The openal home page: http://connect.creativelabs.com/openal/default.aspx


Offline Cero

JGO Strike Force
***

Posts: 876
Medals: 14



« Reply #23 on: 2009-07-25 06:49:53 »

still no sound Shocked

Alchemic-Tempest.com            Google+            Twitter
Offline giacobua

JGO n00b
*

Posts: 29



« Reply #24 on: 2009-07-25 06:55:47 »

The ghosts ai in this game is the same for each lvl. What is different is the speed. Every lvl has a table with start and max values of speeds for each ghost, and duration of blue, scatter and attack mode. The values in the table are not proportional with the lvl number but as i measured.
Of course i adjusted all to reach the max funny playability.  Grin
Offline giacobua

JGO n00b
*

Posts: 29



« Reply #25 on: 2009-07-25 07:31:12 »

Hi Cero
I just tried on a winxp with 8.1 audio system and it works fine.
I saw that the oalinst file didnt install the alut dll, that seems not needed...
But you can try to download it from http://connect.creativelabs.com/openal/Downloads/ALUT/freealut-1.1.0-bin.zip
In the zip there is the alut.dll and you can try to copy it in your dll dir.
In the zip there are 2 examples. To make them work i copied it their dir.
Pages: [1]
  Print  
 
 
Jump to:  


Add your game by posting it in the showcase section.

The first screenshot will be displayed as a thumbnail.

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.228 seconds with 21 queries.