- 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
推薦閱讀
- 筆記本電腦使用、維護與故障排除實戰
- 深入理解Spring Cloud與實戰
- 基于ARM的嵌入式系統和物聯網開發
- 精選單片機設計與制作30例(第2版)
- Mastering Manga Studio 5
- 計算機組裝維修與外設配置(高等職業院校教改示范教材·計算機系列)
- Hands-On Artificial Intelligence for Banking
- WebGL Hotshot
- 新編電腦組裝與硬件維修從入門到精通
- FL Studio Cookbook
- Istio實戰指南
- 分布式存儲系統:核心技術、系統實現與Go項目實戰
- 主板維修實踐技術
- 多媒體應用技術(第2版)
- Practical Artificial Intelligence and Blockchain