Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Game Development > 9.4. Conclusion

9.4. Conclusion

After some significant preparation in the previous chapters, this chapter showed you how to implement games with HTML5 Canvas.

We began by discussing the implementation of a simple game engine, about 450 lines of JavaScript, that, despite its small size, implements most of the fundamentals you need to create a game, including a game loop and support for things such as time-based motion, pausing the game, keeping track of high scores, playing sounds, and implementing key listeners.

With a simple but capable game engine, we then turned our attention to the ungame, a Hello World for games that shows you how to implement many aspects of a game, without much of an actual game itself.

Finally, we discussed creating an industrial-strength pinball game. That game tackled some advanced aspects of game design, such as implementing angular motion, modeling gravity and friction, and using the SAT and ray casting for collision detection.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint