Giter VIP home page Giter VIP logo

Comments (11)

Noofbiz avatar Noofbiz commented on May 24, 2024

Actually, engo uses github.com/EngoEngine/gl which has support for mobile and web!

from engo.

zurgeg avatar zurgeg commented on May 24, 2024

Actually, engo uses github.com/EngoEngine/gl which has support for mobile and web!

Huh, I tried to build for Web and it failed

from engo.

Noofbiz avatar Noofbiz commented on May 24, 2024

I currently use https://github.com/Noofbiz/engoWasmServer as an automated tool for testing myself, but all it uses is the normal go tools with goos=js and goarch=wasm to build. If you need more help building for us let me know, I’ll keep this open.

from engo.

zurgeg avatar zurgeg commented on May 24, 2024

I currently use https://github.com/Noofbiz/engoWasmServer as an automated tool for testing myself, but all it uses is the normal go tools with goos=js and goarch=wasm to build. If you need more help building for us let me know, I’ll keep this open.

Alright, I will grab the error later.

from engo.

zurgeg avatar zurgeg commented on May 24, 2024

@Noofbiz After further research, I get src/github.com/EngoEngine/gl/gl_webgl.go:1541:2: undefined: log.Error when attempting to build EngoEngine/gl, rather then a constraint related error like I got before, but still an error. Any idea why this happens?

from engo.

Noofbiz avatar Noofbiz commented on May 24, 2024

I updated to use the latest gl, should take care of that error message

from engo.

zurgeg avatar zurgeg commented on May 24, 2024

I updated to use the latest gl, should take care of that error message

Great, I will try building, glad I could help ^^)

from engo.

zurgeg avatar zurgeg commented on May 24, 2024

@Noofbiz Now it fails with:

/home/redacted/go/src/github.com/EngoEngine/engo/engo_js.go:46:25: document.Get("body").IsNull undefined (type js.Value has no field or method IsNull)
/home/redacted/go/src/github.com/EngoEngine/engo/engo_js.go:172:9: joy.IsNull undefined (type js.Value has no field or method IsNull)
/home/redacted/go/src/github.com/EngoEngine/engo/engo_js.go:188:9: joy.IsNull undefined (type js.Value has no field or method IsNull)
/home/redacted/go/src/github.com/EngoEngine/engo/gamepads_js.go:32:19: gpds.Index(i).IsNull undefined (type js.Value has no field or method IsNull)
/home/redacted/go/src/github.com/EngoEngine/engo/gamepads_js.go:54:11: window.IsUndefined undefined (type js.Value has no field or method IsUndefined)
/home/redacted/go/src/github.com/EngoEngine/engo/gamepads_js.go:54:52: window.Get("navigator").IsUndefined undefined (type js.Value has no field or method IsUndefined)
/home/redacted/go/src/github.com/EngoEngine/engo/gamepads_js.go:66:20: gpds.Index(i).IsNull undefined (type js.Value has no field or method IsNull)

EDIT: Turns out it was an outdated version of Go

from engo.

zurgeg avatar zurgeg commented on May 24, 2024

@Noofbiz Turns out that on some versions of Go, you need to use ValueEqual. Build fails with this error for reference:

engo_js.go:45:26: invalid operation: document.Get("body") == js.Null() (struct containing [0]func() cannot be compared)

from engo.

zurgeg avatar zurgeg commented on May 24, 2024

Oh wait, turns out my version of Engo was outdated haha, will try building once I fix that

from engo.

zurgeg avatar zurgeg commented on May 24, 2024

Can confirm, it works now

from engo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.