Skip to content

Instantly share code, notes, and snippets.

🤘

Damien Mayance valryon

🤘
Block or report user

Report or block valryon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@valryon
valryon / langoliers.rb
Created Feb 29, 2020 — forked from robinsloan/langoliers.rb
Tweet delete script
View langoliers.rb
require "rubygems"
require "twitter"
require "json"
# things you must configure
TWITTER_USER = "your_username"
MAX_AGE_IN_DAYS = 1 # anything older than this is deleted
# get these from dev.twitter.com
CONSUMER_KEY = "your_consumer_key"
@valryon
valryon / CameraShaker.cs
Created Nov 20, 2017
Simple camera shaker for Unity3D
View CameraShaker.cs
using UnityEngine;
/// <summary>
/// Shake shake shake the screen!
/// </summary>
public class CameraShaker : MonoBehaviour
{
#region Members
private static CameraShaker instance;
private Transform camTransform;
@valryon
valryon / Extruder.cs
Created Nov 18, 2016
Extrude a 2D sprite to a mesh from a Polygon Collider in Unity3D
View Extruder.cs
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
/// <summary>
///
/// </summary>
/// <remarks>Source: https://forum.unity3d.com/threads/trying-extrude-a-2d-polygon-to-create-a-mesh.102629/ </remarks>
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer), typeof(PolygonCollider2D))]
public class ExtrudeSprite : MonoBehaviour
@valryon
valryon / Water2D.shader
Created Oct 10, 2016
Colored Water2D shader with a normal map for Unity
View Water2D.shader
Shader "Custom/Water2D Surface" {
Properties {
_Color("Color", Color) = (1,1,1,1)
_MainTex ("Normalmap", 2D) = "bump" {}
_Magnitude("Magnitude", Range(0,1)) = 0.05
}
Category {
// We must be transparent, so other objects are drawn before this one.
@valryon
valryon / Bezier.cs
Created Sep 23, 2015
Bezier curves in Unity
View Bezier.cs
/// <summary>
/// Easy and simple Bezier curves for Unity
/// </summary>
/// <remarks>http://devmag.org.za/2011/04/05/bzier-curves-a-tutorial/ </remarks>
public static class Bezier
{
/// <summary>
///
/// </summary>
/// <param name="t">Time, between 0 and 1</param>
@valryon
valryon / Interpolators.cs
Last active Oct 10, 2017
Interpolators coroutine for Unity!
View Interpolators.cs
// 2015 - Pixelnest STudio
// <summary>
/// Coroutine helpers for interpolateors
/// </summary>
public class Interpolators
{
public readonly static AnimationCurve LinearCurve;
public readonly static AnimationCurve EaseOutCurve;
public readonly static AnimationCurve EaseInCurve;
public readonly static AnimationCurve EaseInOutCurve;
@valryon
valryon / fusemapping.txt
Last active Aug 29, 2015
Fuse mapping for FaceShift
View fusemapping.txt
bs = BrowsD_L = Facial_Blends.BrowsIn_Left = 100
bs = BrowsD_R = Facial_Blends.BrowsIn_Right = 100
bs = BrowsU_C = Facial_Blends.BrowsOuterLower_Left = 100
bs = BrowsU_C = Facial_Blends.BrowsOuterLower_Right = 100
bs = BrowsU_L = Facial_Blends.BrowsUp_Left = 100
bs = BrowsU_R = Facial_Blends.BrowsUp_Right = 100
bs = CheekSquint_L = Facial_Blends.Squint_Left = 100
bs = CheekSquint_R = Facial_Blends.Squint_Right = 100
bs = EyeBlink_L = Facial_Blends.Blink_Left = 100
bs = EyeBlink_R = Facial_Blends.Blink_Right = 100
@valryon
valryon / LaserScript.cs
Created Sep 23, 2014
A simple expendable Laser script for Unity
View LaserScript.cs
using UnityEngine;
using System.Collections;
public class LaserScript : MonoBehaviour
{
[Header("Laser pieces")]
public GameObject laserStart;
public GameObject laserMiddle;
public GameObject laserEnd;
@valryon
valryon / TouchTapControl.cs
Last active Oct 10, 2017
InControl Tap zone for touch controls
View TouchTapControl.cs
using UnityEngine;
namespace InControl
{
public class TouchTapControl : TouchControl
{
[Header("Dimensions")]
public Rect activeArea = new Rect(0.0f, 0.0f, 0.5f, 1.0f);
[Header("Options")]
@valryon
valryon / BulletMLPoolLink.cs
Created Jun 27, 2014
Integrate a pooling system with BulletML for Unity
View BulletMLPoolLink.cs
You can’t perform that action at this time.