[gameprogrammer] Re: Java Advice - 2D RTS Graphics


Heh! How about BufferedStrategy.BANG_HEAD_ON_DESK?

Have you ever thought about using something like this
http://goldenstudios.or.id/products/GTGE/index.php
which might save you a lot of grief and headaches? It's free and would save you a lot of dull coding dog-work!


T.

----- Original Message ----- From: "Mike Gillissie" <Niyoto@xxxxxxxxxx>
To: <gameprogrammer@xxxxxxxxxxxxx>
Sent: Sunday, October 23, 2005 3:10 PM
Subject: [gameprogrammer] Re: Java Advice - 2D RTS Graphics



There are several BufferStrategies you can use, so check the API docs to decide on the best for your needs.

Before you do anything else, you might also want to make sure you are setting the clip rectangle in your Graphics2d object when you are updating your screen, so that you only update the parts that need to be updated.

Is there a "BufferedStrategy.READ_MY_MIND" setting? ;)

I'll read up on the clip rectangle too - I do try to draw only units that are in the visible rectangle, but maybe I'm doing extra work if something is already available...

Thanks muchly, sir! :)
-Mike



---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html





---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: