Recent snippets

Screenshot without freezing (more complex solution)
darkcanopy
An even more complex screenshot function that avoids the pipeline stall of get_texture.get_image() Godot 4.4 GDScript
First-person camera controls
darkcanopy
first person FPS camera controls using Basis with mouse sensitivity split into X and Y axis Godot 4.x GDScript first-person
Custom shotgun pattern
darkcanopy
shotgun pattern using biased curve2d 'plane' to project the pellets Godot 4.x GDScript functions
Taking a screenshot without freezing (simpler)
darkcanopy
A screenshot function done on a separate thread so your game can save screenshots without lag Godot 4.x GDScript functions
Plaintext config
darkcanopy
.ini plaintext config file players can modify Godot 4.x GDScript functions
Fishing Game Core Mechanic
Casual Garage Coder
Scene/Sub-Scene focusing on a linear precision minigame that can be applied to any linear precision game Godot 4.x GDScript gameplay fishing
Compute Shader Utility
Casual Garage Coder
Simple utility for (limited) compute shader handling GDScript utility compute shader
2D Platformer Character Controller
PapaPandaGames
The controller contains the following features: short jumps, double jumps, coyote time and jump buffer Godot 4.4 GDScript 2d platformer controller
2D Radial Menu
Casual Garage Coder
Very simple radial menu to be used in 2D context Godot 4.x GDScript UI
Number setting UI with slider
Casual Garage Coder
Ever wanted a simple way to set a number manually or with the help of a slider ingame ? Here's a way to do it. Godot 4.x GDScript UI Accessibility
First-person headbobbing
darkcanopy
Headbobbing in first person in a horizontal figure 8 Godot 4.x GDScript first-person
Resource Deferred Loader
Casual Garage Coder
A script to dynamically load resources in background Godot 4.4 GDScript resource management
3D Blob Shadow
Gamma
A rigid shadow that helps shows your player's position, no shader required! Godot 4.x GDScript 3d graphics
Easy Sound Effects
Gamma
A simple node + resource to play sound effects from code Godot 4.4 GDScript audiostreamplayer sfx sound effects
ALT-Enter fullscreen toggle
zegenie
Make your game fullscreen toggleable by reacting to ALT+Enter Godot 4.x GDScript shortcuts input fullscreen
Basic Flocking (GPU Version)
Casual Garage Coder
Flocks of boids with basic behavior with basic obstacle avoidance Godot 4.4 GDScript behavior boids flock compute shader
Serializable class
petit-suisse
Class allowing to save typed variables in json text or bin formats Godot 4.x GDScript serialization saving
Basic Flocking (CPU version)
Casual Garage Coder
Flock of boids with basic behavior and spheres avoidance Godot 4.x GDScript behavior boids flock
RTS Camera 2D
xsist10
Provides a configurable basic RTS Camera 2D that supports zooming and panning. Godot 4.2 GDScript camera camera2d rts
Basic RTS camera3D
PapaPandaGames
a very basic camera3D controller for 3rd person cameras Godot 4.x GDScript camera3d controller UI
Auto-Updating CollisionPolygon2D
Keith Jones
GDScript tool class_name polygons
Procedural Vegetation using L-System
Casual Garage Coder
Using a stochastic L-System, we can generate simple vegetation consisting in branches and leaves Godot 4.x GDScript Procedural generation mesh l-system
Kelp Leaf Mesh Generator
Casual Garage Coder
Simple mesh generator for a kelp-ish leaf Godot 4.x GDScript mesh
Orbit Cam
Casual Garage Coder
Simple orbit camera management script with zoom Godot 4.x GDScript camera3d orbit zoom
Logging with severity and type
aterlamia
Logging that you can turn of or decide what severity or type you want to see Godot 4.x GDScript