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 UnityEngine; | |
using System.Collections; | |
public class ScreenShake : MonoBehaviour { | |
//generic shake script | |
// Use this for initialization | |
void Start () { | |
} |
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 CannonBoom : MonoBehaviour { | |
public GameObject projBlueprint; | |
public Transform projOrigin; | |
Quaternion newRotation; | |
public GameObject cannon; | |
public float projForce = 300f; |
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 tumblrAutoPager={url:"/web/20150212183510/http://proto.jp/",ver:"0.1.7",rF:true,gP:{},pp:null,ppId:"",LN:location.hostname,init:function(){if($("autopagerize_icon")||navigator.userAgent.indexOf('iPhone')!=-1)return; | |
var tAP=tumblrAutoPager; | |
var p=1; | |
var lh=location.href; | |
var lhp=lh.lastIndexOf("/page/"); | |
var lht=lh.lastIndexOf("/tagged/"); | |
if(lhp!=-1){p=parseInt(lh.slice(lhp+6)); | |
tAP.LN=lh.slice(7,lhp); | |
}else if(lht!=-1){tAP.LN=lh.slice(7); | |
if(tAP.LN.slice(tAP.LN.length-1)=="/")tAP.LN=tAP.LN.slice(0,tAP.LN.length-1); |
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
Enemy baddie; //declaring a single enemy object called baddie | |
Enemy[] baddies; //declaring an array of enemy objects called baddies | |
void setup(){ | |
size(1280,720); | |
baddies = new Enemy[10]; //how many in the array? | |
for (int i =0; i < baddies.length; i++){ | |
baddies[i] = new Enemy(); //initialize each one of the baddies in the array |
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 grab : MonoBehaviour { | |
// Use this for initialization | |
void Start () { | |
} | |
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
//introduce setup and draw into your hw from last week | |
//replace "hard-coded" values with variables that you declare and assign! | |
float xPos; | |
void setup(){ | |
size(1280,720); | |
xPos = 5; | |
//frameRate(1); |
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
//introduce setup and draw into your hw from last week | |
//replace "hard-coded" values with variables that you declare and assign! | |
int xPos; | |
void setup(){ | |
size(1280,720); | |
xPos = 5; | |
//frameRate(1); | |
} |
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 BasicConditionals : MonoBehaviour { | |
public bool goToWork; | |
public GameObject mover; | |
// Use this for initialization | |
void Start () { |
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 BasicConditionals : MonoBehaviour { | |
//make new public bool and GameObjects | |
//remember that public means they can be edited in the Unity editor and by other scripts | |
public bool goToWork; | |
public GameObject mover; |
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
void setup(){ | |
size(1000,1000); | |
} | |
void draw(){ | |
background(200); | |
} |