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

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.

主站蜘蛛池模板: 云龙县| 肥乡县| 祥云县| 平定县| 嵊泗县| 乌兰浩特市| 屏东县| 句容市| 逊克县| 浙江省| 南郑县| 邵阳市| 盐城市| 隆化县| 云阳县| 丽江市| 青神县| 漾濞| 洪江市| 克东县| 班戈县| 吉安市| 乐昌市| 绥滨县| 固原市| 金山区| 耒阳市| 同德县| 调兵山市| 买车| 浦县| 澄城县| 闽清县| 普定县| 汽车| 喀喇沁旗| 利辛县| 搜索| 绥中县| 郸城县| 南川市|