- HTML5 Game Development by Example:Beginner's Guide(Second Edition)
- Makzan
- 132字
- 2021-07-16 14:09:59
Summary
You learned a lot in this chapter about the basic techniques of creating a simple Ping Pong game with HTML5 and JavaScript. Specifically, we created our first HTML5 game—Ping Pong. In the game, we used jQuery to manipulate DOM objects. We were able to use the mouse event to get the cursor position. We used a very simple method to detect collisions with the bounding box. In the logic, we separated data manipulation and view rendering. We also discussed how to create a game loop and move the ball and paddles.
Now that we've warmed up by creating a simple DOM-based game, we are ready to create more advanced DOM-based games with new features from CSS3. In the next chapter, we will create games with CSS3 transition and transformation.
推薦閱讀
- LabVIEW 2018 虛擬儀器程序設計
- Hands-On Machine Learning with scikit:learn and Scientific Python Toolkits
- Instant Typeahead.js
- NativeScript for Angular Mobile Development
- Visual C++串口通信技術詳解(第2版)
- Effective Python Penetration Testing
- Hands-On Full Stack Development with Go
- Visual Basic程序設計上機實驗教程
- C++寶典
- Unity&VR游戲美術設計實戰
- Kotlin極簡教程
- UX Design for Mobile
- HTML5游戲開發實戰
- IBM RUP參考與認證指南
- 高質量程序設計指南:C++/C語言