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
//declaring variable to keep track of our rectangle parameters | |
int rectX, rectY, rectW, rectH; | |
int lvlNum; | |
void setup(){ | |
size(1280,720); | |
rectX = width/2; | |
rectY = height/3; | |
rectW = 300; |
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 Hangry : MonoBehaviour { | |
public GameObject fishPellet; | |
Vector3 destination; | |
public float howHungry; | |
bool hungry; |
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
int howMany; | |
void setup(){ | |
size(1280,720); | |
//use center mode so it doesnt draw the first one off-screen | |
ellipseMode(CORNER); | |
howMany = 5; | |
} |
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
PImage face; | |
float xPos, yPos; | |
float imgDia; | |
float xSpeed, ySpeed; | |
void setup(){ | |
size(1280, 720); | |
face = loadImage("face.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
int howMany = 10; | |
//set up new arrays(lists) of on/off state, x and y positions. use howMany to set up the right number of positions | |
Boolean[] onOff = new Boolean[howMany]; | |
int[] xPos = new int[howMany]; | |
int[] yPos = new int[howMany]; | |
//keep track of the diameter | |
int dia = 50; |
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 Hangry : MonoBehaviour { | |
public GameObject fishPellet; | |
public float howHangry; | |
bool hungry; | |
public float sphereSize = 10f; |
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 Scott : MonoBehaviour { | |
public float scottStrength = 1000f; | |
public AudioClip explosionSound; | |
public GameObject blueprint; //which prefab/gameobject would we like to create? | |
// Update is called once per frame |
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
float posX, posY; | |
float speedX, speedY; | |
float size; | |
float gravity = 0.4; | |
boolean isMoving; | |
PImage cat = new PImage(); | |
void setup(){ | |
size(1280,720); |
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
PVector ball, ballSpeed, ballSize; | |
PVector gravity; | |
PVector[] points = new PVector[2]; | |
boolean above; | |
int score = 0; | |
boolean angleUp; | |
float value = 0; | |
void setup() { |
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
float posX, posY; | |
float speedX, speedY; | |
float size; | |
float gravity = 0.4; | |
boolean isMoving; | |
PImage cat = new PImage(); | |
void setup(){ | |
size(1280,720); |