oasislabs / game-box

A Truffle box for a barebones Oasis Game
4 stars 3 forks source link

Debug logging inside game logic breaks Webpack #8

Closed andrewosh closed 5 years ago

andrewosh commented 5 years ago

Attempting to call the Oasis runtime's debug function inside core game logic will cause an opaque Webpack build failure (since this function is not available in the browser runtime).

We should provide a debugging method (preferably just println!) that works as expected in both runtime environments.

clementfung commented 5 years ago

This works great now! Fixed with a lot of help from @nhynes :)