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

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.

主站蜘蛛池模板: 普陀区| 营口市| 上饶县| 德保县| 叶城县| 玛沁县| 武乡县| 乾安县| 安福县| 巴林左旗| 芜湖市| 临漳县| 榕江县| 文化| 德昌县| 大丰市| 黎川县| 慈利县| 萨嘎县| 邮箱| 新晃| 区。| 双城市| 泸溪县| 德庆县| 普格县| 曲沃县| 阳曲县| 孟连| 广水市| 镇江市| 林芝县| 尉氏县| 青铜峡市| 阿拉善右旗| 聊城市| 四子王旗| 华池县| 昆山市| 蕲春县| 浙江省|