- Unity Game Development Scripting
- Kyle D'Aoust
- 130字
- 2021-08-05 16:52:49
Chapter 1. Interactive Input
Before we start creating our game, it is a good idea to figure out our controls. We'll create a script that will hold our inputs, and create control profiles for both the keyboard/mouse as well as the Xbox 360 Controller. Then, we'll add functionalities to be able to switch between the profiles and customize them as well. Control configurations like these are a key element to games, especially PC games.
In this chapter, we will cover the following topics:
- Creating controls for the Xbox 360 Controller
- Creating controls for a keyboard
- Writing a function to detect whether our controller device is plugged in
- Customizing our controls
- Letting players switch controls
- Switching controls with Graphical User Interface (GUI) buttons
- Resetting controls back to factory settings
推薦閱讀
- Practical Data Analysis Cookbook
- Python量化投資指南:基礎(chǔ)、數(shù)據(jù)與實(shí)戰(zhàn)
- Learning Elixir
- 基于Java技術(shù)的Web應(yīng)用開發(fā)
- Monitoring Elasticsearch
- Mastering Google App Engine
- Mastering Ext JS
- Mastering Android Development with Kotlin
- 搞定J2EE:Struts+Spring+Hibernate整合詳解與典型案例
- Learning YARN
- Webpack實(shí)戰(zhàn):入門、進(jìn)階與調(diào)優(yōu)(第2版)
- C陷阱與缺陷
- 游戲設(shè)計(jì)的底層邏輯
- Flutter之旅
- JavaScript Mobile Application Development