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.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.IO; | |
| using System.Globalization; | |
| using ClipperLib; | |
| using TriangleNet.Geometry; | |
| using Polygon = System.Collections.Generic.List<ClipperLib.IntPoint>; | |
| using Polygons = System.Collections.Generic.List<System.Collections.Generic.List<ClipperLib.IntPoint>>; |
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
| Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
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
| #include "bhPlacement.h" | |
| float BHPlacement::cx; | |
| float BHPlacement::cy; | |
| // lua accessible functions | |
| BHPlacement::BHPlacement(lua_State *l) | |
| { | |
| } | |
| int BHPlacement::AddPiece(lua_State *l) |
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
| local edges = collectEdgePositions(self.rooms.members, self.fingerBlock) | |
| -- for each edge | |
| for i,v in ipairs(edges) do | |
| self.ghostBlock:setPosition(v.p.x, v.p.y) | |
| -- check for overlaps | |
| self.commitParent = v.r | |
| local fudged = false | |
| -- search through each room | |
| self.rooms:updateSpatialHash() | |
| if not self.rooms:overlap(self.ghostBlock, function(a, b) |
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
| require 'formula' | |
| class Libgdiplus < Formula | |
| homepage 'http://www.mono-project.com/Libgdiplus' | |
| url 'https://github.com/mono/libgdiplus/archive/2.10.tar.gz' | |
| md5 'bc601912ce8154baf5aa85de51e08b77' | |
| depends_on 'gettext' | |
| depends_on 'libtiff' | |
| depends_on 'libexif' |
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; | |
| public class GenerateVoxelLevel : MonoBehaviour { | |
| // not going to do octtrees, just totally straight forward arrays so I can get this done in 25 mins | |
| bool[,,] worldMap; | |
| bool[,,] filled; | |
| int[] digPosition; | |
| int worldSize = 40; |
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 System.Text.RegularExpressions; | |
| public class MChain { | |
| public class Node { | |
| public string content; | |
| public List<Node> followers; // just duplicate for each follower, make the random pick easier | |
| public Node(string c){ |
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
| spend one fathom all the | |
| difference to defend his skinny fingers; the | |
| air was no vulgar curiosity; because the faces and of yours; he'll do not hear | |
| me; the street, and we debated with her." | |
| "That doesn't agree heartily between my darling's nostrils only | |
| curled the bars upwards like poison!" | |
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
| private int[] A = new int[3]; | |
| private float s, u, v, w; | |
| private int i, j, k; | |
| private float onethird = 0.333333333f; | |
| private float onesixth = 0.166666667f; | |
| private int[] T; | |
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; | |
| public class renderTiles : MonoBehaviour { | |
| public Vector2 gridSize; | |
| public Vector2 worldSize; | |
| public float perlinScale, timeScale; | |
| public int spriteRow; | |
| public Color hiColor; | |
| public Color lowColor; |