Skip to content

Instantly share code, notes, and snippets.


Sam Bloomberg redxdev

View GitHub Profile
redxdev / AudioBank.cs
Created Apr 19, 2020
Simple FMOD wrapper
View AudioBank.cs
using System;
using Flame.Engine.Assets;
using FMOD.Studio;
namespace Flame.Engine.Audio
public sealed class AudioBank : IDisposable, IEquatable<AudioBank>
private readonly Bank bank;
redxdev /
Last active Oct 31, 2020
How to get MonoGame Templates for your IDE

Visual Studio 2017

MonoGame already supports installing templates from the official installer

dotnet Command Line

This works for all IDEs that support .net core (which is pretty much anything up to date nowadays). Use this if you can't get any other methods to work.

Install the latest .net core sdk. Run the following command:

redxdev / Heuristics.cs
Last active Feb 4, 2018
Old C# pathfinder
View Heuristics.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Navier_Boats.Engine.Level;
namespace Navier_Boats.Engine.Pathfinding
public static class Heuristics
redxdev / DungeonGenerator.cs
Last active Jan 15, 2018
2d Dungeon Layout Generator
View DungeonGenerator.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
// NOTE: Some of the classes here (namely the primitives like Vector2d and Rect2d) are not provided,
// but most should be fairly easy to implement yourself or replace with similar
// classes from other libraries.
// The exception is the Delaunay triangulation - that takes quite a bit more effort to implement. That said,
You can’t perform that action at this time.