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

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.

主站蜘蛛池模板: 绥宁县| 珠海市| 孟村| 赣榆县| 福海县| 漳平市| 浦北县| 英吉沙县| 珠海市| 望谟县| 永寿县| 偏关县| 南汇区| 常州市| 宜州市| 梧州市| 浠水县| 清新县| 阳信县| 习水县| 宜宾县| 唐海县| 鞍山市| 张家川| 张掖市| 贡嘎县| 万安县| 东辽县| 东乡| 城固县| 丹寨县| 二连浩特市| 农安县| 大田县| 本溪市| 华宁县| 永修县| 会东县| 湛江市| 江北区| 阜新市|