Skip to content

Instantly share code, notes, and snippets.

View davydmaker's full-sized avatar
💻
from chaos to code

davyd davydmaker

💻
from chaos to code
View GitHub Profile
@davydmaker
davydmaker / frame_selector_unique.gml
Created July 16, 2025 01:58
GameMaker GML: Unique Frame Selector System
/**
* Frame Selector System - Randomly selects frames without repetition
* Ensures each frame is used exactly once before any frame is repeated
*/
/**
* Creates a shuffled frame selector for the current sprite
*
* @return {struct} Frame selector object with methods
*
@davydmaker
davydmaker / draw_text_outline.gml
Created July 16, 2025 01:54
GameMaker GML: Optimized Text Outline Functions
#macro THICKNESS 1
/**
* Draws text with an outline effect by rendering the text multiple times
* with slight offsets before drawing the main text on top.
*
* @param {real} _x - X position to draw the text
* @param {real} _y - Y position to draw the text
* @param {string} _text - The text string to draw
* @param {color} _textColor - Color of the main text (default: white)
@davydmaker
davydmaker / organize_files_by_batches.sh
Created December 25, 2024 05:03
Organize Files into Subdirectories in Batches
#!/bin/bash
FILES_PER_DIR=40
DIR_COUNT=1
FILE_COUNT=0
SCRIPT_NAME=$(basename "$0")