JavaGaming.org

July 30, 2010, 09:49:33 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
Advanced search  
Pages: [1]   Go Down
Print
Author Topic: Millennuim Pac-Man  (Read 1656 times)
0 Members and 1 Guest are viewing this topic.
giacobua
JGO n00b
*
Offline Offline

Gender: Male
Posts: 29


View Profile
« on: July 10, 2009, 10:17:18 am »

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


« Last Edit: July 11, 2009, 01:24:43 am by giacobua » Logged
gouessej
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 2354


TUER


View Profile WWW
« Reply #1 on: July 11, 2009, 01:34:04 am »

Hi!

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

giacobua
JGO n00b
*
Offline Offline

Gender: Male
Posts: 29


View Profile
« Reply #2 on: July 11, 2009, 02:06:00 am »

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.
Logged
systat
JGO n00b
*
Offline Offline

Posts: 9


View Profile
« Reply #3 on: July 11, 2009, 06:15:58 am »

I see splash screen and then this

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


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


Logged
giacobua
JGO n00b
*
Offline Offline

Gender: Male
Posts: 29


View Profile
« Reply #4 on: July 11, 2009, 11:36:34 am »

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
Logged
giacobua
JGO n00b
*
Offline Offline

Gender: Male
Posts: 29


View Profile
« Reply #5 on: July 15, 2009, 09:25:46 am »

I disabled the v,f end d keys.
Only f11 and esc are now enabled.
Logged
elias4444
Full Member
***
Online Online

Posts: 211



View Profile
« Reply #6 on: July 15, 2009, 03:41:01 pm »

Nice remake!

I would love it if it had keyboard controls.  Wink
Logged

teletubo
Moderator
Full Member
*****
Offline Offline

Gender: Male
Posts: 226



View Profile
« Reply #7 on: July 16, 2009, 12:43:02 pm »

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

giacobua
JGO n00b
*
Offline Offline

Gender: Male
Posts: 29


View Profile
« Reply #8 on: July 17, 2009, 05:12:55 am »

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
Logged
giacobua
JGO n00b
*
Offline Offline

Gender: Male
Posts: 29


View Profile
« Reply #9 on: July 17, 2009, 06:20:32 am »

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

plz vote and leave comment
Logged
teletubo
Moderator
Full Member
*****
Offline Offline

Gender: Male
Posts: 226



View Profile
« Reply #10 on: July 17, 2009, 07:50:21 am »

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

giacobua
JGO n00b
*
Offline Offline

Gender: Male
Posts: 29


View Profile
« Reply #11 on: July 18, 2009, 02:38:51 am »

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...
Logged
h3ckboy
JGO Wizard
********
Offline Offline

Posts: 1421


View Profile WWW
« Reply #12 on: July 18, 2009, 11:48:00 pm »

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
Logged
giacobua
JGO n00b
*
Offline Offline

Gender: Male
Posts: 29


View Profile
« Reply #13 on: July 19, 2009, 02:24:33 am »

And where this option can be set?
Logged
h3ckboy
JGO Wizard
********
Offline Offline

Posts: 1421


View Profile WWW
« Reply #14 on: July 19, 2009, 05:09:09 am »

control panel > advanced > shortcut creation

hope this helps.
Logged
giacobua
JGO n00b
*
Offline Offline

Gender: Male
Posts: 29


View Profile
« Reply #15 on: July 19, 2009, 10:14:04 am »

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

Posts: 1


View Profile
« Reply #16 on: July 21, 2009, 03:58:40 pm »


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?)
Logged
giacobua
JGO n00b
*
Offline Offline

Gender: Male
Posts: 29


View Profile
« Reply #17 on: July 23, 2009, 10:00:44 pm »

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
Logged
shatterblast
JGO n00b
*
Offline Offline

Posts: 44


Noobier Than Thou


View Profile WWW
« Reply #18 on: July 23, 2009, 11:48:11 pm »

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?
« Last Edit: July 23, 2009, 11:50:01 pm by shatterblast » Logged

giacobua
JGO n00b
*
Offline Offline

Gender: Male
Posts: 29


View Profile
« Reply #19 on: July 24, 2009, 08:58:25 am »

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.

Logged
shatterblast
JGO n00b
*
Offline Offline

Posts: 44


Noobier Than Thou


View Profile WWW
« Reply #20 on: July 24, 2009, 10:06:38 am »

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.
« Last Edit: July 24, 2009, 10:22:14 am by shatterblast » Logged

Cero
Sr. Member
****
Offline Offline

Gender: Male
Posts: 281


In great attempts it is glorious even to fail.


View Profile WWW
« Reply #21 on: July 24, 2009, 11:36:19 am »

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
Logged

giacobua
JGO n00b
*
Offline Offline

Gender: Male
Posts: 29


View Profile
« Reply #22 on: July 25, 2009, 12:06:56 am »

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


Logged
Cero
Sr. Member
****
Offline Offline

Gender: Male
Posts: 281


In great attempts it is glorious even to fail.


View Profile WWW
« Reply #23 on: July 25, 2009, 03:49:53 am »

still no sound Shocked
Logged

giacobua
JGO n00b
*
Offline Offline

Gender: Male
Posts: 29


View Profile
« Reply #24 on: July 25, 2009, 03:55:47 am »

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
Logged
giacobua
JGO n00b
*
Offline Offline

Gender: Male
Posts: 29


View Profile
« Reply #25 on: July 25, 2009, 04:31:12 am »

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.
Logged
Pages: [1]   Go Up
Print
 
Jump to: