Commit Graph

116 Commits

Author SHA1 Message Date
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
Darren Eberly
5b9ddff6ee Implemented Ellipse Tests 2020-05-30 20:42:15 -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
Benjamin Kirkbride
c0aa698fc2 docs(xml_parser): docstring cleanup 2020-04-19 03:04:47 -04:00
Benjamin Kirkbride
66a15fb5ca rf(xml_parser): move b64 encoding verification logic to decoder function 2020-04-19 02:59:22 -04:00
Benjamin Kirkbride
9b20032ce6 doc(objects): docstring cleanup 2020-04-19 02:46:14 -04:00
Benjamin Kirkbride
d33778c2a8 rf: rename TileLayerData to TileLayerGrid and use it for Chunks as well 2020-04-19 01:32:08 -04:00
Benjamin Kirkbride
d45ef080b1 rf: move TileLayerData to objects module 2020-04-19 01:02:13 -04:00
Benjamin Kirkbride
c8da8cf5de docs(xml_parser): fixed typo 2020-04-19 01:00:01 -04:00
Benjamin Kirkbride
e44740d199 rf: define the tile layer data type 2020-04-19 00:57:38 -04:00
Benjamin Kirkbride
8b050fb566 rf: rename _decode_data to _decode_tile_layer_data 2020-04-19 00:40:15 -04:00
Benjamin Kirkbride
33c7274d4f docs(objects): add fixme 2020-04-18 22:41:06 -04:00
Benjamin Kirkbride
fbc29a20e4 docs: clarify semantic versioning status 2020-04-18 22:40:43 -04:00
Benjamin Kirkbride
f26ef9749e rf(xml_parser): remove try except clause for unforseable scenario 2020-04-18 22:34:53 -04:00
Benjamin Kirkbride
cf1ea21560 docs: wrap object definitions 2020-04-18 22:01:53 -04:00