Jump to content

  • Log In with Google      Sign In   
  • Create Account

sakray

Member Since 23 Feb 2012
Offline Last Active Feb 26 2012 03:53 AM

Topics I've Started

2d tile game.

23 February 2012 - 06:46 AM

Wazzzzzzup everyone =) I'm making my own rpg game . I basically need hints on a really fast way to draw the background in java .... I mean super fast.

Currently I have a array with 1000x1000 tile objects ... in my game the hero is centered and the background moves ... witch basically mean that i have to redraw the background every time the hero moves ... Basically its finished ... but i only draw exactly what is going to be displayed witch means that if only half a tile is inside the panel then i cut out that part before displaying it ....

Well it takes the paintcomponent about ~50 ms to repaint the screen witch is unacceptable ... so how can i do this faster ? ideas? tutorials ? Thanks.

PARTNERS