Skip to content

Instantly share code, notes, and snippets.

View McBrideMusings's full-sized avatar

Pierce McBride McBrideMusings

View GitHub Profile
@wtrebella
wtrebella / CameraScreenGrab.cs
Created May 6, 2014 02:13
This will pixelate a camera's output
using UnityEngine;
using System.Collections;
// this script is an altered version of a script found here:
// http://krauspe.eu/r/Unity3D/comments/20arg7/i_made_a_script_to_make_a_unity_camera_render/
[ExecuteInEditMode]
public class CameraScreenGrab : MonoBehaviour {
//how chunky to make the screen
@McFunkypants
McFunkypants / gist:87f07ac5e8affad34391
Last active March 19, 2024 12:10
Sid Meier's 10 Rules of Game Design
Sid Meier's 10 Rules of Game Design
1. Choose a topic you have a passion for. Game Design is about creativity.
2. Do research after the game is done. Tap into the player’s brain.
3. Define your axioms, refine your axioms. Prototype, prototype, prototype; sit in all the chairs.
4. Double it or cut it in half. You are more wrong than you think.
@aliozgur
aliozgur / FileSystemHelper.iOS.cs
Created December 10, 2014 11:01
Xamarin.Forms : File service to save/load your objects as Json
using System;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
using MonoTouch.UIKit;
using System.Collections;
using System.Collections.Generic;
using MonoTouch.Foundation;
/// <summary>
@unitycoder
unitycoder / DrawBounds.cs
Last active June 28, 2024 20:03
Draw Bounds with Debug.DrawLine , Draw Box, Draw Runtime Gizmos
void DrawBounds(Bounds b, float delay=0)
{
// bottom
var p1 = new Vector3(b.min.x, b.min.y, b.min.z);
var p2 = new Vector3(b.max.x, b.min.y, b.min.z);
var p3 = new Vector3(b.max.x, b.min.y, b.max.z);
var p4 = new Vector3(b.min.x, b.min.y, b.max.z);
Debug.DrawLine(p1, p2, Color.blue, delay);
Debug.DrawLine(p2, p3, Color.red, delay);