Commit Graph

128 Commits

Author SHA1 Message Date
Benjamin Kirkbride
ce22692326 fix(tiled_object): TileImage is now just Tile 2020-05-30 22:22:14 -04:00
Benjamin Kirkbride
f94269ba66 Merge branch 'rf/caster' of github.com:Beefy-Swain/pytiled_parser into rf/caster 2020-05-30 22:13:02 -04:00
Benjamin Kirkbride
161da5ef03 tests: add Tiles to list 2020-05-30 22:12:47 -04:00
Darren Eberly
d973db18be Merge branch 'rf/caster' of https://github.com/Beefy-Swain/pytiled_parser into rf/caster 2020-05-30 22:00:13 -04:00
Darren Eberly
ae7182d5fb tests: fixed Polyline tests, implemented Polygon tests 2020-05-30 21:58:07 -04:00
Benjamin Kirkbride
0b36a2e0cc rf(tiled_object): rename TileImage to Tile
to match what the UI calls it
2020-05-30 21:52:17 -04:00
Benjamin Kirkbride
9e5453896d tests: remove whitespace 2020-05-30 21:47:43 -04:00
Benjamin Kirkbride
2424e7304e tests: remove unused imports 2020-05-30 21:40:04 -04:00
Benjamin Kirkbride
82f36cf2a8 Merge branch 'rf/caster' of github.com:Beefy-Swain/pytiled_parser into rf/caster 2020-05-30 21:36:23 -04:00
Benjamin Kirkbride
ef20028338 tests: add rectangles to list 2020-05-30 21:36:20 -04:00
Darren Eberly
ac6a4ff379 Added full set of Polygons and Polylines to map 2020-05-30 21:32:11 -04:00
Darren Eberly
d11274693c Implemented Polyline Tests 2020-05-30 21:15:06 -04:00
Benjamin Kirkbride
93f603557a tests: Ben is fickle when it comes to json formatting 2020-05-30 20:51:11 -04:00
Darren Eberly
5b9ddff6ee Implemented Ellipse Tests 2020-05-30 20:42:15 -04:00
Benjamin Kirkbride
21281361c0 tests: width and height were reversed 2020-05-30 20:33:31 -04:00
Darren Eberly
f585fe920c Merge branch 'rf/caster' of https://github.com/Beefy-Swain/pytiled_parser into rf/caster 2020-05-30 20:31:44 -04:00
Benjamin Kirkbride
e42b7e7532 tests: fix visibility of invisible ellipse 2020-05-30 20:31:24 -04:00
Benjamin Kirkbride
ce016a5f8e tests: fix visibility of invisible rectangle 2020-05-30 20:28:49 -04:00
Benjamin Kirkbride
13a0317911 fix(common_types): correct attribute name in docstring 2020-05-30 20:21:49 -04:00
Darren Eberly
47d4210391 Merge branch 'rf/caster' of https://github.com/Beefy-Swain/pytiled_parser into rf/caster 2020-05-30 20:19:08 -04:00
Benjamin Kirkbride
59e8a77b26 tests: use casted type, not dict 2020-05-30 20:18:57 -04:00
Benjamin Kirkbride
0beea21560 fix(tiled_object): imports 2020-05-30 20:18:38 -04:00
Benjamin Kirkbride
ba80ecaf64 feat: visible attribute to tiled_object 2020-05-30 20:18:24 -04:00
Darren Eberly
becf4de4ea Added VS Code directory to gitignore 2020-05-30 19:26:06 -04:00
Benjamin Kirkbride
14c381ab56 re-doing everything as a caster instead of as a parser 2020-05-30 19:14:51 -04:00
Benjamin Kirkbride
4ff013c1f8 RESET
big time reset, we are not using TMX anymore, but instead using the JS 
format because it is way simpler to parse
2020-05-01 19:19:08 -04:00
Benjamin Kirkbride
03d70163f4 fix: rotation is optional 2020-05-01 18:46:37 -04:00
Benjamin Kirkbride
a57ecdf4c8 mv: typing_helpers out of test_data 2020-04-20 20:48:53 -04:00
Benjamin Kirkbride
cd898c7bb2 test: fix; data -> layer data 2020-04-20 20:44:23 -04:00
Benjamin Kirkbride
6788a4937b mv: hitboxes -> objects 2020-04-20 20:42:05 -04:00
Benjamin Kirkbride
682dc51fdf rf: date -> layer_data 2020-04-20 20:28:56 -04:00
Benjamin Kirkbride
222af640d9 rf: reorder parsing of objects to end of function so it stands out more 2020-04-19 23:42:27 -04:00
Benjamin Kirkbride
2d2c2e3079 doc: clarify that there can be multiple objectgroup's 2020-04-19 23:27:44 -04:00
Benjamin Kirkbride
8528aeacd5 break long string to reduce max line length 2020-04-19 23:27:08 -04:00
Benjamin Kirkbride
4b710bf69c doc: add reference to objectgroup section of TMX docs 2020-04-19 23:26:53 -04:00
Benjamin Kirkbride
98b06bcd40 rf: _parse_objects -> _parse_tiled_objects 2020-04-19 23:24:42 -04:00
Benjamin Kirkbride
19e8b0025b test: remove vestigal print 2020-04-19 21:30:10 -04:00
Benjamin Kirkbride
156597637a rf: better implementation and testing of the offset feature of layers 2020-04-19 21:25:43 -04:00
Benjamin Kirkbride
86f7adb984 test: add simple offset test 2020-04-19 21:16:29 -04:00
Benjamin Kirkbride
0b87bb26c6 doc: clarify question 2020-04-19 19:33:13 -04:00
Benjamin Kirkbride
00ff8cb9ac rf: assume that there will always be a layer name 2020-04-19 19:29:34 -04:00
Benjamin Kirkbride
b2dd3ac78a doc: reflow line 2020-04-19 18:30:40 -04:00
Benjamin Kirkbride
7580339415 rf: use assertion in place of try/except to tell Mypy that something is
This is the way that this should have been done all along.

See: https://github.com/python/mypy/issues/5528 for a reference (though 
not the source) of this concept
2020-04-19 04:22:34 -04:00
Benjamin Kirkbride
a0dc12e68e doc: FIXME: create example layer with no name (if possible) 2020-04-19 04:15:00 -04:00
Benjamin Kirkbride
180a3a7cbb rf: remove check for id
I think that there will always be an ID assigned to a layer, no need to 
check for one.
2020-04-19 04:14:23 -04:00
Benjamin Kirkbride
ecfc65731d test: add infinite map test 2020-04-19 04:13:12 -04:00
Benjamin Kirkbride
e1028030bd fix(xml_parser): infinite maps have a 1 not "true" 2020-04-19 03:46:41 -04:00
Benjamin Kirkbride
49bd42a7ce test: refactor and add tests for _parse_data 2020-04-19 03:41:55 -04:00
Benjamin Kirkbride
acbb5374bc rf(test_parser: remove unnessesary function 2020-04-19 03:41:23 -04:00
Benjamin Kirkbride
d55a5d210d rf(xml_parser): remove try except block for unforseable input 2020-04-19 03:06:11 -04:00