Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualminibutmany

Posted 23 December 2012 - 09:31 AM

Hi,

I'm working on a 2D platform game. I was foolish and used java2d graphics, but now that I face some slight performance issues I want to move over to Slick instead. The way that I have it set up is a JPanel on it's own thread is constantly updating graphics while the JFrame that it sits upon handles keypresses, and has the main game loop. I only want to re-write the rendering class for slick, but keep the rest of my code the same. How do I get slick to act like java 2d and paint to a JPanel?

Would It be easier to just reformat my whole project to work with Slick windows?


#1minibutmany

Posted 23 December 2012 - 09:23 AM

Hi,

I'm working on a 2D platform game. I was foolish and used java2d graphics, but now that I face some slight performance issues I want to move over to Slick instead. The way that I have it set up is a JPanel on it's own thread is constantly updating graphics while the JFrame that it sits upon handles keypresses, and has the main game loop. I only want to re-write the rendering class for slick, but keep the rest of my code the same. How do I get slick to act like java 2d and paint to a JPanel?


PARTNERS