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

Support for modules like Quickie #55

Open hayksaakian opened 10 years ago

hayksaakian commented 10 years ago

try using https://github.com/vrld/Quickie

I think the problem might have to do with how love2d/lua does "require" Quickie doesn't have a quickie.lua file inside it's folder, but it works as expected when i run it locally with love from the terminal

in my case I did

cd examples/touch/
git clone https://github.com/vrld/Quickie.git

and I added:

gui = require("Quickie") 

to the top of examples/touch/main.lua

then

grunt

and load

http://0.0.0.0:8000/examples/touch/

and open up your console

Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/touch/conf.lua.json Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/touch/Quickie.lua.json Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/touch/Quickie.json Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/Quickie.lua.json Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/Quickie.json Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/modules/Quickie.lua.json Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/modules/Quickie.json Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/modules/Quickie/Quickie.lua.json Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/modules/Quickie/index.lua.json Uncaught Moonshine run-time error: module 'Quickie' not found: no field package.preload['Quickie'] no file 'touch/Quickie.lua.json' no file 'touch/Quickie.json' no file 'Quickie.lua.json' no file 'Quickie.json' no file 'modules/Quickie.lua.json' no file 'modules/Quickie.json' no file 'modules/Quickie/Quickie.lua.json' no file 'modules/Quickie/index.lua.json'

SiENcE commented 9 years ago

Any progress on Punchdrunk?

premek commented 8 years ago

I found similar issue (#57). It looks like moonshine does not require init.lua file