Java-Gaming.org    
Featured games (78)
games approved by the League of Dukes
Games in Showcase (429)
Games in Android Showcase (89)
games submitted by our members
Games in WIP (468)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Millennuim Pac-Man  (Read 6344 times)
0 Members and 1 Guest are viewing this topic.
Offline giacobua

Senior Newbie





« Posted 2009-07-10 19: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

« In padded room »



TUER


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

Hi!

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

Offline giacobua

Senior Newbie





« Reply #2 - Posted 2009-07-11 11: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! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline systat

Senior Newbie


Projects: 2



« Reply #3 - Posted 2009-07-11 15: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

Senior Newbie





« Reply #4 - Posted 2009-07-11 20: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

Senior Newbie





« Reply #5 - Posted 2009-07-15 18:25:46 »

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

Junior Member





« Reply #6 - Posted 2009-07-16 00:41:01 »

Nice remake!

I would love it if it had keyboard controls.  Wink

Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 48
Projects: 4
Exp: 8 years



« Reply #7 - Posted 2009-07-16 21: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

Senior Newbie





« Reply #8 - Posted 2009-07-17 14: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

Senior Newbie





« Reply #9 - Posted 2009-07-17 15: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! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 48
Projects: 4
Exp: 8 years



« Reply #10 - Posted 2009-07-17 16: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

Senior Newbie





« Reply #11 - Posted 2009-07-18 11: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 Coder


Medals: 5



« Reply #12 - Posted 2009-07-19 08: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

Senior Newbie





« Reply #13 - Posted 2009-07-19 11:24:33 »

And where this option can be set?
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #14 - Posted 2009-07-19 14:09:09 »

control panel > advanced > shortcut creation

hope this helps.
Offline giacobua

Senior Newbie





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

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

Innocent Bystander





« Reply #16 - Posted 2009-07-22 00: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

Senior Newbie





« Reply #17 - Posted 2009-07-24 07: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

Senior Newbie




Noobier Than Thou


« Reply #18 - Posted 2009-07-24 08: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

Senior Newbie





« Reply #19 - Posted 2009-07-24 17: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

Senior Newbie




Noobier Than Thou


« Reply #20 - Posted 2009-07-24 19: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
« Reply #21 - Posted 2009-07-24 20: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

Offline giacobua

Senior Newbie





« Reply #22 - Posted 2009-07-25 09: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
« Reply #23 - Posted 2009-07-25 12:49:53 »

still no sound Shocked

Offline giacobua

Senior Newbie





« Reply #24 - Posted 2009-07-25 12: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

Senior Newbie





« Reply #25 - Posted 2009-07-25 13: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]
  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.

xsi3rr4x (81 views)
2014-04-15 18:08:23

BurntPizza (73 views)
2014-04-15 03:46:01

UprightPath (84 views)
2014-04-14 17:39:50

UprightPath (67 views)
2014-04-14 17:35:47

Porlus (84 views)
2014-04-14 15:48:38

tom_mai78101 (107 views)
2014-04-10 04:04:31

BurntPizza (167 views)
2014-04-08 23:06:04

tom_mai78101 (263 views)
2014-04-05 13:34:39

trollwarrior1 (214 views)
2014-04-04 12:06:45

CJLetsGame (223 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!