Skip to content

Instantly share code, notes, and snippets.

View runewake2's full-sized avatar

Sam Wronski runewake2

View GitHub Profile
@runewake2
runewake2 / GeneratePlaneMesh.cs
Created December 20, 2016 06:48
Build a 3D Plane mesh with dynamic number of grid tiles.
// This code was built as part of World of Zero: https://youtu.be/iwsZAg7dReM
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(MeshFilter))]
public class GeneratePlaneMesh : MonoBehaviour {
public float size = 1;
@runewake2
runewake2 / boardgames.csv
Last active November 13, 2023 03:55
A collection of the boardgames I have available
Name Summary Players Min Players Max Time Min Time Max BGG Rating
Wingspan Attract a beautiful and diverse collection of birds to your wildlife preserve. 1 5 40 70 25
Nemesis Survive an alien-infested spaceship but beware of other players and their agendas. 1 5 90 180 19
Ticket to Ride Build your railroad across North America to connect cities and complete tickets. 2 5 30 60 212
Root Decide the fate of the forest as woodland factions fight for contrasting goals. 2 4 60 90 28
Cosmic Encounter Conquer the galaxy with shifting alliances and the unique powers of your alien race. 3 5 60 120 173
Whitehall Mystery Work together to chase a hidden killer through the foggy streets of Victorian London. 2 4 45 60 631
Vampire: Rivals Control a coterie of vampires to claim dominance over the city of San Francisco or Prague! 2 4 30 70 4590
Vampire: Vendetta The vampire Clans of the Camarilla fight to conquer the role of Prince of Chicago. 3 6 30 30 2759
Bedlam Microsoft-themed version of Cards Against Humanity 2 10 30 60 99
@runewake2
runewake2 / ProjectileReflectionEmitterUnityNative.cs
Created January 16, 2018 05:37
Demonstrates a projectile reflecting in 3D Space a variable number of times in Unity 3D
using UnityEditor;
using UnityEngine;
/*
* Projectile reflection demonstration in Unity 3D
*
* Demonstrates a projectile reflecting in 3D space a variable number of times.
* Reflections are calculated using Raycast's and Vector3.Reflect
*
* Developed on World of Zero: https://youtu.be/GttdLYKEJAM
@runewake2
runewake2 / PhysicsDeformer.cs
Created December 21, 2016 04:40
Physics based mesh deformation. This is the physics system.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PhysicsDeformer : MonoBehaviour {
public float collisionRadius = 0.1f;
public DeformableMesh deformableMesh;
// Use this for initialization
@runewake2
runewake2 / DeformableMesh.cs
Created December 21, 2016 04:42
Physically simulated mesh deformation. This file handles the mesh updates.
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
[RequireComponent(typeof(GeneratePlaneMesh))]
public class DeformableMesh : MonoBehaviour {
public float maximumDepression;
public List<Vector3> originalVertices;
@runewake2
runewake2 / corsi-rosenthal-1x2x2.svg
Created June 8, 2023 18:46
A Corsi Rosenthal Box designed to be laser cut from MDF or similar wood and built from 2 120mm PC Fans.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@runewake2
runewake2 / WindowsTerminalPride.hlsl
Created February 27, 2023 05:17
A windows terminal shader that can render different animated pride flags as a background.
// Flag Shader for Windows Terminal
// By: Sam Wronski - worldofzero.com
//
// A quick flag/line rendering shader for the Windwos Terminal
// Customize it below by modifying the settings
//
// To enable shaders in Windows Terminal (an experimental feautre currently):
// "profiles": {
// "defaults": {
// "experimental.pixelShaderPath": "The Path to Your Shader"
@runewake2
runewake2 / Blizzard.cs
Created December 17, 2016 01:42
Simulate occluded particle systems in Unity 3D.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Blizzard : MonoBehaviour {
public float verticleCeiling = 100;
public ParticleSystem[] blizzardEmitters;
// Use this for initialization
void Start () {
@runewake2
runewake2 / FlowLines.cs
Last active November 25, 2022 21:57
Custom Unity Line Renderer for drawing gizmo style lines in Unity including play mode. Implemented during this video: https://youtu.be/s926MfazI50
using UnityEngine;
// Recommended to attach this script to the Main Camera instance.
// Will not render in play mode if not attached to Camera.
[ExecuteInEditMode]
public class FlowLines : MonoBehaviour
{
public Color baseColor;
public Material material;
@runewake2
runewake2 / InteractiveController.cs
Created September 18, 2022 18:28
This is a ASP.NET controller that can execute C# code that is POSTed to it.
// Created by Sam Wronski
// Find more of my work at: worldofzero.com and youtube.com/WorldOfZeroDevelopment
//
// WARNING: This controller exposes the .NET runtime as a web endpoint.
// This could allow third parties to run arbitrary code on your system
// which would be very harmful to your computer and could compromise
// your personal devices and information.
// If you choose to run this inside of a cloud runtime this would also
// make it possible in some cases for people with access to this endpoint
// to exfiltrate details about the current environment (like Secrets!)