Commit graph

35 commits

Author SHA1 Message Date
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
2112ee04f0 MakeTiles: change format of tiles.idx (preparing for future capability) 2014-09-21 16:37:37 -04:00
Jason Long
70d5d31aa5 MakeTiles: use an XML format for the tiles index
this will allow me to more easily add features (like animation)
without evolving into a hard-to-parse custom file format
2014-09-21 16:37:36 -04:00
Jason Long
e913626f60 MakeTiles: use constant (STD_SIZE) to represent standard tile size of 16px 2014-06-20 11:46:26 -04:00
Jason Long
d207232fea MakeTiles: refactor: load images at parse time
this will allow me to detect and load animations (in a future commit)
2014-06-20 11:46:05 -04:00
Jason Long
cb84994ce8 MakeTiles: refactor: pushing caching down a level 2014-06-20 11:45:54 -04:00
Jason Long
c0f1d6a486 MakeTiles: output to a graphics directory instead of a specific file 2014-06-16 20:35:32 -04:00
Jason Long
eb97e1c27c MakeTiles: remove support for width/height specifier 2014-06-16 20:32:03 -04:00
Jason Long
bb6ac09e5d MakeTiles: write unique index for each output file 2014-06-16 20:32:02 -04:00
Jason Long
bff42f0cf9 MakeTiles: allow non-integer tile names; generate an idx file 2014-06-16 20:32:01 -04:00
Jason Long
0bf95f4b19 MakeTiles: refactor to simplify main() method body 2014-06-16 20:32:00 -04:00
Jason Long
7b890e9d89 tiles: add name property to spec 2014-06-16 20:31:59 -04:00
jason@long.name
1026fdf34f make-tiles: allow tile specification to be empty
this fixes a build-crash bug if a tile is not given any images

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@886 d9718cc8-9f43-0410-858b-315f434eb58c
2013-12-02 01:44:52 +00:00
jason@long.name
6b899d096d MakeTiles: tolerate undefined tiles
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@852 d9718cc8-9f43-0410-858b-315f434eb58c
2013-09-09 14:11:39 +00:00
jason@long.name
acce301d1d MakeTiles: support additional creation arguments
tile_count: to control how many tiles are generated
skip_tiles: to control which tile to start with

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@851 d9718cc8-9f43-0410-858b-315f434eb58c
2013-09-09 14:11:21 +00:00
jason@long.name
22c0edc7c1 tiles.rc syntax: allow inheriting of another tile's images/attributes
To inherit, just put the name of tile you want to inherit from in parenthesis
at the beginning of the specification.
E.g.

road-1-1     (road) roads/1-1 (road-north)(road-south)

will define a tile named "road-1-1", which first starts with all the images
and properties of tile "road" and then layers on top of that the 'road/1-1'
image, and then sets the 'road-north' and 'road-south' flags.

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@754 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-20 21:29:47 +00:00
jason@long.name
8a9af13de9 MakeTiles: allow making generated images of an SVG image in a subdirectory
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@751 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-20 21:29:37 +00:00
jason@long.name
b5e86ff388 MakeTiles: when converting an SVG file, specify DPI rather than expected width/height
This way we can handle multi-tile SVG source files (e.g. for the larger zones) correctly.

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@750 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-20 21:29:35 +00:00
jason@long.name
ef575b4125 MakeTiles: fix bug in SVG->PNG logic
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@749 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-20 21:29:32 +00:00
jason@long.name
f5b0089abc MakeTiles: when generating intermediate images, use a staging directory
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@748 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-20 21:29:28 +00:00
jason@long.name
e3dcff2804 MakeTiles: impl support for SVG files
SVG files are converted to PNG files at the appropriate resolution
by calling out to Inkscape.exe (must be installed somewhere)

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@747 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-20 21:29:25 +00:00
jason@long.name
c334cfd9f0 MakeTiles: allow tiles recipe to be more size-agnostic
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@735 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-17 20:30:39 +00:00
jason@long.name
4c623c92c3 MakeTiles: impl generation of different-sized tiles
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@734 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-17 20:30:36 +00:00
jason@long.name
3859ca16d7 tile animation: animation is now controlled by tiles.rc
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@732 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-17 20:11:54 +00:00
jason@long.name
cf6fce279c tiles.rc: rename tiles.dat to tiles.rc, bring TileSpec into main program
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@730 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-17 20:11:47 +00:00
jason@long.name
2cef8e368a tiles.rc: revise syntax of tile specification
changed my mind on tile specification syntax

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@728 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-17 19:58:14 +00:00
jason@long.name
153e0e48f5 tiles.rc: impl TileSpec class for reading tile specification
and rewrite MakeTiles to use the TileSpec class

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@727 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-17 19:58:02 +00:00
jason@long.name
158e85a784 graphics: tile recipe now parsed using Java properties format
This replaces the custom parser with the standard Java properties
parser, which has more features.

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@720 d9718cc8-9f43-0410-858b-315f434eb58c
2013-06-29 17:55:11 +00:00
jason@long.name
4fdc4fb34f graphics: move "MakeTiles" program into src/ directory
(but do not include it in the generated jar file)

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@714 d9718cc8-9f43-0410-858b-315f434eb58c
2013-06-26 22:11:38 +00:00
Renamed from graphics/MakeTiles.java (Browse further)