Skip to content

Instantly share code, notes, and snippets.

View Bradshaw's full-sized avatar
🚀
Lost in space

Gaeel Bradshaw-Rodriguez Bradshaw

🚀
Lost in space
View GitHub Profile
@Bradshaw
Bradshaw / VectorExtensions.cs
Last active February 8, 2020 10:50
Quickly convert between various Vector2s and Vector3s
using UnityEngine;
public static class VectorExtensions {
public static Vector2 xy(this Vector3 v3)
{
return new Vector2(v3.x, v3.y);
}
public static Vector2 xz(this Vector3 v3)
{
@jakevsrobots
jakevsrobots / SharecartOneThousand.cs
Last active September 3, 2019 19:05
A helper script to read/write SHARECART1000 save files. See http://sharecart1000.com/ for more info!
/*************************************************
SHARECART1000 helper script:
This script reads/writes data according to the
shared savegame file specified here:
http://sharecart1000.com/
Put this script on some game object in your
scene. You can use a sample text file in the
sharecart format and assign it to the property
@Bradshaw
Bradshaw / whee.c
Last active December 11, 2015 04:28
Not obfusfcation, just stupidifying...
#include <stdio.h>
#include <stdlib.h>
#define go {
#define stop }
#define maybe if
#define sometime while
#define iz =
#define ithinkis ==
#define county int