Skip to content

Instantly share code, notes, and snippets.

@belzecue
belzecue / ad.md
Created Jan 7, 2023 — forked from rosswd/ad.md
Install Quake and the Arcane Dimensions Mod on a modern Windows system
View ad.md

How to Install Quake and the Arcane Dimensions Mod

Assumptions

This guide assumes you're using Windows 10 and the Steam version of Quake. Although it might work for other systems I don't have access to said systems. We will use Quakespasm as the Quake Engine.

Install Quake

  • Download and Install Quake from Steam
  • You can also install Mission Pack 1: Scourge of Armagon and Mission Pack 2: Dissolution of Eternity, if you like. Scourge of Armagon is seen as the better of the two.

Install the Soundtrack

@belzecue
belzecue / build.gd
Created Jan 7, 2023 — forked from imjp94/build.gd
Build script to help exporting Godot project.
View build.gd
tool
extends SceneTree
const PLATFORM_ANDROID = "Android"
const PLATFORM_HTML5 = "HTML5"
const PLATFORM_IOS = "iOS"
const PLATFORM_LINUX = "Linux/X11"
const PLATFORM_MAC = "Mac OSX"
const PLATFORM_UWP = "UWP"
const PLATFORM_WINDOWS = "Windows Desktop"
@belzecue
belzecue / gamepad_debugger.gd
Last active Dec 19, 2022 — forked from anthonyec/gamepad_debugger.gd
Godot gamepad input visualisation for debugging (GDScript 2)
View gamepad_debugger.gd
# Godot 3.x version of a Godot 4 script written by anthonyec at:
# https://gist.github.com/anthonyec/5342fce79b2b7b22ada748df0ad7f7c0
# This Godot 3.x version available at:
# https://gist.github.com/belzecue/025d8829f69dead512e58f44e990ce30/edit
# Attach script to a Control node.
tool
extends Control
export var device: int = 0
View MatchRectSize.gd
tool
extends Node
class_name MatchRectSize
onready var parent := get_parent() as Control
export(NodePath) var target_control
onready var target := get_node(target_control) as Control
export var match_x := true
export var match_y := true
View FlyCamera.gd
extends Camera
"""
Space/Enter - capture cursor
Escape - free cursor
WASDQE - move
Shift - fast movement
Ctrl - slow movement
"""
@belzecue
belzecue / Camera.gd
Created Oct 24, 2022 — forked from Garmelon/Camera.gd
Godot perspecive projection shaders
View Camera.gd
extends TextureRect
export var sensitivity: Vector3 = Vector3(0.005, 0.005, TAU/4)
var euler: Vector3 = Vector3.ZERO
func _init() -> void:
sensitivity.x *= -1
func _input(event: InputEvent) -> void:
if event.is_action_pressed("ui_cancel"):
@belzecue
belzecue / screenshot.gd
Created Oct 7, 2022 — forked from GK-GreyGhost/screenshot.gd
Create a folder in the format year-month-day and save the screenshot
View screenshot.gd
func screenshot():
var img = get_viewport().get_texture().get_data()
img.flip_y()
var dir:Directory = Directory.new()
var now = OS.get_date()
var folder:String = 'user://screenshots/%s-%s-%s' % [now.year,now.month,now.day]
dir.make_dir_recursive(folder)
img.save_png(folder+'/%d.png' % OS.get_unix_time())
View Google Drive Sync Wine Scripting.md

Google Drive Sync Wine Scripting

This is a set of scripts that help running Google Drive Backup and Sync under Wine, with multiple Google accounts.

Each account is given its own Wine prefix (a separate wine configuration).

To install, run install-gdrive-sync google_account

List the accounts set up in ~/.config/gdrive-accounts

View build armorpaint linux.txt
How to build for Linux
Prerequisites
sudo apt install nodejs
&& sudo apt install make
&& sudo apt install clang
&& sudo apt install libxinerama-dev
&& sudo apt install libxrandr-dev
&& sudo apt install libasound2-dev
&& sudo apt install libxi-dev
View godot_mode7_shader.shader
shader_type canvas_item;
uniform mat4 TRANSFORM;
uniform vec2 DEPTH;
uniform bool REPEAT_X;
uniform bool REPEAT_Y;
uniform bool FLIP;
void fragment() {
// Create the matrix. A workaround is used to modify the matrix's W column