This file contains 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
/** | |
* | |
* By Dana Muise 12/8 | |
* generate n number of objects within a circle | |
* Have another object animate to each and remove it | |
*/ | |
// Load in the required modules | |
const Scene = require('Scene'); |
This file contains 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
Shader "custom/StandardSpecularPBR" | |
{ | |
Properties | |
{ | |
_Color ("Color", Color) = (1,1,1,1) | |
_MetallicTex ("Metallic (R)", 2D) = "white" {} | |
_SpecColor ("Specular Color", Color) = (1, 1, 1, 1) | |
} | |
SubShader | |
{ |
This file contains 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
varying vec2 hdConformedUV; | |
varying vec2 uv; | |
uniform sampler2D inputImage; | |
uniform int passIndex; | |
uniform vec2 uRenderSize; | |
uniform float uTime; | |
float random (in vec2 st) | |
{ | |
return fract(sin(dot(st.xy, vec2(12.9898,78.233)))* 43758.5453123); |
This file contains 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
varying vec2 hdConformedUV; | |
varying vec2 uv; | |
uniform sampler2D inputImage; | |
uniform int passIndex; | |
uniform vec2 uRenderSize; | |
uniform float uTime; | |
uniform float uPixelRes; // For UI parameters | |
uniform sampler2D pixelate; //pass 0 | |
uniform sampler2D colorize; //pass 1 | |
uniform sampler2D grid; //pass2 |
This file contains 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
<html> | |
<head> | |
<title>Snake Game</title> | |
<style> | |
canvas{ | |
display: block; | |
margin: 0 auto; | |
} | |
</style> | |
</head> |
This file contains 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace ProjectKing { | |
/** | |
//Add this script to a gameobject that you would like to instantiate a particle effect object | |
//Also optimizes particle emmisions based on frame rate drop | |
// | |
**/ |
This file contains 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
Shader "PACKT/Glass" { | |
// Custom glass shader by Dana Muise | |
// Mutli pass functions provide transparent effects on both sides of geometry. | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
_Metallic ("Metallic", Range(0,1)) = 0.0 |
This file contains 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
package PJ4; | |
import java.util.*; | |
/* A Console based poker game by Dana Muise (SFSU 913048115) 6/2016 | |
* This is the main poker game class. | |
* It uses Decks and Card objects to implement poker game. | |
*/ | |
public class MyPokerGame { |
This file contains 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; | |
/* | |
This script controls generic non-player characters that follow another character. | |
*/ | |
public class Follow_NonPlayer : MonoBehaviour { | |
Animator anim; | |
NavMeshAgent agent; |
This file contains 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; | |
/* | |
This script controls generic non-player characters with NavAgent component that walk around the | |
envronment, visiting waypoints and avoiding collisions. | |
*/ | |
public class Generic_NonPlayer : MonoBehaviour { | |
private GameObject[] wayPoints; |
NewerOlder