最新章節
- Index
- Summary
- The code in this chapter
- What next?
- The Update function and UI values
- High score and persisting data
品牌:中圖公司
上架時間:2021-07-09 18:22:08
出版社:Packt Publishing
本書數字版權由中圖公司提供,并由其授權上海閱文信息技術有限公司制作發行
- Index 更新時間:2021-07-09 20:03:55
- Summary
- The code in this chapter
- What next?
- The Update function and UI values
- High score and persisting data
- The coin prefab
- Collectables
- Chapter 13. Collectables — What Next?
- Summary
- The code in this chapter
- GameView
- Reference exceptions
- Hiding and showing the Canvas
- Buttons
- Views
- Introducting the Unity UI
- Chapter 12. The User Interface
- Summary
- The code used in this chapter
- Extending the level
- Testing LevelGenerator
- Vector3
- Instantiating
- Creating a copy of the level piece
- Generating levels versus designed levels
- Chapter 11. The Game Level
- Summary
- Code in this chapter
- Setting up the player starting position
- Restarting the game
- Using triggers
- Setting up input keys
- Starting the game
- Singleton class
- Gameplay loops
- Chapter 10. Writing GameManager
- Summary
- Code
- Animator
- User input
- PlayerController
- Preparing the player prefab
- Setting up a new Unity project for our game
- Chapter 9. Starting Your First Game
- Summary
- Target screen resolution
- Target platform and resolution
- Jake on the mysterious planet – the feature list
- Breaking a complex idea into smaller parts
- The idea
- Your first game – avoiding the trap of the never-ending concept
- Chapter 8. Let's Make a Game! – From Idea to Development
- Summary
- Overloading
- Custom constructors
- Using methods with objects
- Bored yet?
- Instantiating an object
- Working with objects is a class act
- Chapter 7. Object a Container with Variables and Methods
- Summary
- Breaking the loop
- Searching for data inside an array
- Modulo
- Loops in statements
- while versus for loops
- The while loop
- The for loop
- The foreach loop
- Introduction to loops
- Chapter 6. Loops
- Summary
- Dictionaries
- ArrayList
- Retrieving the data from the Array or List<T>
- List<T> versus arrays
- Storing items in the List
- What is an array?
- Chapter 5. Lists Arrays and Dictionaries
- Summary
- Returning a value from a method
- Specifying a method's parameters
- Understanding parentheses – why are they there?
- Defining a method the right way
- Naming methods properly
- Using methods in a script
- Chapter 4. Getting into the Details of Methods
- Summary
- Variable scope – determining where a variable can be used
- Where you declare a variable is important
- Assigning values while declaring a variable
- Declaring a variable and its type
- Using multiword variable names
- Beginning variable names with lowercase
- Naming your variables properly
- Private variables
- Changing a property's value in the Inspector panel
- Understanding component properties in Unity's Inspector
- Writing C# statements properly
- Chapter 3. Getting into the Details of Variables
- Summary
- Paper and pencil are powerful tools
- Making decisions in code
- Components that communicate using dot syntax
- The Start() Update() and Awake() methods and the execution order
- Introducing the class
- What is a method?
- Understanding what a variable is and what it does
- Chapter 2. Introducing the Building Blocks for Unity Scripts
- Summary
- Instance? What is it?
- Introducing the MonoDevelop code editor
- Creating a C# script file
- Working with C# script files
- C# documentation – where to find it? Do I need it at all?
- Teaching behavior to GameObjects
- Downloading Unity
- Dealing with scriptphobia
- Prerequisite knowledge to use this book
- Chapter 1. Discovering Your Hidden Scripting Skills and Getting Your Environment Ready
- Preface
- www.PacktPub.com
- About the Reviewer
- About the Author
- Credits
- 版權信息
- 封面
- 封面
- 版權信息
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Preface
- Chapter 1. Discovering Your Hidden Scripting Skills and Getting Your Environment Ready
- Prerequisite knowledge to use this book
- Dealing with scriptphobia
- Downloading Unity
- Teaching behavior to GameObjects
- C# documentation – where to find it? Do I need it at all?
- Working with C# script files
- Creating a C# script file
- Introducing the MonoDevelop code editor
- Instance? What is it?
- Summary
- Chapter 2. Introducing the Building Blocks for Unity Scripts
- Understanding what a variable is and what it does
- What is a method?
- Introducing the class
- The Start() Update() and Awake() methods and the execution order
- Components that communicate using dot syntax
- Making decisions in code
- Paper and pencil are powerful tools
- Summary
- Chapter 3. Getting into the Details of Variables
- Writing C# statements properly
- Understanding component properties in Unity's Inspector
- Changing a property's value in the Inspector panel
- Private variables
- Naming your variables properly
- Beginning variable names with lowercase
- Using multiword variable names
- Declaring a variable and its type
- Assigning values while declaring a variable
- Where you declare a variable is important
- Variable scope – determining where a variable can be used
- Summary
- Chapter 4. Getting into the Details of Methods
- Using methods in a script
- Naming methods properly
- Defining a method the right way
- Understanding parentheses – why are they there?
- Specifying a method's parameters
- Returning a value from a method
- Summary
- Chapter 5. Lists Arrays and Dictionaries
- What is an array?
- Storing items in the List
- List<T> versus arrays
- Retrieving the data from the Array or List<T>
- ArrayList
- Dictionaries
- Summary
- Chapter 6. Loops
- Introduction to loops
- The foreach loop
- The for loop
- The while loop
- while versus for loops
- Loops in statements
- Modulo
- Searching for data inside an array
- Breaking the loop
- Summary
- Chapter 7. Object a Container with Variables and Methods
- Working with objects is a class act
- Instantiating an object
- Bored yet?
- Using methods with objects
- Custom constructors
- Overloading
- Summary
- Chapter 8. Let's Make a Game! – From Idea to Development
- Your first game – avoiding the trap of the never-ending concept
- The idea
- Breaking a complex idea into smaller parts
- Jake on the mysterious planet – the feature list
- Target platform and resolution
- Target screen resolution
- Summary
- Chapter 9. Starting Your First Game
- Setting up a new Unity project for our game
- Preparing the player prefab
- PlayerController
- User input
- Animator
- Code
- Summary
- Chapter 10. Writing GameManager
- Gameplay loops
- Singleton class
- Starting the game
- Setting up input keys
- Using triggers
- Restarting the game
- Setting up the player starting position
- Code in this chapter
- Summary
- Chapter 11. The Game Level
- Generating levels versus designed levels
- Creating a copy of the level piece
- Instantiating
- Vector3
- Testing LevelGenerator
- Extending the level
- The code used in this chapter
- Summary
- Chapter 12. The User Interface
- Introducting the Unity UI
- Views
- Buttons
- Hiding and showing the Canvas
- Reference exceptions
- GameView
- The code in this chapter
- Summary
- Chapter 13. Collectables — What Next?
- Collectables
- The coin prefab
- High score and persisting data
- The Update function and UI values
- What next?
- The code in this chapter
- Summary
- Index 更新時間:2021-07-09 20:03:55