Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add few missing methods/class from slick2d #45

Closed
Mierzmit opened this issue Dec 27, 2015 · 5 comments
Closed

Add few missing methods/class from slick2d #45

Mierzmit opened this issue Dec 27, 2015 · 5 comments

Comments

@Mierzmit
Copy link

I'm trying to port two games from slick2d.
I'm missing few method /classes:
g.fillShape(shape);
(it will be faster to type than each time g.fillRect(rect.getX(),rect.getY(),rect.getWidth(),rect.getHeight());.
g.texture(); (shape with texture)
Method contains(x,y) in circle class.
And the my main problem is missing Polygon.class
In slick2d it was very useful to creating any shapes and making collision.(polygon.addPoint(x,y)....)
Is it possibile to add them?
Thanks

@tomcashman
Copy link
Contributor

I'll need to investigate how to do g.texture and the Polygon implementation but I'll add the others to the next 1.3.0 alpha in the meantime.

@Mierzmit
Copy link
Author

Mierzmit commented Jan 9, 2016

It would be good if in next version you could also add methods intersects(shape); in shape classes.
For now I can't check is circle intersects rectangle and vice versa.

@tomcashman
Copy link
Contributor

I will tag a new alpha this evening with these new methods.

@tomcashman
Copy link
Contributor

1.3.0-beta1 is now available.

@tomcashman
Copy link
Contributor

The only missing function is now Graphics.texture(). I've created issue #59 to track this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants