If you are new to Git (the command line tool), follow these instructions to get started:
- Create a GitHub account
- Follow the official GitHub instructions to set up Git locally
- Follow the official instructions to clone this repository
You must follow these instructions before attempting to run or build the project, and before attempting to create or edit maps in Trenchbroom.
If you're on Linux, these instructions should work about the same, you'll just need to download/install the linux releases of each of the following dependencies.
If you're on MacOS... good luck (:
- Download and Install the .NET 8 SDK
- Download Godot 4.2.1 (Mono/.NET Build) for Windows, and extract into
vendor_godot/
- Download Trenchbroom Nightly for Windows, and extract into
vendor_trenchbroom/
- Open the project in Godot through one of these means:
- run the Godot executable in
vendor_godot
, then select thesource/project.godot
project file. - run
open_project.bat
in the root of this repository
- run the Godot executable in
- Build dependencies by pressing
Alt-B
, or by clicking "Build" in the top right of the editor - Close & reopen the project in Godot
After setting up, you should have a folder structure that looks roughly like this:
Before using Trenchbroom, you must configure it with our game's info, entities, asset types, and texture location.
- Open the project in Godot
- Under the FileSystem panel, double click on the
qodot_trenchbroom_config_folder.tres
asset- the Inspector panel will now be inspecting this asset
- In the Inspector panel, ensure that the "Trenchbroom Games Folder" property is set to
../vendor_trenchbroom/games
- Click the "Export File" check box in the Inspector Panel
- it will automatically uncheck immediately after you click it
- this button exports all trenchbroom configurations for this project to
../vendor_trenchbroom/games/GunGame/
- Open trenchbroom by running
vendor_trenchbroom/TrenchBroom.exe
- Open preferences in trenchbroom
- from the "Welcome to TrenchBroom" dialogue, you can get there by clicking "New map..." -> "Open preferences...".
- Update the GunGame Game Path to point to the absolute path to
gungame/source/trenchbroom
.- e.g.
C:\Users\DressesDigital\source\repos\gungame\source\trenchbroom
- e.g.
- Click "OK"
You should be able to select "GunGame" when creating a new map now. You can also edit existing maps in the project.
WIP
The source assets authored by Dresses Digital members is licensed under the Apache License 2.0:
Copyright 2023 Dresses Digital
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Some assets distributed may be licensed differently. See licenses for licenses of other libraries and tools used.