It seems like you have opened this file by double-clicking on it. In order to test your build in a browser you need to load this file from a web server. You can either upload this file and the rest of the files from a Defold HTML5 bundle to a web hosting service OR host them using a local web server on your home network.
The setup consists of a timestep.collection and a game.collection.
timestep.collection
This is the bootstrap collection specified in game.project. Contains:
A Script that handles loading of the game.collection and controls the time-step of game.collection using the set_time_step message.
game.collection
This collection contains a “game” with some animated game objects. Contains:
Five animated game objects that are animated using go.animate()
A Script that starts the game object animations and lets the user control the time-step through messages sent to the Script in the timestep.collection.
Scripts
controller.script
game.script
If you want to play with these examples, you can get the project on Github.
Do you want to see more examples? Why not write a few yourself and submit a pull request? We love contributions.