Chapter 10. Building a Game – Pacman
In this chapter, we will build the game called Pacman. We will learn how to program with the help of HTML5 Canvas in Opa, including drawing shapes, texts, and images on the canvas. We will also discuss how to use an external JavaScript library. The complete source code can be found at https://github.com/winbomb/opapackt/tree/master/opacman. Following is a screenshot of our Pacman game: