Skip to content

Instantly share code, notes, and snippets.

View BattlehubCode's full-sized avatar
🍀

V BattlehubCode

🍀
View GitHub Profile
@BattlehubCode
BattlehubCode / markovjr_tech_notes.md
Created August 26, 2024 17:53 — forked from dogles/markovjr_tech_notes.md
Markov Jr. Technical Notes

Introduction

Markov Jr. is an open source C# application that creates procedural content primarily via applying Markov rewrite rules to a 2D or 3D grid. A rewrite rule has an input and output pattern, which essentially specifies what pattern to look for in the existing grid, and what to replace it with.

For example, given a 2D grid, this would replace any white dot with a white cross:

***/*W*/*** :: *W*/WWW/*W*

The left hand side is the rule input, and the right hand side is the output. The / character is used to delimit rows, and space is used to delimit Z-layers (in 3D grids). The input rule above translates to the 2D pattern:

@BattlehubCode
BattlehubCode / GetSourceCodeFilePathByTypeExample.cs
Created January 25, 2023 18:32
Get Source Code File Path By Type Example
using System;
using System.Reflection;
using UnityEngine;
public class FilePathAttribute : Attribute
{
public string Value
{
get;
private set;
@BattlehubCode
BattlehubCode / gitignore template.txt
Created July 5, 2022 11:56 — forked from brazilnut2000/gitignore template.txt
GIT: gitignore template for c# development
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
###################
# compiled source #
###################
*.com
*.class
*.dll
*.exe