- Cocos2d Cross-Platform Game Development Cookbook(Second Edition)
- Siddharth Shekar
- 109字
- 2021-07-16 09:43:47
Introduction
In the previous chapter, we discussed how to include and manipulate sprites. In this chapter, we will take a look at how to create scenes in a game, which are used to create the basics of menus in games.
Scenes are the building blocks of any game. Generally, in any game, you have the main menu scene in which you are allowed to navigate to different scenes, such as GameScene, OptionsScene, and CreditsScene. In each of these scenes, you have menus.
Similarly, in MainScene
, there is a play button that is part of a menu that, when pressed, takes the player to GameScene, where the gameplay code runs.
推薦閱讀
- PHP動態網站程序設計
- Designing Machine Learning Systems with Python
- Beginning Java Data Structures and Algorithms
- Android開發精要
- Mastering Concurrency in Go
- Java程序員面試算法寶典
- Access 2010數據庫基礎與應用項目式教程(第3版)
- 信息技術應用基礎
- Learning Concurrent Programming in Scala
- Python 3.7從入門到精通(視頻教學版)
- Troubleshooting Citrix XenApp?
- 小程序從0到1:微信全棧工程師一本通
- 玩轉.NET Micro Framework移植:基于STM32F10x處理器
- Getting Started with Electronic Projects
- 體驗之道:從需求到實踐的用戶體驗實戰