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; | |
using System.Collections.Generic; | |
public class DenomMaker | |
{ | |
public static List<int> GetDenoms(int[] denoms, int totalValue, int numCoins) | |
{ | |
List<int> resultCoins = new List<int>(numCoins+10); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<tutorials> | |
<tutorial slug="welcome" name="Welcome!"> | |
<!--welcome and explain goal of the game--> | |
<step> | |
<create_box xy="160,260">Welcome to TRAINYARD!</create_box> | |
<delay time="2" /> | |
<reset_allActions /> | |
<create_box xy="160,300">This tutorial will explain[br]how to solve puzzles</create_box> |
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
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
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 UnityEditor; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
using System.Collections.Generic; | |
using System; | |
class RXSolutionFixer : AssetPostprocessor |
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
//from http://forum.unity3d.com/threads/68402-Making-a-2D-game-for-iPhone-iPad-and-need-better-performance | |
Shader "Futile/Basic" //Unlit Transparent Vertex Colored | |
{ | |
Properties | |
{ | |
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {} | |
} | |
Category |
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
Initializing client with transport "websocket" | |
node: ../src/node.cc:1210: ssize_t node::DecodeWrite(char*, size_t, v8::Handle<v8::Value>, node::encoding): Assertion `b[1] == 0' failed. |
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
someSprites //your list of sprites you want to check through | |
Vector2 checkPoint = new Vector2(155,100); //the point you want to check | |
List<FSprite> overlapSprites = new List<FSprite>(); //a list of sprites that contain the point | |
foreach(FSprite sprite in someSprites) | |
{ | |
//"this" should be whatever node you're currently in, or Futile.stage | |
Vector2 localPoint = sprite.LocalToLocal(this, checkPoint); |
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
package ca.struct | |
{ | |
import flash.display.Bitmap; | |
import flash.display.BitmapData; | |
import flash.display.Sprite; | |
import flash.events.Event; | |
[SWF (width=500,height=400,backgroundColor=0x000000,frameRate=60)] | |
public class BitmapHierarchyTester extends Sprite | |
{ |
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 System.Collections.Generic; | |
using System.Diagnostics; | |
public class Thing | |
{ | |
public float a; | |
public float b; | |
public float c; | |
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; | |
public class Bench : MonoBehaviour | |
{ | |
static public bool SHOULD_DEBUG = true; | |
static public Color defaultColor = Color.white; |
OlderNewer