Skip to content

Instantly share code, notes, and snippets.

Avatar

Igor starry-abyss

View GitHub Profile
@starry-abyss
starry-abyss / readme.txt
Last active Aug 30, 2019
Jailbreak (PuzzleScript Script)
View readme.txt
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@starry-abyss
starry-abyss / readme.txt
Created May 10, 2018
PuzzleScript Game
View readme.txt
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
View gist:9d8f81fbe10dc41fc8e530ab84d07d22
title Two and a Half
author scorched
homepage igorsgames.itch.io
color_palette 2
(debug)
background_color black
text_color lightgrey
key_repeat_interval 0.3
View MedvedScaleMode.hx
package;
import flixel.FlxG;
import flixel.system.scaleModes.BaseScaleMode;
class MedvedScaleMode extends BaseScaleMode
{
/*private var fixedWidth:Bool = false;
private var fixedHeight:Bool = false;*/
@starry-abyss
starry-abyss / ChangeLightScript.cs
Created Jun 9, 2016
Storing ambient reflection in Unity 5 for runtime switching
View ChangeLightScript.cs
using UnityEngine;
using System.Collections;
using UnityEngine.Rendering;
public class ChangeLightScript : MonoBehaviour {
public Light sceneLight;
public Color fogColor;
public Cubemap nightSkyReflection;
SphericalHarmonicsL2 ambientProbeNight;
@starry-abyss
starry-abyss / quick_debugger_windows.hx
Created May 21, 2016
A cut from my project for making debug tracker windows more interactive
View quick_debugger_windows.hx
// objectTrackerWindows is declared as Map<BaseObject, Window>
// BaseObject is my base class for objects, you can replace it with FlxSprite
for (object in objectTrackerWindows.keys())
{
var window = objectTrackerWindows.get(object);
if (!object.alive)
{
window.close();
objectTrackerWindows.remove(object);
@starry-abyss
starry-abyss / fancy_debug_draw.hx
Created May 16, 2016
Based on old forked version of HaxeFlixel (can be rewritten for official one), for future use :-)
View fancy_debug_draw.hx
override function drawDebugBoundingBox(gfx: Graphics, rect:FlxRect, allowCollisions:Int)
{
var drawX = rect.x;// + offset;
var drawY = rect.y;// + offset;
var offset = 2;
var offset2 = 2;
/*var offset2x = 0;
var offset2y = 0;*/