Slick Forums

Discuss the Slick 2D Library
It is currently Sat May 18, 2013 6:49 pm

All times are UTC




Post new topic Reply to topic  [ 170 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 12  Next
Author Message
 Post subject:
PostPosted: Wed May 30, 2007 7:47 pm 
Offline

Joined: Mon May 28, 2007 1:53 pm
Posts: 30
Are the Polygon and ConvexPolygon collision volumes supported for actors?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 31, 2007 6:18 am 
Offline
Oldbie

Joined: Tue Nov 28, 2006 6:18 pm
Posts: 429
Yes, you can bind any shape to an Actor, including Polygons and ConvexPolygons.

If you have some specific questions about Phys2D, you can also ask them in the Phys2D forums that are right below this Extensions forum.

While I did a tight integration with my stuff, most of it operates the same as the standalone library.

- Jon


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 31, 2007 7:32 am 
Offline
Oldbie

Joined: Tue Nov 28, 2006 6:18 pm
Posts: 429
Effects added in but not uploaded. I'll probably add in one more Effects class called PedigreeEffect that wraps up a Pedigree-made effect for you.

Too bad that I sorta fell asleep on my desk before I could implement an actual effect.

- Jon


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 3:07 am 
Offline
Regular

Joined: Wed Feb 07, 2007 4:04 am
Posts: 107
Changes to the geom package will have an effect on slickset. Rectangle's fields are no longer public.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 3:43 am 
Offline
Oldbie

Joined: Tue Nov 28, 2006 6:18 pm
Posts: 429
Thanks for the heads up. I will adjust accordingly.

- Jon


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 4:18 pm 
Offline
Oldbie

Joined: Tue Nov 28, 2006 6:18 pm
Posts: 429
I'll release 0.3.0 next weekend hopefully with these fixes and the pluggable effects stuff. Having a job has been putting a cramp on my free time, but this'll come through.

- Jon


Last edited by Jon on Mon Jun 04, 2007 9:55 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 02, 2007 7:44 pm 
Offline

Joined: Mon May 28, 2007 1:53 pm
Posts: 30
I was trying to create a basic background with this code:
Code:
      Image skyImage = new Image("res/clouds.jpg");
      ImageLayer skyImageLayer = new ImageLayer(skyImage);
      parallax.addBackgroundLayer(skyImageLayer);

and saw my image clipped to 640x480.

Then I found where the clip size was coming from:

Code:
public Viewport()
{
   this(0, 0, 0, 0, 640, 480);
}


looking at the code I should have called setScene on the Layer to set the viewport dimensions, but it might be a more sensible default to apply the image dimensions on the viewport in the ImageLayer constructor. Or maybe do a setScene() on the layer in the addForegroundLayer and addBackgroundLayer functions of ParallaxLayer.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 02, 2007 9:35 pm 
Offline
Oldbie

Joined: Tue Nov 28, 2006 6:18 pm
Posts: 429
pestilence wrote:
I was trying to create a basic background with this code:
Code:
      Image skyImage = new Image("res/clouds.jpg");
      ImageLayer skyImageLayer = new ImageLayer(skyImage);
      parallax.addBackgroundLayer(skyImageLayer);

and saw my image clipped to 640x480.

Then I found where the clip size was coming from:

Code:
public Viewport()
{
   this(0, 0, 0, 0, 640, 480);
}


looking at the code I should have called setScene on the Layer to set the viewport dimensions, but it might be a more sensible default to apply the image dimensions on the viewport in the ImageLayer constructor. Or maybe do a setScene() on the layer in the addForegroundLayer and addBackgroundLayer functions of ParallaxLayer.


That was my mistake. I'll fix that in the coming release.

- Jon


Top
 Profile  
 
 Post subject: Error?
PostPosted: Sun Jun 10, 2007 2:26 am 
Offline

Joined: Thu May 24, 2007 1:08 am
Posts: 12
Sat Jun 09 21:00:00 CDT 2007 ERROR:tried to access field org.newdawn.slick.geom.Shape.x from class com.slickset.layer.ImageLayer
java.lang.IllegalAccessError: tried to access field org.newdawn.slick.geom.Shape.x from class com.slickset.layer.ImageLayer
at com.slickset.layer.ImageLayer.render(ImageLayer.java:128)

I know what the cause is, but I don't understand why the demos run since they use this, too.


Top
 Profile  
 
PostPosted: Sun Jun 10, 2007 2:42 am 
Offline

Joined: Thu May 24, 2007 1:08 am
Posts: 12
I tried compiling the sources for SlickSet, and this protected access issue is allover the place.


Top
 Profile  
 
 Post subject: Fixed errors in SlickSet
PostPosted: Sun Jun 10, 2007 2:51 am 
Offline

Joined: Thu May 24, 2007 1:08 am
Posts: 12
I've fixed some errors in SlickSet where it was referencing private and/or protected properties of Slick without using getters.

http://carrowyn.net/code/SlickSetFixes.zip


Top
 Profile  
 
 Post subject: SlickSet bug?
PostPosted: Sun Jun 10, 2007 1:16 pm 
Offline

Joined: Thu May 24, 2007 1:08 am
Posts: 12
When applying a force of great magnitude (e.x. explosion) to an object, the object's velocity can become so large that it flies through collidable objects.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 10, 2007 6:10 pm 
Offline
Oldbie

Joined: Tue Nov 28, 2006 6:18 pm
Posts: 429
That last one sounds like something for Kev to look into. As for the fixes, I'll have metziel give you SVN access if you step back into IRC. Seems like my weekends are all shot, so I'll have a rough time updating this.

- Jon


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 20, 2007 7:53 am 
Offline
Oldbie

Joined: Tue Nov 28, 2006 6:18 pm
Posts: 429
Did you ever get SVN access? I e-mailed my webmaster about it, but I never received confirmation that you got it, nor did I see any commits on SVN.

- Jon


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 29, 2007 6:24 am 
Offline
Oldbie

Joined: Tue Nov 28, 2006 6:18 pm
Posts: 429
Sorry for the delays. I'll have the next version out soon. The fixes have been applied, but I'll finish the effects stuff before committing and releasing.

- Jon

Edit - Fixed the geom package stuff with JA's patch.

Edit 2 - Fixed the ImageLayer viewport default stuff.

Edit 3 - In SVN. I'll write up a few test effects before I release.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 170 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 12  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group