[gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: "Trollfiddler" <trollfiddler@xxxxxxxxxxx>
- To: <gameprogrammer@xxxxxxxxxxxxx>
- Date: Sun, 23 Oct 2005 15:21:04 +0100
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
- Follow-Ups:
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Mike Gillissie
- References:
- [gameprogrammer] Java Advice - 2D RTS Graphics
- From: Mike Gillissie
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Stephen
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Mike Gillissie
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Stephen
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Mike Gillissie
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Trollfiddler
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Mike Gillissie
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
Heh! How about BufferedStrategy.BANG_HEAD_ON_DESK?
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
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Mike Gillissie
- [gameprogrammer] Java Advice - 2D RTS Graphics
- From: Mike Gillissie
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Stephen
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Mike Gillissie
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Stephen
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Mike Gillissie
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Trollfiddler
- [gameprogrammer] Re: Java Advice - 2D RTS Graphics
- From: Mike Gillissie