Skip to content

Instantly share code, notes, and snippets.

@QuatschSalat
QuatschSalat / global.gd
Last active February 7, 2022 09:09
Global settings and wave settings for Single Tower Defence
# Global settings and wave settings for Single Tower Defence
# https://quatschcode.itch.io/singletowerknight
# (c) QuatschSalat
extends Node
var sound_on = true
var music_on = true
var tutorial_on = true
var mouse_mode_on = false
@QuatschSalat
QuatschSalat / Projectname-prefix.pch
Last active December 30, 2015 05:48
This small gist helps you to access localized strings. Instead of typing a long function name, you can define your preferred (shorter or longer) one.
// We use a shorter function to access localized strings
#define AMLocalized(key) NSLocalizedString(key, nil)
// Or even shorter
#define _(key) NSLocalizedString(key, nil)
// You can use every allowed function name you want
#define Franz(key) NSLocalizedString(key, nil)