Skip to content

Instantly share code, notes, and snippets.

@rakkarage
rakkarage / AStarPathFinder.h
Created March 11, 2012 19:55
AStarPathFinder
@interface AStarNode : NSObject
{
@public
AStarNode *parent;
CGPoint point;
NSInteger g;
NSInteger h;
}
+ (id)nodeAtPoint:(CGPoint)p;
@rakkarage
rakkarage / HKTMXLayer.m
Created March 22, 2012 00:09
HKTMXTiledMap: anytime onetime animations
/*
* HKTMXTiledMap
*
* cocos2d-extensions
* https://github.com/cocos2d/cocos2d-iphone-extensions
*
* HKASoftware
* http://hkasoftware.com
*
* Copyright (c) 2011 HKASoftware
/*
* Kobold2D™ --- http://www.kobold2d.org
*
* Copyright (c) 2010-2011 Steffen Itterheim.
* Released under MIT License in Germany (LICENSE-Kobold2D.txt).
*/
#import "cocos2d.h"
enum
using UnityEngine;
namespace ca.HenrySoftware.Deko
{
public class Singleton<T> : MonoBehaviour where T : MonoBehaviour
{
protected static T instance;
public static T Instance
{
get
{
@rakkarage
rakkarage / DataAnimationEditor.cs
Created June 19, 2014 14:35
custom tk2d sprite & animation picker
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace ca.HenrySoftware.Deko
{
[CustomPropertyDrawer(typeof(DataAnimation))]
public class DataAnimationEditor : PropertyDrawer
{
private static float _offset = EditorGUIUtility.singleLineHeight;
private tk2dGenericIndexItem[] _indexes = null;
using UnityEngine;
public class GridTexture
{
public enum Type
{
LightChecked,
MediumChecked,
DarkChecked,
BlackChecked,
LightSolid,
using System;
using System.Security.Cryptography;
using UnityEngine;
public static class Random
{
private static int _offset = 0;
private static byte[] _buffer = new byte[1024];
private static RNGCryptoServiceProvider _random = new RNGCryptoServiceProvider();
private static void Fill()
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using UnityEngine;
public class Loom : MonoBehaviour
{
public static int maxThreads = 8;
static Loom _current;
static bool initialized;
@rakkarage
rakkarage / cloudSettings
Last active December 2, 2019 22:50
Visual Studio Code Sync Settings Gist
{"lastUpload":"2019-12-02T22:50:44.036Z","extensionVersion":"v3.4.3"}
@rakkarage
rakkarage / tasks.json
Last active March 10, 2017 22:43
vscode powershell dotnet release build
{
"version": "0.1.0",
"command": "powershell",
"isShellCommand": true,
"showOutput": "silent",
"args": [
"-Command"
],
"tasks": [
{