dave/jsgo

Error message at 2048

Closed this issue · 5 comments

https://play.jsgo.io/github.com/hajimehoshi/ebiten/examples/2048

package github.com/go-gl/gl/v2.1/gl: build constraints exclude all Go files in gopath/src/github.com/go-gl/gl/v2.1/gl
websocket closed but archives not updated

That's odd since Ebiten should not require go-gl on browsers. I'd be happy if you could confirm this. Thank you!

dave commented

Aaah ok so today I removed the js build tag from jsgo... It broke compatibility with go1.11... i think here:

https://github.com/hajimehoshi/ebiten/blob/063edfcc4a3d0ca5632d84910b3181d3bc81ed88/internal/opengl/context_desktop.go#L16

you need to add:

// +build !gopherjs

or

// +build !jsgo

... I'll take another look to see if I was right to remove js...

To represent GopherJS, // +bulid js && // +build !wasm should work, right?

dave commented

Hang on - I'm going to have a good look through the code and work out where this is coming from... Bear with me...

dave commented

OK I think I fixed it... Give this a try...

Yes, this has been fixed. Thank you!