Max
06/10/2020, 9:49 AMhiperbou
06/10/2020, 10:43 AMMax
06/10/2020, 1:14 PMUncaught ReferenceError: PIXI is not defined
at /Users/max/dev/home/hexone/build/js/node_modules/Phaser/build/phaser.js:23282:1 <- /Users/max/dev/home/hexone/build/js/packages/hexone-test/adapter-browser.js:23373:11
I think this has to do with how the js lib is packaged. In a kotlin js project the kotlinOptions.moduleKind should be set to something else to support the current default multiplatform js project (Im not a JS dev so im not 100% certain what the problem is).
Maybe the idea of including the files in the project is simpler. Then it should probably work with my current multiplatform setup
After reading your reply Dukat seems to be simpler than i thought. Maybe this would be a possible option as well. The advantage of this is that i would get a more up to date Phaser version.hiperbou
06/10/2020, 3:03 PM@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION")
@file:JsModule("phaser")
hiperbou
06/10/2020, 3:03 PMhiperbou
06/10/2020, 3:16 PMhiperbou
06/10/2020, 3:35 PMhiperbou
06/10/2020, 3:36 PMphaser-ce@2.7.0
that is almost the same as I was using. (you will have to change "phaser" to "phaser-ce" on the lines I mentioned before on the definition fileMax
06/10/2020, 9:54 PM