This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class CameraShake : MonoBehaviour | |
{ | |
// Transform of the camera to shake. Grabs the gameObject's transform | |
// if null. | |
public Transform camTransform; | |
// How long the object should shake for. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System; | |
using System.Collections.Generic; | |
/// <summary> | |
/// A console that displays the contents of Unity's debug log. | |
/// </summary> | |
/// <remarks> | |
/// Developed by Matthew Miner (www.matthewminer.com) | |
/// Permission is given to use this script however you please with absolutely no restrictions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# My attempt to implement a simple virtual machine with a minimal instruction set | |
# 8-bit computer, fixed-size memory, single cpu, 0-registers, based on von-neumann architecture | |
# No support for interrupts or I/O although we cheat and provide a "print" instruction :) | |
# The goal is to find a minimal, but turing-complete, instruction set | |
# For simplicity, every instruction has two operands, which are located adjacent to it in the memory | |
# This code is just to experiment with various instruction sets and not to be taken seriously | |
# Next fun step would be to develop a language/compiler for this virtual machine | |
class Memory | |
def initialize(size, program) |
NewerOlder