This is the game client for QuestFantasy, built using Godot Engine 3.6.2 Mono Edition and C# (.NET).
Before you compile and run the client, make sure your local system has:
- Godot Engine 3.6.2 Mono Edition:
- Download from the Godot Engine Download Archive.
- Note: You MUST download the Mono version. The standard version does not support C# scripts.
- .NET SDK 6.0:
- Download from the .NET Official Website.
- Verify the installation by running:
dotnet --version
Restore the NuGet packages and compile the C# solution using the .NET CLI:
# Restore package dependencies
dotnet restore
# Build the QuestFantasy solution
dotnet build QuestFantasy.slnTo maintain a consistent coding style across the codebase, you can run the built-in dotnet formatter:
dotnet format --verbosity diagnostic QuestFantasy.sln- Open the Godot 3.6.2 Mono engine.
- Click Import and select the project.godot file inside this directory.
- Click the Play button (F5) in the top-right corner to compile and run the game.
Run the game client directly from the console by passing the path:
godot --path .The frontend connects to the server API to handle authentication, data synchronization, and store transactions.
- Default URL:
http://127.0.0.1:8000(matches the local Docker environment). - Custom Server Address: If you host the backend on a different port or server, adjust the
BackendBaseUrlparameter inside the Godot Editor inspector on these scripts:- AuthApiClient.cs
- AuthFlowController.cs
- Main.cs