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 CameraFollow : MonoBehaviour { | |
| public GameObject target; | |
| public bool lockXAxis; | |
| public bool lockYAxis; | |
| public bool lockZAxis = true; | |
| public bool useBounds = false; |
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
| var SPEED = 200; | |
| var GRAVITY = 900; | |
| var JET = 420; | |
| var OPENING = 200; | |
| var SPAWN_RATE = 1.25; | |
| var state = { | |
| preload: function(){ | |
| this.load.image('wall', '/assets/wall.png'); |
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
| ig.module( | |
| 'bootstrap.plugins.tracking' | |
| ) | |
| .requires( | |
| ) | |
| .defines(function () { | |
| Tracking = ig.Class.extend({ | |
| debug: true, | |
| init: function (account) { |
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
| module.exports = function (grunt) { | |
| grunt.loadNpmTasks('grunt-shell'); | |
| grunt.loadNpmTasks('grunt-express-server'); | |
| grunt.loadNpmTasks('grunt-contrib-watch'); | |
| grunt.loadNpmTasks('grunt-contrib-copy'); | |
| grunt.loadNpmTasks('grunt-text-replace'); | |
| grunt.loadNpmTasks('grunt-contrib-clean'); | |
| grunt.loadNpmTasks('grunt-contrib-uglify'); | |
| grunt.loadNpmTasks('grunt-open'); |
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
| module.exports = function (grunt) { | |
| grunt.loadNpmTasks('grunt-shell'); | |
| grunt.loadNpmTasks('grunt-express-server'); | |
| grunt.loadNpmTasks('grunt-contrib-watch'); | |
| grunt.loadNpmTasks('grunt-contrib-copy'); | |
| grunt.loadNpmTasks('grunt-text-replace'); | |
| grunt.loadNpmTasks('grunt-contrib-clean'); | |
| grunt.loadNpmTasks('grunt-contrib-uglify'); | |
| grunt.loadNpmTasks('grunt-open'); |
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
| // Module | |
| var pxv; | |
| (function (pxv) { | |
| var Point = (function () { | |
| function Point(x, y) { | |
| if (typeof x === "undefined") { x = 0; } | |
| if (typeof y === "undefined") { y = 0; } | |
| this.x = x; | |
| this.y = y; | |
| } |
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
| ig.module( | |
| 'game.plugins.camera' | |
| ) | |
| .requires( | |
| 'impact.game', | |
| 'impact.image' | |
| ) | |
| .defines(function () { |
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
| ig.module( | |
| 'plugins.texture-atlas' | |
| ) | |
| .requires( | |
| 'impact.animation', | |
| 'impact.image', | |
| 'impact.entity' | |
| ) | |
| .defines(function () { | |
| "use strict"; |
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
| /** | |
| * A TextureAtlasFont extends Impact's Font class to allow looking up a font's bitmap from the TexturePacker JSON array | |
| * | |
| * Author: @jessefreeman | |
| * | |
| * Version 0.1 - 2013/02/19 | |
| * | |
| * Usage: | |
| * DemoTextureAtlasFont = ig.Game.extend({ | |
| * textureImage: new ig.Image('media/font.png'), |