Here's some feedback for Tumult. @jonathan – this information might help make Hype more of a game development platform. These are issues I noticed while porting Annoyed Tomatoes...
m4a Media Type
I use "m4a" for audio, as I only need the one file, but Hype doesn't recognize it as a media type.
I think it's... audio/x-m4a ...for the media type.
The game calls for particles. There are stars in the background that twinkle. The tomatoes splatter bits when shot and there's a warp field when the game is over. I'm not sure of an easy way to do this in Hype.
I'm considering the use of particles.js to add these effects. It's MIT license, so it might be a good addition to Hype. There's a Demo / Generator that shows what the software can do. A modified version of the NASA example is an easy way to add twinkling stars.
@nick – You're into game development, so this combo is probably interesting to you too.
Add / Remove Elements
I've probably mentioned this before in the Physics API thread, but the Matter.js API has critical game development features. Not being able to dynamically add or remove elements in Hype is a real challenge to the completion of this project.
A look at the Matter.js demo has the "addBody" button
Wow, that Concave Terrain looks really cool. Anyway, by pressing the button, a new physics element can pop into the world. That's important for things like shooting bullets, removing enemies, power ups... you know, typical game stuff.
I think if you're wondering where to focus your efforts in unlocking physics settings, it's basically these three things...
- Adding / Removing Elements
- Moving Elements with physics (velocity / rotation)
- Collision Detection
Create offline application cache
This setting seems to get confused when tomatoes.html is renamed to index.html. I think Hype should default to index.html instead of the project name. The advanced export has the option for exporting with an "index.html" file, but it creates two directories
tomatoes > tomatoes > index.html
Anyway, it's getting closer. At least the doors open now and the gun is shooting...
Update 1/24/2017 – Unfortunately, I had to drop particle.js. It was able to create the effect I was looking for, but it seems it was too processor intensive. When I loaded it on my iPad Air 2, the game crashed hard! I dropped particle.js from the project and created my own particle system. I also load my particle system at a different moment to keep the animation running smoothly.