Game Development Reference
In-Depth Information
Figure 7-14. Our completed dart game
The full source of the program is available online in the file darts.html . The following are some
improvements you could make to the game:
More precise scoring. Calculating double and triple score areas and separating the two bull's-eye
areas.
Making the throwing smoother and more realistic. Adding gravity and a throwing arc.
Throwing multiple darts.
Keeping track of high scores.
Improving the graphical realism of the dart model.
Summary
In this chapter, WebGL was introduced and we went through the steps involved in setting up a basic
scene. Learning how to set up a scene yourself is good not only for a theoretical understanding of what is
going on, but it can also give you an appreciation of how using one of the existing WebGL frameworks can
improve productivity.
I hope you are excited with what you have learned so far with WebGL and are ready to explore the
Cycleblob chapter, which features an interactive 3D game— Cycleblob ! In that chapter, you will learn more
advanced WebGL techniques such as lighting, creating an active camera, blending, and loading in
complex models.
 
Search WWH ::




Custom Search