Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

[SLICK2D] How to go about shading / shadows?  RSS feed

 
Grayson Pike
Greenhorn
Posts: 1
Java Mac Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the best way to go about to creating dynamic shadows / a shader for my 2D java game? Is LWJGL an option? What methods have you used that you would recommend? Any tutorials to learn how to make/use them?
 
Mich Robinson
Ranch Hand
Posts: 260
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not saying this is the best way but it's the way I used in my 2D shooter game Alien Swarm. I just created a couple of transparent shadows in paint dot net and then calculated a position on the ground depending on the xy position of the alien. It sounds like it shouldn't work but it actually looks OK while playing the game.

Mike
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!