- 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.
推薦閱讀
- 數據庫系統原理及MySQL應用教程(第2版)
- 數據庫程序員面試筆試真題與解析
- Learning Selenium Testing Tools with Python
- Developing Middleware in Java EE 8
- NLTK基礎教程:用NLTK和Python庫構建機器學習應用
- Groovy for Domain:specific Languages(Second Edition)
- Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API
- 用Flutter極速構建原生應用
- 數據結構(C語言)
- 碼上行動:用ChatGPT學會Python編程
- Orchestrating Docker
- 零基礎學HTML+CSS
- Java面試一戰到底(基礎卷)
- Learn C Programming
- Salt Cookbook