设置项目

In this short first part, we’ll set up and organize the project. Launch Godot and create a new project. GDScript C# GDNative C++ dodge_assets.zip. The archive contains the images and sounds you’ll be using to make the game. Extract the archive and move the art/ and fonts/ directories to your project’s directory. dodge_assets.zip. The archive contains the images and sounds you’ll be using to make the game. Extract the archive and move the art/ and fonts/ directories to your project’s directory. 为Godot设置C#. dodge_assets_with_gdnative.zip. The archive contains the images and sounds you’ll be using to make the game. It also contains a starter GDNative project including a SConstruct file, a dodge_the_creeps.gdnlib file, a player.gdns file, and an entry.cpp file. download the Godot C++ bindings and place them in your project. Your project folder should look like this. Project -> Project Settings to open the project settings window and in the left column, open the Display -> Window tab. There, set “Width” to 480 and “Height” to 720. Mode to “2d” and Aspect to “keep”. This ensures that the game scales consistently on different sized screens.

组织项目

Player, Mob, and HUD, which we will combine into the game’s Main scene. res://. You can see your project folders in the FileSystem dock in the lower left corner: With the project in place, we’re ready to design the player scene in the next lesson.