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

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.

主站蜘蛛池模板: 抚松县| 武义县| 婺源县| 景宁| 铜陵市| 浠水县| 巴南区| 双流县| 定西市| 麻江县| 灵山县| 石台县| 凉城县| 区。| 武威市| 佛教| 南开区| 左权县| 云龙县| 大田县| 苗栗市| 万山特区| 宕昌县| 崇仁县| 延吉市| 新民市| 靖边县| 招远市| 抚远县| 化州市| 阿鲁科尔沁旗| 讷河市| 乐至县| 友谊县| 淮北市| 榕江县| 延长县| 梨树县| 夏津县| 会理县| 汾阳市|