Internet Ten Pin Bowling Game Development Reset Ball For Second Attempt, Using Blender & blend4web
3D Blender Tutorials by ianscott888 3D Blender Tutorials by ianscott888
16.3K subscribers
271 views
5

 Published On Aug 6, 2017

This tutorial is part of a series showing how to make a web based ten pin bowling game, this tutorial shows how to reset the location of the ball to have a second attempt at the skittles.

The tutorial show how to create a Blend4web project. How to add the bowling Blender file to the project and how to add JavaScript code to reset the location of the ball.

Code is added to the project's JavaScript file. Most of the functions from earlier versions of the game have some changes and there is a new ‘call back’ function that resets the ball to give a second attempt to knock down the skittles.

The callback function checks the z location of the ball to see if has knocked over the skittles and is in free fall. Once the ball has fallen so far its location is reset. The ball number is incremented and checked so that the player is only given two attempts.

The files used in the tutorial can be downloaded from -
http://blender.freemovies.co.uk/ten-p...

show more

Share/Embed