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
#region Using Statements | |
using System; | |
using System.Collections.Generic; | |
using Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Content; | |
using Microsoft.Xna.Framework.Graphics; | |
using Microsoft.Xna.Framework.Input; | |
using Microsoft.Xna.Framework.Storage; | |
using Microsoft.Xna.Framework.GamerServices; | |
#endregion |
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
abstract public class Screen : ITranslatable | |
{ | |
protected ScreenSystem _screenSystem; | |
protected SpriteBatch _spriteBatch; | |
protected GamePadState _newGamepadState; | |
protected GamePadState _oldGamepadState; | |
protected KeyboardState _newKeyState; | |
protected KeyboardState _oldKeyState; | |
protected MouseState _newMouseState; | |
protected MouseState _oldMouseState; |
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
sampler baseSample : register(s0); | |
sampler postSource : register(s1); | |
float2 renderSize; | |
float4 LiquidPS(float2 texCoord:TEXCOORD0) : COLOR0 | |
{ | |
// Base texture has density information in the red channel, | |
// and x and y velocity in the green and blue channels. | |
float4 base = tex2D(baseSample, texCoord); | |
float alpha = step(0.5, base.a) * 0.8; |
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.Generic; | |
public class BaseDestructibleScript : MonoBehaviour | |
{ | |
public List<string> tags; | |
public PhysicsMaterial2D chunkPhysicsMaterial; | |
virtual public void onCollision(GameObject collisionObject) | |
{ |
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; | |
public class ShrinkAndDestroyScript : MonoBehaviour | |
{ | |
public float time = 0.75f; | |
public iTween.EaseType easeType; | |
public float delay = 0f; | |
public bool destroyParent = false; |
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
struct PixelShaderOutput | |
{ | |
float4 ColorA : COLOR0; | |
float4 ColorB : COLOR1; | |
float4 ColorC : COLOR2; | |
}; | |
PixelShaderOutput PixelShaderFunction(VertexShaderOutput input) | |
{ | |
PixelShaderOutput output; |
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 "Name" { | |
Properties { | |
_Name ("display name", Range (min, max)) = number | |
_Name ("display name", Float) = number | |
_Name ("display name", Int) = number | |
_Name ("display name", Color) = (number,number,number,number) | |
_Name ("display name", Vector) = (number,number,number,number) |