[gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: "Mike Gillissie" <Niyoto@xxxxxxxxxx>
- To: <gameprogrammer@xxxxxxxxxxxxx>
- Date: Sun, 23 Oct 2005 07:57:54 -0400
Hey, Stephen! :)
I've written an RTS using Java (http://www.carlylesmith.karoo.net/simwar/)
and I only used the standard AWT/Swing stuff and never had any performance
problems with the graphics; I think it all comes down to how you implement
it. Are you using the BufferStrategy? I assume you're not re-drawing the
whole image each time, only whats changed since the last frame.
I'm not actually using the BufferStrategy - I'll have to do a bit of reading
up on it, I can see... ;)
Because my background map is currently a single continuous image, I am
currently redrawing the entire thing, then overlaying the VISIBLE units -
I'm not sure how to move a unit from one position to the next without
redrawing the background iamge, which overwrites the non-moving units as
well as the moved units... I wonder if I should read in my map as separate
"tiles" and redraw only the ones that need refreshing... food for thought...
;)
Thanks for linking me to your game! I'll try it right now, and see how you
did it - this is a great help! :)
-Mike
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- Follow-Ups:
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Stephen
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Matthew Weigel
- References:
- [gameprogrammer] Java Advice - 2D RTS Graphics
- From: Mike Gillissie
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Stephen
Other related posts:
- » [gameprogrammer] Java Advice - 2D RTS Graphics
- » [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- » [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- » [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- » [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- » [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- » [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- » [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- » [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- » [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- » [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- » [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- » [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- » [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- » [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- » [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- » [gameprogrammer] Re: Java Advice - 2D RTS Graphics
--------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Stephen
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Matthew Weigel
- [gameprogrammer] Java Advice - 2D RTS Graphics
- From: Mike Gillissie
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Stephen