Skip to content

Instantly share code, notes, and snippets.

@azlen
azlen / bulletpaths.js
Last active February 28, 2025 16:24
All Paths Lead to Roam
/*
* credit to Dhrumil Shah (@wandcrafting) and Robert Haisfield (@RobertHaisfield)
* for the original concept which was part of their RoamGames submission
* and can be found at: https://www.figma.com/file/5shwLdUCHxSaPNEO7pazbe/
*
*/
/* ======= OPTIONS ======== */
/* note: if you change these, reload the page to see the effect */
@yankeyhotel
yankeyhotel / html
Created September 19, 2018 19:23
youtube embed w/ mute and autoplay and loop
<iframe width="560" height="315" src="https://www.youtube.com/embed/ZHiVC_51KkI?rel=0&controls=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen=""></iframe>
<div id="muteYouTubeVideoPlayer"></div>
<script async="" src="https://www.youtube.com/iframe_api"></script>
<script>
function onYouTubeIframeAPIReady() {
var player;
player = new YT.Player('muteYouTubeVideoPlayer', {
videoId: 'ZHiVC_51KkI', // YouTube Video ID
@yagero
yagero / DoesSceneExist.cs
Created September 26, 2017 12:21
Unity: How to know if a Scene exists and can be loaded?
using UnityEngine.SceneManagement;
public static class UtilsScene
{
/// <summary>
/// Returns true if the scene 'name' exists and is in your Build settings, false otherwise
/// </summary>
public static bool DoesSceneExist(string name)
{
if (string.IsNullOrEmpty(name))