TannerRogalsky / punchdrunk

An attempt to replicate the LÖVE API in the browser using moonshine.
http://tannerrogalsky.com/punchdrunk/
MIT License
81 stars 10 forks source link

Problem when parsing strings when using anim8 library #31

Open SiENcE opened 10 years ago

SiENcE commented 10 years ago

Uncaught Moonshine run-time error: Could not parse interval from "1-8" parseInterval [anim8/anim8/anim8.lua.json,anim8:72] function [anim8/anim8/anim8.lua.json,anim8:83] function [anim8/anim8/main.lua.json,anim8:12] @js/boot.lua [./null:3]

TannerRogalsky commented 10 years ago

This is a bug with Moonshine's string.match implementation. I've opened an issue on the repo here: https://github.com/gamesys/moonshine/issues/18

In the meantime, it should work if you modify line 72 in anim8 to look for commas instead of hyphens and then use 1,8. I'll leave this issue open so that I remember to bump moonshine when this gets fixed.