Skip to content

Instantly share code, notes, and snippets.

View Kruger0's full-sized avatar
🍃

Krug Kruger0

🍃
View GitHub Profile
@attic-stuff
attic-stuff / sprite_create_data_uri.gml
Last active August 24, 2025 16:25
creates a data uri from a sprite, assuming four channels of eight bit color
/**
* creates a data uri out of a sprite
* assumes rgba, 8bit
* @param {Asset.GMSprite} sprite_asset which sprite to convert to url
* @param {Real} [frame_number] which frame is being converted
* @return {String}
*/
function sprite_create_data_url(sprite_asset, frame_number = 0) {
static buffer_write_u32_backwards = function(buffer, value) {
@DragoniteSpam
DragoniteSpam / shd_fxaa.fsh
Created April 11, 2025 23:23
FXAA shader, gamemaker-ified
/**
Basic FXAA implementation based on the code on geeks3d.com with the
modification that the texture2DLod stuff was removed since it's
unsupported by WebGL.
GameMaker-ized by dragonitespam.
--
From:
@rooksword
rooksword / SaveToDropbox.gml
Last active June 25, 2024 21:21
GameMaker script which saves files to Dropbox
/*
How to use:
You can use this function to save a file to Dropbox.
Go to https://www.dropbox.com/developers/apps.
Click 'scoped access', then 'app folder', then name your app, then click 'create'
@attic-stuff
attic-stuff / tilemap_get_buffer.gml
Created December 31, 2023 01:35
functions for reading and writing tilemaps from and to buffers
/**
* writes a tilemap to a buffer
* @param {id.TileMapElement} map the tilemap source
* @return {id.Buffer}
*/
function buffer_get_tilemap(map) {
var width = tilemap_get_width(map);
var height = tilemap_get_height(map);
var buffer = buffer_create(width * height * buffer_sizeof(buffer_u32), buffer_fixed, 1);
for (var i = 0; i < width; i++) {
@RebeccaWhit3
RebeccaWhit3 / Complete List of Environment Variables in Windows 10.md
Last active December 21, 2025 04:02
Complete List of Environment Variables in Windows 10

Full List of Environment Variables in Windows 10

![information][6] Information

[Environment variables][7] are a set of dynamic named values that can affect the way running processes will behave on a computer. The variables can be used both in scripts and on the command line. Environment variables makes it easy when certain standard directories and parameters need to be referenced but where the actual locations or names can vary from computer to computer.

This tutorial will show you a complete list of environment variables that can be used to reference standard directories and parameters in Windows 10.

![Note][8] Note