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()
First-person camera controls
darkcanopy
first person FPS camera controls using Basis with mouse sensitivity split into X and Y axis
Custom shotgun pattern
darkcanopy
shotgun pattern using biased curve2d 'plane' to project the pellets
Taking a screenshot without freezing (simpler)
darkcanopy
A screenshot function done on a separate thread so your game can save screenshots without lag
Plaintext config
darkcanopy
.ini plaintext config file players can modify
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
Compute Shader Utility
Casual Garage Coder
Simple utility for (limited) compute shader handling
2D Platformer Character Controller
PapaPandaGames
The controller contains the following features: short jumps, double jumps, coyote time and jump buffer
2D Radial Menu
Casual Garage Coder
Very simple radial menu to be used in 2D context
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.
First-person headbobbing
darkcanopy
Headbobbing in first person in a horizontal figure 8
Resource Deferred Loader
Casual Garage Coder
A script to dynamically load resources in background
3D Blob Shadow
Gamma
A rigid shadow that helps shows your player's position, no shader required!
Easy Sound Effects
Gamma
A simple node + resource to play sound effects from code
ALT-Enter fullscreen toggle
zegenie
Make your game fullscreen toggleable by reacting to ALT+Enter
Basic Flocking (GPU Version)
Casual Garage Coder
Flocks of boids with basic behavior with basic obstacle avoidance
Serializable class
petit-suisse
Class allowing to save typed variables in json text or bin formats
Basic Flocking (CPU version)
Casual Garage Coder
Flock of boids with basic behavior and spheres avoidance
RTS Camera 2D
xsist10
Provides a configurable basic RTS Camera 2D that supports zooming and panning.
Basic RTS camera3D
PapaPandaGames
a very basic camera3D controller for 3rd person cameras
Auto-Updating CollisionPolygon2D
Keith Jones
Procedural Vegetation using L-System
Casual Garage Coder
Using a stochastic L-System, we can generate simple vegetation consisting in branches and leaves
Kelp Leaf Mesh Generator
Casual Garage Coder
Simple mesh generator for a kelp-ish leaf
Orbit Cam
Casual Garage Coder
Simple orbit camera management script with zoom
Logging with severity and type
aterlamia
Logging that you can turn of or decide what severity or type you want to see