Pip The Pea

It’s been a while, but I’ve finally gotten around to finishing another title for my site: Pip The Pea!

Quite a simple game. Your in control of a small pea (called Pip) who you can guide using the mouse. You need to collect Diamonds, but as you do Ghosts appear.

http://www.studiofortress.com/pip_the_pea/thumb_1.jpg

http://www.studiofortress.com/pip_the_pea/thumb_2.jpg

http://www.studiofortress.com/pip_the_pea/thumb_3.jpg

Hit a Ghost and you die. Left click to use a Stomp that scares away all nearby Ghosts, but you only have a certain amount. Collecting Diamonds will get you new Stomps.

Link!

Enjoy!

Sorry, didnt work for me (JDK 1.6). Is this an applet or webstart?

Validating http://www.studiofortress.com/common/lib/SF.jar , version null…
Validating http://www.studiofortress.com/common/lib/SFHighscore.jar , version null…
Validating http://www.studiofortress.com/pip_the_pea/Pip_The_Pea.jar , version null…
Validating http://download.java.net/media/jogl/builds/archive/jsr-231-1.x-webstart-current/jogl.jar , version null…
Reading certificates from 10143 http://download.java.net/media/jogl/builds/archive/jsr-231-1.x-webstart-current/jogl-natives-windows-i586.jar | C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\cache\6.0\1\2a445181-7eeb3a1e.idx
Reading certificates from 11185 http://download.java.net/media/gluegen/webstart/gluegen-rt.jar | C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\cache\6.0\9\3b95f209-4ef35735.idx
java.lang.NullPointerException
at sun.plugin2.applet.Plugin2Manager.findAppletJDKLevel(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.NullPointerException

It’s an applet.

After googling that error is sometimes given as an alternative to a classNotFoundException. I don’t know what’s causing it because lots of people have played it. My only guess can be it failed to correctly download in some way (i.e. timed out half way through). In which case trying again should solve the issue.

You could also try upgrading your JVM (I’ve had plenty of JVM bugs reported to me).

However could you also please post the full Java version that is stated in the Java console (i.e. for me it’s: Java Plug-in 1.6.0_17, Using JRE version 1.6.0_17-b04 Java HotSpot™ Client VM). Although a runtime comes with the JDK, it isn’t always used by default.

works well until I got the following ( when clicking the blue diamond ) :

[quote]Java Plug-in 1.6.0_18
Utilisation de la version JRE 1.6.0_18-ea-b04 Java HotSpot™ Client VM
Répertoire d’accueil de l’utilisateur = C:\Users\DzzD



Exception in thread “Thread-16” java.lang.IllegalArgumentException: Width cannot be less or equal to 0, width: 0
at com.studiofortress.sf.structure.Actor.setWidth(Actor.java:337)
at com.studiofortress.sf.structure.Actor.setSize(Actor.java:325)
at com.studiofortress.pip.game.Stomp.act(Stomp.java:48)
at com.studiofortress.sf.structure.World$2.iterate(World.java:85)
at com.studiofortress.sf.structure.World$2.iterate(World.java:81)
at com.studiofortress.sf.util.collections.CachingHashMap.iterateKeys(CachingHashMap.java:161)
at com.studiofortress.sf.util.collections.CachingHashSet.iterate(CachingHashSet.java:42)
at com.studiofortress.sf.structure.SortedActors.iterate(SortedActors.java:43)
at com.studiofortress.sf.structure.World.actActors(World.java:752)
at com.studiofortress.sf.structure.World.act(World.java:742)
at com.studiofortress.pip.game.Board.act(Board.java:178)
at com.studiofortress.sf.structure.World$2.iterate(World.java:85)
at com.studiofortress.sf.structure.World$2.iterate(World.java:81)
at com.studiofortress.sf.util.collections.CachingHashMap.iterateKeys(CachingHashMap.java:161)
at com.studiofortress.sf.util.collections.CachingHashSet.iterate(CachingHashSet.java:42)
at com.studiofortress.sf.structure.SortedActors.iterate(SortedActors.java:43)
at com.studiofortress.sf.structure.World.actActors(World.java:752)
at com.studiofortress.sf.structure.World.act(World.java:742)
at com.studiofortress.sf.structure.MainLoop.runFrame(MainLoop.java:205)
at com.studiofortress.sf.structure.MainLoop.run(MainLoop.java:174)
at com.studiofortress.sf.util.structure.NonBlockingMainLoop.access$001(NonBlockingMainLoop.java:14)
at com.studiofortress.sf.util.structure.NonBlockingMainLoop$1.run(NonBlockingMainLoop.java:31)
[/quote]
also dont know if it is normal but I got two black wide border (at the right and top of the applet) where ghost cannot come and where I can safely rest as long as I wanted.

[quote=“DzzD,post:4,topic:34909”]
Solved. When you click it actually makes him stomp that scares away ghosts, but the sprite used is scaled. That starting scale must have been set to less then 0.5. Now I have it max between the size and 1.

Nope, that’s not normal. Doesn’t appear for me in FireFox, what browser are you using?

Java Plug-in 1.6.0_14
Using JRE version 1.6.0_14-b08 Java HotSpot™ Client VM
User home directory = C:\Documents and Settings\Administrator

Tried 3 times, same error each time. The reason I asked is WebStart hasn’t worked on my laptop since I upgraded to 1.6 (some caching issue), although never had a problem with applets before. So this may be related (if the applet is reading from the cache, which it appears to be doing!!)… Other than that, no idea… Good luck!

IE8 inded !

seems that the game canvas is offseted left/bottom (about 20/30 pixels)

try going to Control Panel -> Java -> Advanced Tab -> expand Java Plug-in -> and ‘Enable the next-generation Java Plug-in’ should be checked, try unchecking it. If it’s not checked, then try checking it and running the game again. But I’m pretty sure it should be checked.

That might get my applet running, but I doubt it will fix webstart.

Can you post a screenshot? It doesn’t occur in IE8 for me either (with and without compatability view).

what a strange solution :slight_smile: but no that is not the issue, the checkbox was already checked, I try uncheked & checked => same issue, anyway it wouldn’t have be a good solution

also note that all is ok until the main gamescreen appear (after clicking “Play”)

see screenshot below

ah sorry, that solution was actually aimed at SteveyO. Sometime around Java 6 update 14 (maybe an earlier version, maybe later) they changed the applet launcher so that it allows the use of JNLP files. Checking it off will cause the applet tag to ignore the JNLP file and in this case it will be launched using the JNLPAppletLauncher.

Ok, that worked, the 2nd time… (First time, it crashed firefox, didn’t manage to catch the exception on the console, went off quick)… Nice smooth graphics btw… ran ok until when I died, then couldnt close the browser tab in Firefox… (Had to kill firefox via task manager after some pissing about). However this could be my machine, normal applets work with no bother, but not too sure on JOGL…

Worked beautifully: Windows 7: IE 8 Also worked in Firefox 3.6

I’ve just altered the game, although I haven’t made it too easy. Main changes are that scores are now a multiple of 100 (to make them look more impressive) and using a Stomp now kills Ghosts! So you can last for longer.

That was fun! Great gfx. I noticed the menu buttons would sometimes not register a click.

Very nice , ran totally fine here (Win XP, Firefox, Java 5).

And I noticed the same issue with menu clicks , sometimes I had to insist to do something .

Oh, and please, a Pause button ! sometimes I see my Messenger windows blinking and it just make me nervous not being able to open it .

It might have to be a pause key, I don’t like the idea of adding more stuff on top of the screen.

I’ll also look into the menu buttons.

Menu buttons are fixed, it was due to timing differences between the two control systems I had (they detected mouse clicks just after each other and so were out of sync).

Very nice, loaded and ran well. I liked the black background on the loading animation… much better than the default white! :smiley:

FPS must have been high since it ran very smoothly. The graphics were great, and the way it loaded and was presented was very good. The only thing is that it didn’t kill the java process when I closed the tab in firefox. I’m using java 6 plugin 2.

Great work!
Keith

[quote=“CommanderKeith,post:19,topic:34909”]
I’m not to blame for that. FireFox continues to run Java processes for a while after you’ve closed the tab. If you re-open the tab before the process has been killed then it will re-use it and just call the applets start() method. Static information from the last time it ran is still stored, such as the name you used when submitting highscores (which is usually stored statically in my games).

But don’t worry, stop() is called on the Applet when the tab is closed so it won’t be wasting CPU.

But I’m glad you like it! I only did the game quickly to get some new content on the site, but it’s become one of the most popular on the site with lots of people asking me to build in more (to make it into a proper full game). Thanks for the feedback.