126 reputation
3
bio website github.com/nhydock
location Pennsylvania
age 21
visits member for 1 year, 7 months
seen Mar 10 at 13:44

I'm currently a Software Engineering student attending Shippensburg University. I specialize in Java and Python Programming with a focus on the subject of Game Design, Art, and Programming.


Mar
10
comment libgdx - collision detection with tiled map java
I do it the same way. I design the tilemap precisely in gimp as an image, and then place the image as an image layer. Then I load in a tilemap that's got two tiles (transparent and black) and on a tile layer I mask my image by tiles. The tile's id references the tileset used. You can set the mask tile layer to be invisible when saving your tile map so if you use something like LibGDX's standard tiledmap loader it won't render your collision layer.
Mar
6
comment How can I draw a part of a texture in slick2d?
The problem is if you're just using (x, y, srcX, srcY, srcX2, srcY2) it'll use the src texture coordinates but it'll stretch it to the same size as the entire image. Slick2D works much like Java2d. If you don't want it to stretch but you want to crop then you'll want to use slick.ninjacave.com/javadoc/org/newdawn/slick/… and use it as image.draw(0, 0, 32, 16, 16, 16, 48, 32)
Mar
6
comment How can I draw a part of a texture in slick2d?
"weirdly cropped and stretched images" is a bit of a vague and unhelpful descriptor without a screenshot
Mar
6
comment How can I draw a part of a texture in slick2d?
it goes x position on screen, y position, then the texture coordinates of left, top, right, bottom slick.ninjacave.com/javadoc/org/newdawn/slick/…
Mar
6
comment LibGdx and in-game fonts - any proven methods?
You should definitely consider using screen density in your calculation as well. You can get it easily by using Gdx.graphics.getDensity()
Mar
6
answered libgdx - collision detection with tiled map java
Jun
9
awarded  Teacher
Jun
9
answered Libgdx: Am I abusing Vector2? Is there a better way to do my position updates and rendering?
Feb
17
awarded  Supporter
Feb
17
awarded  Autobiographer