Skip to content

Instantly share code, notes, and snippets.

View bingomanatee's full-sized avatar

Dave Edelhart bingomanatee

View GitHub Profile
@bingomanatee
bingomanatee / CameraShift.cs
Created August 19, 2014 20:42
The camera control - using state and Lerping betweeen camera data
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
/**
* this is a structure that freezes a target camera position rotation and field of view
* as a lerp target for transitions.
* while these properties will be frozen in place for the target extremes, the main camera's properteis
* will be constantly fluxuating between values. Also, if a camera transitions to a new target while en route
* to an old one, the goal is to freeze that transition point into a CameraState as a basis for lerping.
/* globals define */
define(function (require, exports, module) {
'use strict';
var View = require('famous/core/View');
var Surface = require('famous/core/Surface');
var Modifier = require('famous/core/Modifier');
var Transform = require('famous/core/Transform');
var TTransform = require('famous/transitions/TransitionableTransform');
var Easing = require('famous/transitions/Easing');
@bingomanatee
bingomanatee / UserPanel.js
Created June 25, 2014 15:10
based on view
/* globals define */
define(function (require, exports, module) {
'use strict';
var View = require('famous/core/View');
var Surface = require('famous/core/Surface');
var Modifier = require('famous/core/Modifier');
var Transform = require('famous/core/Transform');
var TTransform = require('famous/transitions/TransitionableTransform');
var Easing = require('famous/transitions/Easing');
@bingomanatee
bingomanatee / UserPanel.js
Created June 25, 2014 15:09
based on a plain view
/* globals define */
define(function (require, exports, module) {
'use strict';
var View = require('famous/core/View');
var Surface = require('famous/core/Surface');
var Modifier = require('famous/core/Modifier');
var Transform = require('famous/core/Transform');
var TTransform = require('famous/transitions/TransitionableTransform');
var Easing = require('famous/transitions/Easing');
@bingomanatee
bingomanatee / UserPanel.js
Created June 25, 2014 14:51
surfacs sizing?
/* globals define */
define(function (require, exports, module) {
'use strict';
var View = require('famous/core/View');
var Surface = require('famous/core/Surface');
var Modifier = require('famous/core/Modifier');
var Transform = require('famous/core/Transform');
var TTransform = require('famous/transitions/TransitionableTransform');
var Easing = require('famous/transitions/Easing');
@bingomanatee
bingomanatee / main.js
Created May 21, 2014 22:37
a system for looking at the coordinate system and interaction box of the Leap Motion Contorller
/* globals define */
define(function(require, exports, module) {
'use strict';
// import dependencies
var Engine = require('famous/core/Engine');
var Modifier = require('famous/core/Modifier');
var Transform = require('famous/core/Transform');
var ImageSurface = require('famous/surfaces/ImageSurface');
var Surface = require('famous/core/Surface');
/* globals define */
define(function(require, exports, module) {
'use strict';
// import dependencies
var Engine = require('famous/core/Engine');
var Modifier = require('famous/core/Modifier');
var Transform = require('famous/core/Transform');
var ImageSurface = require('famous/surfaces/ImageSurface');
var Surface = require('famous/core/Surface');
/* globals define */
define(function(require, exports, module) {
'use strict';
// import dependencies
var Engine = require('famous/core/Engine');
var Modifier = require('famous/core/Modifier');
var Transform = require('famous/core/Transform');
var ImageSurface = require('famous/surfaces/ImageSurface');
// create the main context
@bingomanatee
bingomanatee / fork_example_2.js
Created May 19, 2014 17:01
Wolves and Goats
var Fools = require('./../fools');
var _ = require('lodash');
var util = require('util');
function scenario(ratio, animalCount, mapSize, grassLength, regrowthRate) {
var alert_level = 1;
var grass = _.map(_.range(0, mapSize), function () {
return grassLength;
});
@bingomanatee
bingomanatee / DataSurface.js
Created May 5, 2014 22:02
because surfaces want to be human
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Owner: [email protected]
* @license MPL 2.0
* @copyright Famous Industries, Inc. 2014
*/
define(function(require, exports, module) {