- Hands-On Game Development with WebAssembly
- Rick Battagline
- 140字
- 2021-06-24 13:41:11
Collision Detection
Right now, our spaceships can fly around and shoot at each other, but nothing happens.
Collision detection is used in the vast majority of video games to determine whether game objects intersect. There are a large number of methods for detecting collisions between different game objects. Various methods can work better in different situations. There is also a trade-off between the amount of computation time and how accurate our collision detection will be.
You will need to include several images in your build to make this project work. Make sure you include the /Chapter07/sprites/ folder from the project's GitHub. If you haven't yet downloaded the GitHub project, you can get it online here: https://github.com/PacktPublishing/Hands-On-Game-Develop ment-with-WebAssembly.
In this chapter, we will discuss the following:
- Collision detection
- Collider objects
- Types of colliders
- Adding colliders to our game objects
推薦閱讀
- 用“芯”探核:龍芯派開發實戰
- 圖解西門子S7-200系列PLC入門
- Android NDK Game Development Cookbook
- Effective STL中文版:50條有效使用STL的經驗(雙色)
- 基于ARM的嵌入式系統和物聯網開發
- 基于Apache Kylin構建大數據分析平臺
- Visual Media Processing Using Matlab Beginner's Guide
- Spring Cloud微服務架構實戰
- SiFive 經典RISC-V FE310微控制器原理與實踐
- 筆記本電腦芯片級維修從入門到精通(圖解版)
- USB應用分析精粹:從設備硬件、固件到主機端程序設計
- Deep Learning with Keras
- The Machine Learning Workshop
- 電腦主板維修技術
- 超炫的35個Arduino制作項目