Commit graph

475 commits

Author SHA1 Message Date
Jason Long
20b442f600 cleanup: remove redundant copy of XML_Helper 2015-01-10 11:14:51 -05:00
Jason Long
9a285f18ab TileImage: s/drawTo/drawFragment 2015-01-09 22:46:59 -05:00
Jason Long
28be533163 MakeTiles: use BufferedImage, to be the same as gui 2015-01-09 18:07:30 -05:00
Jason Long
7592117306 TileImage: refactor: eliminate drawWithTimeTo()
having a context (such as time) may come back in the future,
but for now it seems better to not do this.
2015-01-09 13:32:50 -05:00
Jason Long
9e1f735b3f MakeTiles: refactor tile drawing code into drawFrames() method 2015-01-08 08:44:08 -05:00
Jason Long
e2e67a1810 MakeTiles: impl ComposeFrame class, to track where a composed frame came from 2015-01-08 08:33:04 -05:00
Jason Long
357a58f094 TileImage: remove getFrameEndTime() method
use "x instanceof Animation" to determine if a tile is animated
2015-01-07 22:26:12 -05:00
Jason Long
ec7641eadf MakeTiles: abstract tile mapping into prepareFrames() method 2015-01-07 21:16:40 -05:00
Jason Long
409f338e6b refactor: make readTileImage() to read any tile image descriptor type 2015-01-07 20:41:12 -05:00
Jason Long
d95ad15b99 TileImage: make some properties final 2015-01-07 20:35:36 -05:00
Jason Long
a3afcde7bb refactor: move build_tool/TileImage to new package 2015-01-07 15:59:41 -05:00
Jason Long
1ec35c1d56 MakeTiles: abstract composition functionality 2015-01-07 14:14:07 -05:00
Jason Long
0fd637cc95 MakeTiles: prepare to abstract composition functionality 2015-01-07 13:30:02 -05:00
Jason Long
cdcb63124a TileImages: use new tile-drawing method in drawing-area 2015-01-07 13:26:41 -05:00
Jason Long
7b85b7bbe9 TileImages: load image file directly into BufferedImage 2015-01-07 13:22:22 -05:00
Jason Long
a68c533ef5 TileImages: fix bug (shadowed variable) in LoaderContext.getImage() 2015-01-07 13:22:17 -05:00
Jason Long
fbd3a0dc94 MakeTiles: change meaning of offsetY 2015-01-07 13:21:20 -05:00
Jason Long
7415edeb9e TileImages: allow having multiple tile image files 2015-01-07 13:20:41 -05:00
Jason Long
dbdad3b37e TileImages: more object-oriented tile-drawing code 2015-01-07 13:13:19 -05:00
Jason Long
6c0c9203a4 TileImages: share image-loading code between overlay map and main view
main view- tiles image is now loaded as a single buffered image,
  and selected into "sub-images" where needed

overlay- the rgb drawing code is moved into TileImages class
2015-01-07 13:13:04 -05:00
Jason Long
7cfe0c1dc5 MakeTiles: find and use 128x128 versions of tile images 2015-01-03 21:04:55 -05:00
Jason Long
f17989412e MakeTiles: recognize .xml image specifications
with .xml image specifications, we can support layers, animations,
and (eventually) complex/conditional images.
2015-01-03 20:56:54 -05:00
Jason Long
206c12a0c4 tile-names: rename old tile names to new tile names automatically
when loading a saved city file.
2014-12-21 15:20:49 -05:00
Jason Long
de36ad6590 tile-names: change format of relative building offsets 2014-12-21 15:18:31 -05:00
Jason Long
d3009d1b9f tile-names: let building be defined by named tiles 2014-12-21 15:18:24 -05:00
Jason Long
c3fde70ddc tile-names: remember PWRBIT when loading tiles from save-file 2014-12-21 15:08:44 -05:00
Jason Long
005a988d3a tile-names: make applyZone() work with dyn-numbered tiles 2014-09-21 16:42:35 -04:00
Jason Long
a2c7d1bca0 tile-names: convert zonePlop to handle dyn-numbered tiles 2014-09-21 16:42:34 -04:00
Jason Long
d0fbfd92a2 tile-names: BuildingInfo: allow dyn-numbered tiles 2014-09-21 16:42:30 -04:00
Jason Long
f136a3f4f4 tile-names: let loadMap() handle dyn-numbered tiles 2014-09-21 16:37:48 -04:00
Jason Long
7ef2158071 cleanup: use proper api to get tile number in MapScanner 2014-09-21 16:37:48 -04:00
Jason Long
b9ea433c3a animation: make stadium playfield an animation 2014-09-21 16:37:47 -04:00
Jason Long
963a51624b animation: make nuclear swirl an animation 2014-09-21 16:37:47 -04:00
Jason Long
a792b770c4 animation: make airport radar an animation 2014-09-21 16:37:46 -04:00
Jason Long
40d2d08e0c animation: make all fires synchronized
(so that it can be represented as a single tile number, which is then animated)
2014-09-21 16:37:45 -04:00
Jason Long
ddd72b44e8 debug: giev more information on assertion failures 2014-09-21 16:37:45 -04:00
Jason Long
2d60c5d4fb animation: make FIRE an animation 2014-09-21 16:37:44 -04:00
Jason Long
4dc9194fe4 TileImages: auto-redraw animated tiles 2014-09-21 16:37:44 -04:00
Jason Long
9c5c41e0f4 TileImages: draw animated frames
(still need to implement redrawing of animated frames)
2014-09-21 16:37:43 -04:00
Jason Long
48cd74c977 TileImages: use experimental "fountain.ini" animation file 2014-09-21 16:37:43 -04:00
Jason Long
0d6f6d4789 TileImages: put placeholder for animated tile support 2014-09-21 16:37:42 -04:00
Jason Long
8acf22d790 MakeTiles: Animation: draw the frames for different times during the animation 2014-09-21 16:37:42 -04:00
Jason Long
56a4b3da27 MakeTiles: refactor: move TileImage classes into separate file 2014-09-21 16:37:41 -04:00
Jason Long
372c1a6519 MakeTiles: fix a couple bugs in code for loading animation 2014-09-21 16:37:41 -04:00
Jason Long
41c8d68717 MakeTiles: working on support for animated tiles 2014-09-21 16:37:40 -04:00
Jason Long
de82160792 MakeTiles: refactor: paving the way to allow multiple images per tile 2014-09-21 16:37:40 -04:00
Jason Long
d5dbd8dc64 MakeTiles: track target size when loading a source image 2014-09-21 16:37:39 -04:00
Jason Long
70bb50fed2 MakeTiles: implement support for files specifying an animation 2014-09-21 16:37:39 -04:00
Jason Long
2ea3318dea MakeTiles: make tile drawing code more object-orientated
Separate classes for tile layers, tile sprites, etc., to make it easier
to introduce more complicated/flexible tile configurations in the future.
2014-09-21 16:37:38 -04:00
Jason Long
2791a5658a TileImages: allow loading a named tiles pack...
and make the overlay map use the 'sm' mapping
2014-09-21 16:37:38 -04:00