Is there a Physics API? 🤔

I'm not sure. Do you mean collision detection? I think there was some discussion about that in another thread.

Ah, yeah... it was your thread... Elements hitting each other with Physics - #2 by MrAddy

...but didn't someone figure out how to add scoring to the pinball example?

So, we know that Hype is being conservative about adding Physics settings. It's not really a game development platform, but it could be.

Here's what I learned so far today...

  • The "Include in document head" feature is nice. I went to manually add the head code after dragging matter.js into my Hype project – but it was already there.
  • I played with the matter.js "getting started" code, by putting it in a Hype element, and the matter.js box was pushed below the Hype area. This suggests that mixing matter.js and Hype is not so straightforward.
  • I tried using the "getting started" code without loading a separate matter.js file. If Hype physics is based on matter.js, shouldn't it already be there? Well, nothing happened. Perhaps the matter.js is highly customized. Perhaps it has a different name, hidden in the letter scheme. The next step is to try and see if the words "Engine", "World" or "Bodies" are used.