Commit Graph

250 Commits

Author SHA1 Message Date
Benjamin Kirkbride
40616a78fd doc(layer): _get_caster docstring 2020-06-07 20:31:30 -04:00
Benjamin Kirkbride
77d42246a9 rf(layer): s/_get_layer/_get_group_layer 2020-06-07 20:31:18 -04:00
Darren Eberly
10cc5c2731 Merge branch 'rf/caster' of https://github.com/Beefy-Swain/pytiled_parser into rf/caster 2020-06-07 20:21:39 -04:00
Darren Eberly
97bd12de83 removed checking for type attribute as it should always appear in the JSON format. 2020-06-07 20:21:35 -04:00
Benjamin Kirkbride
58018e9871 stub(layer): get correct caster 2020-06-07 20:20:11 -04:00
Darren Eberly
802959c290 removed checking rotation and name as they will always be defined in the JSON format 2020-06-07 20:16:38 -04:00
Darren Eberly
0dbb7b33fb removed opacity attribute from TiledObject as that is not actually a possible attribute of Tiled Objects. 2020-06-07 20:08:59 -04:00
Darren Eberly
e94906039c changed width and height to not check if they are truthy, as they should always be expected to be so 2020-06-07 20:05:25 -04:00
Benjamin Kirkbride
c248f0eafc feat(map): map parsing 2020-06-07 19:39:18 -04:00
Benjamin Kirkbride
718b4ec0a8 rf: tileset, not tile set 2020-06-07 19:39:18 -04:00
Benjamin Kirkbride
9caaf209b4 stub(map): undo changes to tilesets 2020-06-07 19:39:18 -04:00
Darren Eberly
bb3a8ca1f1 created a base for implementing Layer casting. Also made the types of Layer classes more accurate to Tiled's documentation 2020-06-07 16:01:25 -04:00
Darren Eberly
9a205829d9 tests: Added type key to all existing tileset tests 2020-06-07 14:53:50 -04:00
Benjamin Kirkbride
d8b005a83c FIXME: rename to Tileset 2020-06-07 14:45:38 -04:00
Darren Eberly
4d9ea3a993 Merge branch 'rf/caster' of https://github.com/Beefy-Swain/pytiled_parser into rf/caster 2020-06-06 19:59:03 -04:00
Darren Eberly
b85fc3cb1f fix: changes to support animated tile with collision shapes casting based on test files generated from Tiled as it seems the documentation was wrong about that. 2020-06-06 19:59:01 -04:00
Darren Eberly
9c373dd815 tests: Started on test for animated tiles with collision shapes. Can't finish until Layer casting is finished 2020-06-06 19:57:47 -04:00
Darren Eberly
a0ce33a563 tests: created a new tileset for individual image tiles with animations and properties 2020-06-06 19:45:42 -04:00
Darren Eberly
6753262328 chore: moved FIXME outside of docstring so pylint catches it 2020-06-06 19:45:10 -04:00
Benjamin Kirkbride
3087842cca feat(layer): stub cast 2020-06-06 18:37:31 -04:00
Benjamin Kirkbride
1b3e0e1e84 doc(map): size of a tile, not width 2020-06-06 18:31:23 -04:00
Benjamin Kirkbride
b820dc5a4d doc(map): alphabetize the attributes 2020-06-06 18:29:41 -04:00
Benjamin Kirkbride
27f4cd86a0 doc(map): switch TMX to JSON 2020-06-06 18:22:36 -04:00
Benjamin Kirkbride
373204eb86 rf(map): alphabetize 2020-06-06 18:08:25 -04:00
Benjamin Kirkbride
cb22d613b0 rf(map): this feature will need rethought 2020-06-06 18:02:22 -04:00
Benjamin Kirkbride
f9d1ca9893 rf(map): don't mess with the default of the format 2020-06-06 18:02:22 -04:00
Darren Eberly
c81785eb77 tests: Added tileset_grid test 2020-06-06 17:48:05 -04:00
Darren Eberly
a2b0c2a312 Temporarily remove layers attribute from RawLayer until it can be fixed properly 2020-06-06 17:47:41 -04:00
Darren Eberly
200b227137 fix: added missing import for RawLayer 2020-06-06 17:45:58 -04:00
Benjamin Kirkbride
d92276a766 build out more of the map module 2020-06-06 17:12:17 -04:00
Darren Eberly
b07f30fd0d implemented RawLayer class 2020-06-06 15:28:15 -04:00
Darren Eberly
6c3e6af0a6 tests: fix tileset tests to work with new test_data file structure 2020-06-06 15:08:35 -04:00
Darren Eberly
732a5a52b0 Merge branch 'rf/caster' of https://github.com/Beefy-Swain/pytiled_parser into rf/caster 2020-06-06 14:58:35 -04:00
Darren Eberly
99054c4a8d chore: fixed too many local variables in tileset.cast 2020-06-06 14:58:26 -04:00
Benjamin Kirkbride
b97930fece rf(map): cast, not parse 2020-06-06 14:56:04 -04:00
Darren Eberly
e2e3873b1d chore: moved location of tileset.cast in the code. 2020-06-06 14:55:38 -04:00
Benjamin Kirkbride
ae7f37f4cd Merge branch 'rf/caster' of github.com:Beefy-Swain/pytiled_parser into rf/caster 2020-06-04 21:52:19 -04:00
Benjamin Kirkbride
f911844456 tests: move image up a level 2020-06-04 21:52:07 -04:00
Darren Eberly
9c45223e10 tests: implemented tile_offset test 2020-06-04 21:50:52 -04:00
Darren Eberly
94a733d537 Merge branch 'rf/caster' of https://github.com/Beefy-Swain/pytiled_parser into rf/caster 2020-06-04 21:46:24 -04:00
Darren Eberly
2ed04ae204 tests: refactored the way tileset test directories are handled. Switching from finding all directories to manually listing. 2020-06-04 21:46:13 -04:00
Darren Eberly
7c4071c0f2 tests: all currently implemented tileset tests passing. 2020-06-04 21:45:39 -04:00
Benjamin Kirkbride
b860e88f15 test:fix(image_transparent_color): darren messed up big tim 2020-06-04 21:35:01 -04:00
Benjamin Kirkbride
20eb9a4a59 test:fix: properly read tileset 2020-06-04 21:30:48 -04:00
Benjamin Kirkbride
db33e6bc67 Merge branch 'rf/caster' of github.com:Beefy-Swain/pytiled_parser into rf/caster 2020-06-04 21:28:47 -04:00
Darren Eberly
107bf406bc tests: updated expected variable in all expected.py files 2020-06-04 21:28:35 -04:00
Benjamin Kirkbride
6d64db1aaf test(tileset): add tests 2020-06-04 21:28:34 -04:00
Darren Eberly
4c504549c0 tests: implemented tileset with properties test 2020-06-04 21:26:43 -04:00
Darren Eberly
e2157ffa20 tests: implemented multiple tileset tests 2020-06-04 21:23:11 -04:00
Benjamin Kirkbride
5c519bde9e Merge branch 'rf/caster' of github.com:Beefy-Swain/pytiled_parser into rf/caster 2020-06-04 20:53:56 -04:00