Commit Graph

71 Commits

Author SHA1 Message Date
Max Bradbury 0626d8d069 use new_unique_id() and remove old imports/calls to base36 functions 2020-06-23 16:26:08 +01:00
Max Bradbury 6a4a46e868 remove redundant return 2020-06-23 15:34:28 +01:00
Max Bradbury 453eba2139 todo: other potential errors 2020-06-23 13:06:55 +01:00
Max Bradbury 716554e88b error for parsing game 2020-06-23 13:05:53 +01:00
Max Bradbury 4d33a0a284 handle errors on sprite parsing 2020-06-23 13:01:04 +01:00
Max Bradbury 7773949a8e use default room format on error 2020-06-23 13:00:34 +01:00
Max Bradbury d9764b6b42 error for room type 2020-06-23 12:48:42 +01:00
Max Bradbury 96e9432f06 error for room format 2020-06-23 12:44:44 +01:00
Max Bradbury edbf9575d7 "get sprite" and "get avatar" functions 2020-06-18 20:32:11 +01:00
Max Bradbury b468c680b3 let version fail gracefully 2020-06-18 19:56:33 +01:00
Max Bradbury f85078d0e7 remove unused avatar 2020-06-18 19:15:20 +01:00
Max Bradbury 9f25aef3a2 remove numeric check and just do sprites in the order that they were imported 2020-06-18 18:38:25 +01:00
Max Bradbury 168f3559e0 replace tile ID with string 2020-06-18 17:47:54 +01:00
Max Bradbury bf5b3a8d20 remove avatar (treat it as sprite) 2020-06-18 17:46:30 +01:00
Max Bradbury fe6f3f5c84 convert int IDs to strings 2020-06-18 14:44:20 +01:00
Max Bradbury e895f932a6 skeleton stuff 2020-06-18 13:56:50 +01:00
Max Bradbury 1ce479afaa clarification 2020-06-18 09:11:54 +01:00
Max Bradbury 4ed5ed3d65 implement Clone 2020-05-31 16:12:23 +01:00
Max Bradbury 3e985962c8 special treatment of multi-line game name 2020-04-30 21:48:51 +01:00
Max Bradbury c06dc237a6 handle empty dialogue line (poorly...) 2020-04-30 20:18:15 +01:00
Max Bradbury e9f1a1afcf redo ending transformations 2020-04-29 21:17:29 +01:00
Max Bradbury f899f03dbe allow inlining (this did not provide a statistically significant performance boost - oh well) 2020-04-28 18:00:31 +01:00
Max Bradbury daa46e26ee be a bit more fussy about checking for segment names - game title "PALACE" was being parsed as a palette... :( 2020-04-26 13:33:04 +01:00
Max Bradbury cf1ca6f1b5 reimplement avatar as a plain sprite; handle sprite items as these are mostly needed for avatar 2020-04-26 13:31:20 +01:00
Max Bradbury 5184060372 move this function to lib so we can use it elsewhere 2020-04-25 14:17:12 +01:00
Max Bradbury 9e8d032ced handle game segments better 2020-04-24 21:51:31 +01:00
Max Bradbury c4158e2b66 infer room format 2020-04-24 18:10:10 +01:00
Max Bradbury c9bab425a2 handle optional version/format lines 2020-04-24 18:09:54 +01:00
Max Bradbury 2955a81296 tidyup 2020-04-24 18:09:08 +01:00
Max Bradbury a0d109c0b8 handle optional game version and room format; transform line endings 2020-04-24 18:08:21 +01:00
Max Bradbury ebb172df7e handle room formats 2020-04-24 18:07:32 +01:00
Max Bradbury 1c6e3eb515 turn room format and room type into enums; transform line endings 2020-04-24 18:06:17 +01:00
Max Bradbury f2ec5d44bd add line endings property so we can convert later 2020-04-23 12:07:45 +01:00
Max Bradbury 096eb39bf6 optional version handling 2020-04-23 12:03:39 +01:00
Max Bradbury d1254988bc allow game to have font data (not really parsed for now) 2020-04-23 07:43:52 +01:00
Max Bradbury 76e6c2477c test configurations 2020-04-19 08:13:55 +01:00
github-actions[bot] 1e0c129dca
Format Rust code using rustfmt 2020-04-18 17:08:16 +00:00
Max Bradbury f550c3696f handle errors for game 2020-04-18 18:07:25 +01:00
Max Bradbury 434e98cc60 implement error handling for game 2020-04-18 17:48:29 +01:00
Max Bradbury c47c4205aa implement error handling for avatar 2020-04-18 17:42:32 +01:00
github-actions[bot] cba6c16414
Format Rust code using rustfmt 2020-04-18 15:58:30 +00:00
Max Bradbury 074b51d5d9 fix failing error 2020-04-18 16:46:41 +01:00
Max Bradbury 8b05645c6b allow trailing spaces in dialogues 2020-04-18 16:32:50 +01:00
Max Bradbury 2e5d063371 more testing 2020-04-18 16:20:29 +01:00
Max Bradbury 0414fe757a optional room palette is now handled 2020-04-18 16:14:01 +01:00
Max Bradbury 596be936d9 try to handle old "SET" rooms 2020-04-18 15:33:04 +01:00
Max Bradbury 7c76a9d3d2 go through more test data 2020-04-18 15:02:27 +01:00
Max Bradbury e71c87ad4c handle room wall array 2020-04-18 14:39:17 +01:00
Max Bradbury 7c566ab9d3 update test results 2020-04-18 14:03:01 +01:00
Max Bradbury 2b8039d77d go through more test data 2020-04-18 13:40:37 +01:00