From: Brett L. <wak...@ea...> - 2005-09-21 23:24:10
|
Sounds fine by me. I hope seeing the fully drawn game maps is at least a little inspiring. ;-) I've added an ImageLoader class so that we only load tile images once rather than reread every file for every repaint. Currently it's instantiated in HexMap, but I'm not completely certain it will be able to stay there. It might need to move to MapManager or some other place. I've added a BufferedImage and AffineTransform to GUIHex. This is where we'll control the image's rotation and scaling. I've mentioned previously that I've added a Paint() method to GUIEWHex that extends the Paint() method in GUIHex. This will contain the hard-coded numbers for rotation and scaling. ---Brett. -----Original Message----- From: Erik Vos <eri...@hc...> Sent: Sep 21, 2005 3:08 PM To: rai...@li... Subject: RE: [Rails-devel] Tiles are working... sorta. > Things that aren't working yet: > > 1. We haven't defined the hex orientation in map.xml, so some > of the map tiles aren't rotated properly. That I had planned to do when tiles would be displayable: trying out the right rotation codes by trial and error (!). So now is the time to start working on that. > 2. There's a few different things causing huge performance > hits for drawing all tiles. > > 3. There's currently no interactivity with the map. > > Soon we'll need to build the logic for rotating through legal > tiles. Is there already a method defined for obtaining arrays > of tiles, such as an array of all yellow tile IDs? No, Tiles.xml is not read yet. But I think this file has the necessary ingredients to create an internal representation of each tile's nodes and tracks in terms of objects and relations between objects (although I have some vague ideas on how it could be done). I'll look at what you have now tomorrow, maybe it inspires me to something.... Erik. ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |