Skip to content

Instantly share code, notes, and snippets.

View sabotai's full-sized avatar

Juno AM sabotai

View GitHub Profile
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TriggerCounterTeleport : MonoBehaviour
{
public Transform[] requiredAreasToVisit;
public bool[] requiredAreasVisited;
public Transform teleportPositionMarker;
public Transform thingToTeleport;
@sabotai
sabotai / gist:1e0df46990576ffa41b370922e44843d
Created January 29, 2021 17:53
Blackboard Getting Started Message
<p><strong> <img src="https://bbhosted.cuny.edu/bbcswebdav/pid-50136002-dt-content-rid-393874696_1/xid-393874696_1" width="381" height="286" alt="Simpsons Ralph Waving" style="display: block; margin-left: auto; margin-right: auto;" /> </strong></p>
<p><span style="background-color: #ffff00;"><span style="background-color: #ffff00;"><strong><a href="https://docs.google.com/document/d/1L04okO07IQhSsQ-Grvo31oP-VpiRiyIOPLf21PVlF78/edit?usp=sharing" target="_top">Syllabus with Course Overview</a> </strong></span></span></p>
<p><strong style="font-size: 13px;">How to Begin the Course on Day 0 (5 steps)</strong></p>
<p>Please read carefully through these instructions to begin the course. All course content is hosted entirely via Ryver, which is a team communication platform similar to Slack and Discord. There are desktop and mobile applications which I recommend downloading, but it will also work in your web browser. <strong>It's imperative that you get set up in Ryver before the semester begins so as to not fall be
@sabotai
sabotai / .conkyrc
Created January 14, 2019 01:30
.conkyrc
background yes
use_xft yes
xftfont HandelGotD:size=8
xftalpha 0.5
update_interval 1.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Basic3D : MonoBehaviour {
public GameObject mover;
public Vector3 movementAmount;
// Use this for initialization
@sabotai
sabotai / GD105_S17_Week11.pde
Last active May 3, 2017 22:39
Gravity and Custom Functions
float xPos, yPos, xSpeed, ySpeed, gravity;
int size;
PImage west = new PImage();
PImage drake = new PImage();
void setup(){
size(1280,720);
@sabotai
sabotai / voronoi.pde
Created April 29, 2017 00:09
Testing Voronoi Patterns using Mesh Library
import megamu.mesh.*;
int numPoints = 20;
float[][] points = new float[numPoints][2];
PVector[] vPoints = new PVector[numPoints];
float[] xSpeed = new float[numPoints];
float[] ySpeed = new float[numPoints];
Voronoi myVoronoi;
Delaunay myDelaunay;
@sabotai
sabotai / GD205_BasicControl.cs
Created April 26, 2017 20:59
Minimal Animator Control Script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BasicControl : MonoBehaviour {
Animator myAnim;
int current;
// Use this for initialization
@sabotai
sabotai / GD105_S17_W9_Arrays.pde
Created April 20, 2017 16:51
GD105_S17_W9_Arrays
int howMany = 100;
//set up new arrays(lists) of on/off state, x and y positions. use howMany to set up the right number of positions
int[] ellipseX = new int[howMany]; //array(list) of x positions
int[] ellipseY = new int[howMany]; //array of y positions
int[] ellipseSize = new int[howMany]; //array of diameters
int[] xSpeed = new int[howMany]; //array of xSpeeds
boolean[] on = new boolean[howMany]; //array of on/off
@sabotai
sabotai / ScreenShake.cs
Created April 19, 2017 23:29
GD205_ScreenShake
using UnityEngine;
using System.Collections;
public class ScreenShake : MonoBehaviour {
//generic shake script
// Use this for initialization
void Start () {
}
@sabotai
sabotai / TimedAction.cs
Created April 19, 2017 23:27
GD205_TimedActionDemo
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TimedAction : MonoBehaviour {
//initial goTime means that's when it will start happening
public float goTime = 30;
//interval is how frequently it will run after that
public float interval = 3;