Skip to content

Instantly share code, notes, and snippets.

View gjroelofs's full-sized avatar

Gijs-Jan Roelofs gjroelofs

View GitHub Profile
@gjroelofs
gjroelofs / JS Move Menu Coda Bottom
Last active October 31, 2019 12:58
Coda move header menu to the bottom
/*************** Move header to the bottom **************/
$(document).arrive(".title_bar--root--KjDBqrRl", function() {
$(this).appendTo($(this).parent());
});
/* Move help button to the top */
.help_button--button--4Ly1iuWp {
top: 22px;
}
@gjroelofs
gjroelofs / Grid
Last active February 27, 2020 17:08
Burst & Grid
Problem:
Concept of entities with volume that define different characteristics which need
to be volume tested against for various gamelogic purposes. Previous iteration
was a grid implementation where these characteristics were represented as
bitflags, each `int` a gamelogic concept to be tested against. E.g. Pathing:
[None, Impassable, Occupied, Walkable, Flyable, Vaultable, Climbable,
Interactable, Teleporter, Staircase]
Any volume placed on the grid would OR added to the grid's characteristics
bitmasks of the cells it occupied.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Sirenix.OdinInspector;
using Sirenix.OdinInspector.Editor;
using UnityEngine;
using TypeCache = UnityEditor.TypeCache;