GithubHelp home page GithubHelp logo

Compilation fails on neko about box2d HOT 4 CLOSED

openfl avatar openfl commented on June 16, 2024
Compilation fails on neko

from box2d.

Comments (4)

drkibitz avatar drkibitz commented on June 16, 2024

@jgranick Ok, I did a little digging, but first I have a question. How are you maintaining this library? Is it a manual port or is it transpiled? I'm asking because making specific changes will make it much harder to maintain if it is the latter :/

So my findings are, that first compilation error is just an order of definitions issue. Line 72 just doesn't know about the constant it is using yet.

After fixing this, there are numerous runtime errors, that I have seemed to boil down to one simple thing. This library is expecting null to be coerced to 0 in quite a few operations involving mainly bitmasks and increments from what I can see.

I just kept stomping them and making sure a 0 was defined where these operations failed with null.

With that the openfl sample works on neko.

Your thoughts?

from box2d.

drkibitz avatar drkibitz commented on June 16, 2024

Since I'm new to the party, I'm not sure if this is a recent change in Neko, or in Haxe targeting Neko. But it does seem like a weird change :/

from box2d.

jgranick avatar jgranick commented on June 16, 2024

This was a manual conversion, so all (or any) Neko fixes would be greatly appreciated!

from box2d.

jgranick avatar jgranick commented on June 16, 2024

Box2D works on Neko in my tests, but if you have any more problems, please report them. Thank you! 😉

from box2d.

Related Issues (18)

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.