Skip to content

Instantly share code, notes, and snippets.

View theraot's full-sized avatar

Alfonso J. Ramos theraot

  • Barranquilla - Atlántico - Colombia
View GitHub Profile
@theraot
theraot / mouse_lasso.gd
Last active April 19, 2021 18:23
Draw loops with the mouse
extends Node2D
class LoopCreator:
func is_type(type): return type == "LoopCreator" or .is_type(type)
func get_type(): return "LoopCreator"
signal loop(points_array)
var _points_array = PoolVector2Array()
@theraot
theraot / binary_serializer.gd
Last active April 22, 2026 23:50
BinarySerializer for Godot 4.6+
@tool
class_name BinarySerializer # RefCounted (Static)
## Comprehensive binary serialization system for built-in data types.
const _BITS08 := 1
const _BITS16 := 2
const _BITS32 := 4
const _BITS64 := 8
@theraot
theraot / gps_example.gd
Created March 20, 2025 11:59
Godot GPS example
extends VBoxContainer
const FONT_SIZE = 40
var android_runtime: Object
var location_manager: JavaObject
var output_label: Label
var normal_label_settings:LabelSettings