Skip to content

Instantly share code, notes, and snippets.

@syskrank
syskrank / godot_mingw.sh
Created February 28, 2019 08:10 — forked from Calinou/godot_mingw.sh
Compile Godot using MinGW and generate Windows installers using InnoSetup (from Linux)
#!/bin/sh
set -euo pipefail
# Number of CPU threads to use for building
# Use `./godot_mingw.sh <number of threads>` to specify
THREADS=$1
# Godot Git clone path
GODOT_PATH="$HOME/Documents/Git/godotengine/godot"
@syskrank
syskrank / godot31_collider_code.md
Created February 19, 2019 05:48
Create collision shape from code in Godot 3.1
	# create body
	var body = StaticBody.new()

	# create & initialize collision shape
	var colShape = CollisionShape.new()
	body.add_child(colShape)

	# create & add actual shape
	var boxShape = BoxShape.new()
@syskrank
syskrank / build_godot31_mingw.md
Created February 12, 2019 15:05
Build Godot 3.1 on Windows using MinGW

Building Godot Engine 3.1 from source on Windows using MinGW

Godot engine could be successfully compiled on Windows machine using MinGW toolchain only ( no VS dependencies ). This HOWTO was tested on Windows 10 x64 host.

Here's how you do it.

0. Clone Godot engine or download & unpack the source code.