Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Pacman Unofficial Release v0.1a  (Read 1712 times)
0 Members and 2 Guests are viewing this topic.
Offline javatypo

Full Member
**

Posts: 143



« on: 2004-01-04 17:13:19 »

hey,

me and my friend made a pacman game its not done yet but we put an unofficial release 0.1a on the site tomorrow we will get the completed version up..

http://www.netconplus.com/antstuff/pacman.php
Offline swpalmer

JGO Kernel
*****

Posts: 3438
Medals: 4


Where's the Kaboom?


« Reply #1 on: 2004-01-04 17:20:29 »

Mac OS X 10.3.2

java -jar Pacman_v0.1a.jar
Exception in thread "main" java.lang.IllegalArgumentException: Invalid DisplayMode: Cannot change DisplayMode when not in Full Screen
       at apple.awt.CGraphicsDevice.setDisplayMode(CGraphicsDevice.java:170)
       at FullScreenFrame.<init>(FullScreenFrame.java:96)
       at GameManager.main(GameManager.java:20)


The funny thing is that it goes into fullscreen mode and changes the display mode, then goes back to the desktop and prints this message... weird.

Offline javatypo

Full Member
**

Posts: 143



« Reply #2 on: 2004-01-05 14:33:27 »

ok ill look at my code.. is there arent any weird errors that are known when running on a mac are there?

thanks for trying it out.. ill try and get it fixed soon Cheesy
Games published by our own members! Go get 'em!
Offline Herkules

JGO Kernel
*****

Posts: 1522
Medals: 1


Friendly fire isn't friendly!


« Reply #3 on: 2004-01-05 15:46:47 »

Works for me - although I remember that pacman never was such a FAST game .... very hard to control....

And ... what I personally dislike ... it went fullscreen and I couldn't stop it (ESC or so)

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline javatypo

Full Member
**

Posts: 143



« Reply #4 on: 2004-01-05 17:10:50 »

ok thanks for the feedback..

swpalmer you are running the latest version of java right?

the speed wasnt really my idea.. we had it running slower but we got to good at it, and anthony suggested that we speed it up i will maybe add a difficulty setting or something so that u can select the speed.

the their is currently no exit button from the gameplay screen, but if u die or complete the level the u can exit, i think i forgot to add the buttons to the gameplay thing in the first place lol..

i will keep messing with the fullscreen code. thanks Cheesy
Offline swpalmer

JGO Kernel
*****

Posts: 3438
Medals: 4


Where's the Kaboom?


« Reply #5 on: 2004-01-06 06:54:31 »

The latest available to OS X.  1.4.2 DP 2

Offline gregorypierce

JGO Strike Force
***

Posts: 905


I come upon thee like the blue screen of death....


« Reply #6 on: 2004-01-06 08:42:21 »

Post your fullscreen code as it may very well be an OSX fullscreen bug and I will post it to the Apple java-dev lists. I believe you're the 3rd person I've talked to in 48 hours who is having issues with fullscreen on OSX Smiley

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Offline javatypo

Full Member
**

Posts: 143



« Reply #7 on: 2004-01-07 03:48:05 »

sweet thanks !

here is the code where i goto fullscreen mode:

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  
31  
32  
33  
34  
device = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
            GraphicsConfiguration gc = device.getDefaultConfiguration();
           
            f = new FullScreenFrame(gc);
            f.setIgnoreRepaint(true);
            f.setBackground(Color.black);
            f.setUndecorated(true);
            f.setResizable(false);
            f.setVisible(true);
            device.setFullScreenWindow(f);
            f.setVisible(true);
           
            if (device.isDisplayChangeSupported()) {
                  oldDisplayMode = device.getDisplayMode();
                 
                  device.setDisplayMode(new DisplayMode(1024,768,32,DisplayMode.REFRESH_RATE_UNKNOWN));
            }
            else if (!device.isDisplayChangeSupported()) {
                  device.setFullScreenWindow(null);
                  f.setVisible(true);
                  JOptionPane.showMessageDialog((Component) null, "Sorry, but your hardware does not currently support display mode changes required for this game","Render Engine",JOptionPane.ERROR_MESSAGE);
                  System.exit(1);
            }
           
            f.createBufferStrategy(2);
            strategy = f.getBufferStrategy();
           
            if (!strategy.getCapabilities().isPageFlipping()) {
                  device.setFullScreenWindow(null);
                  device.setDisplayMode(oldDisplayMode);
                 
                  JOptionPane.showMessageDialog((Component) null, "Sorry, but your hardware does not support the required graphics accerleration required by this game","Render Engine",JOptionPane.ERROR_MESSAGE);
                  System.exit(1);
            }
Offline wiederke

Jr. Member
**

Posts: 76


Thx to James Gosling.


« Reply #8 on: 2004-01-12 03:53:08 »

Hi,

runs fine on my machine. Good work!!!
Offline erikd

JGO Kernel
*****

Posts: 2561
Medals: 7


Maximumisness


« Reply #9 on: 2004-01-14 04:25:42 »

Nice pacman variation :-)

A few suggestions:
* Make collission detection a bit less strict; you die when you are only close to a ghost.
* Make the gosts look where they're going, like in the original.

But all in all, great work!

Pages: [1]
  Print  
 
 
Jump to:  


Add your game by posting it in the showcase section.

The first screenshot will be displayed as a thumbnail.

obsidian_golem 2012-05-23 10:14:50

Danny02 2012-05-21 17:10:34

Danny02 2012-05-21 17:07:10

Danny02 2012-05-21 16:56:12

davedes 2012-05-21 13:59:23

obsidian_golem 2012-05-20 20:28:41

darkjava55 2012-05-12 16:14:40

Ultroman 2012-05-12 09:36:05

Ultroman 2012-05-11 22:49:53

Ultroman 2012-05-11 22:20:01
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.099 seconds with 19 queries.