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
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;*/ | |
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
// 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); |
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; | |
import flixel.FlxG; | |
import flixel.system.scaleModes.BaseScaleMode; | |
class MedvedScaleMode extends BaseScaleMode | |
{ | |
/*private var fixedWidth:Bool = false; | |
private var fixedHeight:Bool = false;*/ | |
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
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 |
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
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 UnityEngine.Rendering; | |
public class ChangeLightScript : MonoBehaviour { | |
public Light sceneLight; | |
public Color fogColor; | |
public Cubemap nightSkyReflection; | |
SphericalHarmonicsL2 ambientProbeNight; |
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
var audioplayers = [] | |
var audioPlayerHacking | |
var randomPitch = {} | |
var volume = {} | |
func play(soundName): | |
var audioplayer = null | |
var index = -1 | |
for i in range(audioplayers.size()): |