This is the third tutorial in a series that show how to convert a car game made for the Blender game engine so that it will play in a web browser (using Blend4web).
The original game consisted of a car driving into spinning gemstones to score points, avoiding obstacles that reduce health.
This tutorial shows how to ‘collect’ the gemstones by colliding with them.
Up to this point we have not used code, but now we need to use JavaScript code to implement the game logic.
When using code it is much easier if you use Blend4web’s project manager to make a project.
The tutorial shows how to make a new project, how to link the Blender file to the project and how to add the code.
The project has a JavaScript file, code is added to the file to perform the functions required to play the game. The code accesses the functions in the Blend4web API (application programming interface).
The tutorial shows how the code was developed from the code used in a previous tutorial -
• Make A Car Simulation Into A Driving Game ...
The starting file and the file created in the tutorial can be downloaded from -
http://blender.freemovies.co.uk/web-c...
Download blend4web from -
https://www.blend4web.com/en/