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

Part 1 – Player scene

The first scene you'll make defines the Player object. One of the benefits of creating a separate player scene is that you can test it independently, even before you've created the other parts of the game. This separation of game objects will become more and more helpful as your projects grow in size and complexity. Keeping inpidual game objects separate from each other makes them easier to troubleshoot, modify, and even replace entirely without affecting other parts of the game. It also makes your player reusable—you can drop the player scene into an entirely different game and it will work just the same.

The player scene will display your character and its animations, respond to user input by moving the character accordingly, and detect collisions with other objects in the game.

主站蜘蛛池模板: 马关县| 北流市| 会东县| 高密市| 洛川县| 石台县| 孟津县| 荆门市| 潍坊市| 九江市| 岳池县| 什邡市| 萨嘎县| 旬阳县| 兴义市| 沙洋县| 安溪县| 安溪县| 临漳县| 开阳县| 辉县市| 河西区| 伊金霍洛旗| 莱阳市| 通渭县| 宜君县| 儋州市| 文成县| 灵寿县| 岑溪市| 安庆市| 那曲县| 奉贤区| 商南县| 繁昌县| 犍为县| 彰化市| 宁津县| 临潭县| 正阳县| 买车|