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

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.

主站蜘蛛池模板: 建平县| 罗田县| 辰溪县| 吉首市| 嘉兴市| 嵊泗县| 天镇县| 定州市| 皋兰县| 普兰店市| 新绛县| 库伦旗| 巴彦县| 鄂尔多斯市| 洪江市| 连城县| 称多县| 延津县| 库伦旗| 大冶市| 富顺县| 华池县| 高邑县| 顺义区| 绍兴县| 固始县| 台安县| 泸溪县| 衡南县| 蕲春县| 凤台县| 永嘉县| 大埔区| 成都市| 阿克陶县| 淅川县| 顺昌县| 崇左市| 新乡县| 通化市| 彭水|