This file contains hidden or 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
/* | |
* OpenSimplex Noise in Java. | |
* by Kurt Spencer | |
* | |
* v1.1 (October 5, 2014) | |
* - Added 2D and 4D implementations. | |
* - Proper gradient sets for all dimensions, from a | |
* dimensionally-generalizable scheme with an actual | |
* rhyme and reason behind it. | |
* - Removed default permutation array in favor of |
This file contains hidden or 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
TextButton.TextButtonStyle buttonStyle = new TextButton.TextButtonStyle(); | |
buttonStyle.font = new BitmapFont(); | |
buttonStyle.font.scale(2f); | |
buttonStyle.fontColor = Color.WHITE; | |
buttonStyle.overFontColor = Color.LIGHT_GRAY; | |
buttonStyle.downFontColor = Color.GRAY; | |
newGameButton = new TextButton("New Game", buttonStyle); | |
continueButton = new TextButton("Continue", buttonStyle); | |
optionsButton = new TextButton("Options", buttonStyle); |
This file contains hidden or 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 UnityEngine.UI; | |
/// <summary> | |
/// SpriteCreator, a runtime atlassing system for Unity Sprites. | |
/// Tries to not create any unneccessary textures, cleans all references when Flushed. | |
/// Can use with or without the atlassing, just call AddToAtlas and Build when using atlasses. | |
/// Full control over which atlases to add images to. |
This file contains hidden or 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
/** | |
* K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex") | |
* | |
* More language ports, as well as legacy 2014 OpenSimplex, can be found here: | |
* https://github.com/KdotJPG/OpenSimplex2 | |
*/ | |
public class OpenSimplex2S { | |
private static final long PRIME_X = 0x5205402B9270C86FL; |