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
/* Author @jpsarda | |
* A motion streak class. | |
* | |
* Examples : | |
* | |
* // A band with constant width and color | |
motionStreak = new FMotionStreakSprite("sprite.png", // texture name | |
20, //Number of following quads | |
x => 10.0f, // width of the band function, x represents the offset in the band and 0<= x <=1 | |
x => new Color(1,1,1,1) //color of the band function, x represents the offset in the band and 0<= x <=1 |
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; | |
using System.Collections.Generic; | |
/* Author @jpsarda | |
* A drawing class. | |
* | |
* Examples : | |
* |
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; | |
/* | |
FShadowSprite is a FSprite with a shadow. | |
TODO : | |
setters for _shadowOffsetX, _shadowOffsetY, _shadowColor and _shadowAlphaRatio |
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; | |
/* | |
FBicolorSprite is a FSprite with 2 colors (bottom and top). | |
Usage : | |
FBicolorSprite bicolorSprite=new FBicolorSprite("Futile_White"); |
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; | |
/* | |
FBicolorSprite is a FSprite with 2 colors (bottom and top). | |
Usage : | |
FBicolorSprite bicolorSprite=new FBicolorSprite("Futile_White"); |
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; | |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
/* | |
A serie of 4 classes extending Futile classes in order to manage scrollable containers with scrollable buttons. |
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; | |
using System.Collections.Generic; | |
using System; | |
using System.Linq; | |
using System.Text; | |
using System.Reflection; | |
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; | |
/* | |
Displays a sub area of a sprite. Supports trimmed atlas elements. | |
Examples : | |
// left half |
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
/* | |
Usage : | |
ShakeUtil.Go(myFNode,myDurationInSeconds,myAmplitudeInPixels); | |
*/ | |
public class ShakeUtil { | |
static Dictionary<FNode, ShakeUtil> _pendings = new Dictionary<FNode, ShakeUtil>(); | |
public Vector2 oPosition; |
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; | |
/* | |
A sprite split in 2 parts, bottom, and top, each with its own color and alpha values. | |
*/ | |
public class FSplitSprite : FSprite | |
{ | |
protected Color _bottomColor=Futile.white; |
OlderNewer