Dashto
  • Member for 11 years, 5 months
  • Last seen more than 3 years ago
Efficient Collision Detection With Numerous Objects at Once
Accepted answer
5 votes

Since your game is 2D, I would recommend using QuadTrees. Here's a good tutorial to get you started: http://www.kyleschouviller.com/wsuxna/quadtree-source-included/ Another good one: http://gamedev....

View answer
LibGdx sprite rotation vs Box2D physics rotation problem
3 votes

The libgdx-utils library has a Box2DSprite class that takes care of all the difficulties in synchronizing the appearance with the physics body. It may be helpful to either use this library or see how ...

View answer
libGDX SpriteBatch reuse
2 votes

LibGDX already binds the textures for you under the hood: Texture.java For 99% of cases you can just let the SpriteBatch draw everything for you; it does so with very good efficiency. I would suggest ...

View answer
Artemis Framework - delete all entities with a given type of component
Accepted answer
2 votes

Here's an example system that deletes all entities with the "Expires" component: public class DeleteEntitiesSystem extends EntitySystem { public DeleteEntitiesSystem() { super(Aspect....

View answer
Blending semi-transparent images while not stacking their alphas
1 votes

I believe GL_ONE_MINUS_SRC_ALPHA is what you are looking for. If you are using a SpriteBatch you can enable blending like this: batch.enableBlending(); batch.setBlendFunction(GL20.GL_SRC_ALPHA, GL20....

View answer
Installing the right version of PyGame
1 votes

I have successfully used pygame on 64-bit Windows with both Python2.7 and Python3.3. I used the installers from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame Choose the appropriate one to ...

View answer