Skip to content

Instantly share code, notes, and snippets.

View Gramps's full-sized avatar
💭
Never-ending pile of coding.

GP Garcia Gramps

💭
Never-ending pile of coding.
View GitHub Profile
@willnationsdev
willnationsdev / gdnative_guide_windows64debug.md
Last active June 16, 2022 14:41
A quick guide on building a GDNative C++ project

Creating a GDNative Library (Windows)

This guide specifically shows how to get a Windows 10 x64 OS compiled for a Windows x64 Debug dynamic library and integrate it into a Godot project.

To begin, make sure you are running the appropriate command line tool as an administrator.

Create a SimpleLibrary directory and enter it. This is where our Godot and GDNative projects will exist. For later use, we will also create subdirectories for libraries (lib) and source code (src). Once inside, we get a copy of each necessary repository for C++ NativeScript bindings generation and enter into the cpp_bindings directory.

mkdir SimpleLibrary

@rubychill
rubychill / scn_to_tscn.gd
Created January 5, 2018 05:30
Godot .scn to .tscn
extends SceneTree
# modify this variable to point to directories containing .scn files to convert
var directories = ["res://"]
var recursive = true # search through subdirectories for .scn files
var keep_originals = true # keep the original .scn files
func _init():
if (OS.get_cmdline_args()[-1] == "-rm"):
@Calinou
Calinou / build_android.bat
Last active September 21, 2018 04:36
Compile Godot for Android easily (on Windows)
:: This script must be run from a Windows machine with
:: Android SDK and NDK installed.
:: NOTE: You need Pywin32 to be installed to use multi-threaded compilation.
:: You may need to set "threads" to 1 for the first build, even if you have it installed.
:: Place this script at the root of your Godot Git clone.
:: CC0 1.0 Universal
set threads=%NUMBER_OF_PROCESSORS%
@Calinou
Calinou / build_android.sh
Last active May 27, 2019 16:26
Compile Godot for Android easily
#!/bin/sh -x
# This script compiles Android debug and release templates from a Godot Git clone.
# It needs to be run from a GNU/Linux system. The compilation process will automatically
# use all CPU threads available.
# You will need to install Android SDK (API 23), the build tools,
# the Android Support Repository and the NDK (latest, as of November 2016).
# Place this script at the root of your Godot Git clone.
# CC0 1.0 Universal
@bil-bas
bil-bas / logger.gd
Last active April 23, 2021 02:39
Simple logger for Godot Game Engine (godotgameengine.org)
# GodotLogger by Spooner
# ======================
#
# logger.gd is a simple logging system. It allows for more formatted logging,
# logging levels and logging to a file.
#
# Installation
# ------------
#
# Place this file somewhere (for example, 'res://root/logger.gd')