官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 延寿县| 鄂尔多斯市| 三台县| 沧源| 和平区| 哈尔滨市| 临江市| 苗栗市| 永仁县| 淮阳县| 绩溪县| 定兴县| 南木林县| 江西省| 当涂县| 彝良县| 维西| 翁牛特旗| 湄潭县| 兴城市| 扎囊县| 邹城市| 温泉县| 平度市| 万州区| 宁强县| 长阳| 于都县| 铜陵市| 炉霍县| 普兰县| 通州区| 盘山县| 宁陵县| 大埔区| 乐至县| 罗甸县| 新沂市| 大田县| 徐汇区| 恩施市|