How to only render part of an image in lwjgl/openGL

Posted by Ephyxia on Game Development See other posts from Game Development or by Ephyxia
Published on 2013-10-17T23:50:27Z Indexed on 2013/10/18 4:14 UTC
Read the original article Hit count: 181

Filed under:
|
|
|

I'm making a mining/building game in java using slick2D and I want to make it so you can only see a few blocks in any direction while you are underground. The best example I could find of what I want to do is the game miner dig deep.

enter image description here

One way I thought of doing it would be to have a large image and just draw transparent areas on it where you need to be able too see but even if that would be an efficient method I wouldn't be sure how to do that.

© Game Development or respective owner

Related posts about opengl

Related posts about java