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

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.

主站蜘蛛池模板: 开原市| 新乡市| 宁国市| 额敏县| 东乡族自治县| 塘沽区| 凤山县| 夏邑县| 玉田县| 河西区| 从江县| 肥西县| 芮城县| 凤山市| 无棣县| 东乡族自治县| 仙游县| 雷波县| 句容市| 玉溪市| 库伦旗| 邓州市| 鹤庆县| 太保市| 滦南县| 文安县| 汾西县| 彰武县| 余姚市| 喀什市| 黑龙江省| 岚皋县| 商南县| 新和县| 勐海县| 剑川县| 衢州市| 荆州市| 广州市| 深圳市| 开化县|