Code Monkey home page Code Monkey logo

Comments (6)

not-fl3 avatar not-fl3 commented on May 30, 2024 1

Hello what is the apporpriate version of gl.js for
macroquad = "0.2.9"
?

If I use
<script src="https://not-fl3.github.io/miniquad-samples/gl.js"></script>
Then I got :
LinkError: WebAssembly.instantiate(): Import #72 module="env" function="__web_on_grow" error: function import requires a callable

https://not-fl3.github.io/miniquad-samples/gl-0.1.19.js worked for me with macroquad 0.2

from good-web-game.

adambiltcliffe avatar adambiltcliffe commented on May 30, 2024

Is this related to this? not-fl3/miniquad@a36e053

from good-web-game.

adambiltcliffe avatar adambiltcliffe commented on May 30, 2024

Modifying the gl.js provided with miniquad to provide an import for 'time' instead of 'now' gets this working, but a more robust fix is probably needed.

from good-web-game.

not-fl3 avatar not-fl3 commented on May 30, 2024

good-web-game should update to the fresh miniquad version to use lasted gl.js
Workaround right now - use the link to gl.js with a versoin:

    <script src="https://not-fl3.github.io/miniquad-samples/gl-0.2.54.js"></script>

from good-web-game.

not-fl3 avatar not-fl3 commented on May 30, 2024

Relevant miniquad PR: not-fl3/miniquad#97
I believe in the near future we will be able to avoid manually update gl.js version. But right now it is a problem - you either need to host and update appropriate gl.js version(or use the one from miniquad-samples, but with appropriate version)
Or always update miniquad and use the latest gl.js.
However I think the best place to continue this discussion is in the linked miniquad's PR.

Fill free to reopen if the workaround with the version did not fix the problem!

from good-web-game.

TuntematonSotilas avatar TuntematonSotilas commented on May 30, 2024

Hello what is the apporpriate version of gl.js for
macroquad = "0.2.9"
?

If I use
<script src="https://not-fl3.github.io/miniquad-samples/gl.js"></script>
Then I got :
LinkError: WebAssembly.instantiate(): Import #72 module="env" function="__web_on_grow" error: function import requires a callable

from good-web-game.

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.