We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
PGL2D (Read 1741 times)
PGL2D
Oct 16th, 2007, 9:52am
 
PGL2D (2D Processing Game Library) is a library for use with processing. It is designed for the simple development of 2D games. It is designed for making simple 2D games, in order to teach the principles of game dev. The library is available at   http://pgl2d.bravehost.com/. There is also tutorials, an API and the source code available on the site.
Re: PGL2D
Reply #1 - Oct 16th, 2007, 4:41pm
 
I tried your "game" example but I get the following error:
java.lang.NoSuchMethodError: java.lang.String.contains(Ljava/lang/CharSequence;)Z
at pgl2d.AnimatedSprite.getExtension(AnimatedSprite.java:51)
Re: PGL2D
Reply #2 - Oct 16th, 2007, 5:45pm
 
I just remembered I have a method from java.util in there, have you got java set up for dev on your machine or have you just downloaded processing?
Re: PGL2D
Reply #3 - Oct 17th, 2007, 6:52am
 
Hi,

I do not understand your question, so it probably means that I do not have any Java dev installed ( I do have eclipse installed thought). I forgot to note that I am using Ubuntu Feisty. Here is the output of "java -version":

$ java -version
java version "1.4.2-02"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-02)
Java HotSpot(TM) Client VM (build Blackdown-1.4.2-02, mixed mode)

Re: PGL2D
Reply #4 - Oct 17th, 2007, 9:11am
 
I have actually only tested this lib on windows. It should work ok on other platforms though. I have update the lib to remove the method in question, I have had problems with it before. If you download the lib again it will hopefully work for you.
Re: PGL2D
Reply #5 - Oct 17th, 2007, 4:46pm
 
Works now.

Thanks.

Tom
Re: PGL2D
Reply #6 - Oct 28th, 2007, 8:39pm
 
Any plans for implementing sprite to sprite collision methods in your sprite class?
Re: PGL2D
Reply #7 - Oct 30th, 2007, 1:16am
 
Yes I had planned to do that, the main reason I didn't was for performance sake, and most basic games can be made by simply detecting collisions with one sprite, but I will look into it.
Page Index Toggle Pages: 1