Skip to content

Instantly share code, notes, and snippets.

View KraigWalker's full-sized avatar

Kraig Walker KraigWalker

View GitHub Profile
@KraigWalker
KraigWalker / CameraController.cs
Last active December 25, 2015 04:49
Positions an isometric camera in the scene and updates it's location according to keyboard input. For the tutorial on how to create an isometric game camera visit http://bit.ly/19D0D9E
using UnityEngine;
using System.Collections;
// Camera Controller
// Revision 2
// Allows the camera to move left, right, up and down along a fixed axis.
// Attach to a camera GameObject (e.g MainCamera) for functionality.
public class CameraController : MonoBehaviour {
@KraigWalker
KraigWalker / app.js
Created April 28, 2013 12:52
Display Remaining Characters Available in a Text Area
// Listen for events on the Feedback Text Area
jQuery(document).ready(function($) {
updateCountdown();
$('.message').change(updateCountdown);
$('.message').keyup(updateCountdown)
});
// Display the number of remaining characters in the Feedback Text Area
function updateCountdown() {
// Max number of characters 2500
@KraigWalker
KraigWalker / gist:2126867
Created March 19, 2012 20:32
Creating a Release Branch
$ git checkout -b release-VERSIONNUMBER develop
$ ./bump-version.sh VERSIONNUMBER
$ git commit -a -m "Bumped version number to VERSIONNUMBER"