This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================= | |
// GlaireDaggers Audio Reverb v1.1 | |
// by Hazel Stagner | |
// Date: 3/2/2024 | |
// License: MIT | |
//============================================================================= | |
//============================================================================= | |
/* CHANGELOG | |
* v1.1 - 3/4/2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
public class AudioManager | |
{ | |
public readonly VESGame game; | |
private FMOD.Studio.System _studioSystem; | |
private FMOD.Studio.Bank _master; | |
private FMOD.Studio.Bank _master_strings; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------- | |
-- Game animation export script | |
-- By Hazel Stagner | |
------------------------------- | |
-- WARNING: This script was hacked together super quickly and does absolutely zero error handling | |
-- I'll fix it later. Probably. | |
-- NOTE: script expects .utils/json.lua to be present in Aseprite script folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private const int SURROGATE_LOW_BITS = 0x7FF; | |
private const int MAX_SURROGATE = 0xDFFF; | |
private const int MAX_FOUR_BYTE = 0x10FFFF; | |
private const int ONE_BYTE_BITS = 7; | |
private const int TWO_BYTE_BITS = 11; | |
private const int TWO_BYTE_PREFIX = 0xC0; | |
private const int THREE_BYTE_BITS = 16; | |
private const int THREE_BYTE_PREFIX = 0xE0; | |
private const int FOUR_BYTE_PREFIX = 0xF0; | |
private const int CONTINUATION_BYTE = 0x80; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
class Voice | |
{ | |
public void Mix(float[] target, int offset, int length) | |
{ | |
// TODO: mix channel into target | |
Array.Clear(target, offset, length); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@gui VHS filter: vhs_filter_command, vhs_filter_command | |
#@gui : note = note("Filter for applying VHS effect over image") | |
#@gui : sep = separator() | |
#@gui : Chromatic aberration = float(3,0,100) | |
#@gui : Noise = float(15,0,100) | |
#@gui : Chroma blur = float(20,0,100) | |
#@gui : Luma blur = float(5,0,100) | |
#@gui : Sharpen = float(1,0,1) | |
vhs_filter_command : | |
-split c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
namespace JetFistGames.Utils.IO | |
{ | |
/// <summary> | |
/// Helper class for a quick non-allocating way to read or write from/to temporary byte arrays as streams |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// A celestial body that exists in a solar system | |
/// See http://www.stjarnhimlen.se/comp/ppcomp.html | |
/// </summary> | |
public abstract class CelestialBody | |
{ | |
/// <summary> | |
/// The day number | |
/// </summary> | |
public static float d; |