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

Project organization

As your projects become larger and more involved, you'll find that saving all of your scenes and scripts in the same folder becomes unwieldy. 

A common response to this by Godot beginners is to make a scenes folder and a scripts folder, and to save each type of file in the respective folder. This isn't very effective. Soon, you find yourself hunting through the scripts folder, looking for the script you need because it's jumbled up with all the other scripts of your game.

A more logical organization is to create a folder for each type of object. A player folder, for example, will hold the player's scene file, script(s), and any other resources that it needs. Organizing your project in this way is much more scalable and can be extended even further if you have a very large number of objects. For example, refer to the following screenshot:

Throughout this project, the examples will assume that each new scene type is being saved in a folder of that type, along with its script. The Player.tscn and Player.gd files, for example, will be saved in a player folder.

主站蜘蛛池模板: 内江市| 福泉市| 巩留县| 乌拉特后旗| 修武县| 大田县| 长泰县| 虎林市| 方城县| 齐齐哈尔市| 扬州市| 镇宁| 平江县| 本溪| 华池县| 新邵县| 罗城| 安溪县| 石首市| 江口县| 涞源县| 门头沟区| 寻乌县| 安达市| 新乡市| 梓潼县| 嘉黎县| 新绛县| 克山县| 浦东新区| 辽阳市| 肇源县| 南京市| 前郭尔| 塔城市| 德阳市| 浏阳市| 兴宁市| 扶绥县| 万荣县| 卓尼县|