Skip to content

Instantly share code, notes, and snippets.

View Geokureli's full-sized avatar
🏠

George Kurelic Geokureli

🏠
View GitHub Profile
package states;
import flixel.util.FlxColor;
import flixel.FlxG;
import flixel.FlxSprite;
class DoNothingShaderTestState extends flixel.FlxState
{
override function create()
{
typedef JsonMapRaw<T> =
{
var keys:Array<String>;
var values:Array<T>;
}
/**
* A list of keys and values, used to serialize maps, usually for JSON or external saving.
* Note: Not meant to replace maps in any way, only meant for converting to and from json.
*/
package flixel.addons.display;
import flixel.FlxBasic;
import flixel.FlxCamera;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.graphics.FlxGraphic;
import flixel.graphics.frames.FlxFrame;
import flixel.math.FlxMatrix;
import flixel.math.FlxPoint;
package;
import flixel.FlxState;
import flixel.graphics.frames.FlxAtlasFrames;
class PlayState extends FlxState
{
var sprite:FlxSprite;
override public function create():Void
{
<?xml version="1.0" encoding="utf-8"?>
<TextureAtlas imagePath="player.png">
<!-- Created with Adobe Animate version 20.0.3.25487 -->
<!-- http://www.adobe.com/products/animate.html -->
<SubTexture name="idle0000" x="0" y="0" width="293" height="442" frameX="0" frameY="0" frameWidth="295" frameHeight="442"/>
<SubTexture name="idle0001" x="333" y="0" width="293" height="442" frameX="0" frameY="0" frameWidth="295" frameHeight="442"/>
<SubTexture name="idle0002" x="666" y="0" width="293" height="442" frameX="0" frameY="0" frameWidth="295" frameHeight="442"/>
<SubTexture name="idle0003" x="999" y="0" width="292" height="442" frameX="-1" frameY="0" frameWidth="295" frameHeight="442"/>
<SubTexture name="idle0004" x="1331" y="0" width="292" height="442" frameX="-1" frameY="0" frameWidth="295" frameHeight="442"/>
<SubTexture name="idle0005" x="1663" y="0" width="292" height="442" frameX="-1" frameY="0" frameWidth="295" frameHeight="442"/>
class Person extends FlxGroup
{
public var personG:FlxSprite = new FlxSprite();
// unrelated code removed for readibility
}
class PersonPlayer extends Person
{
var player:Person;
package ui;
import utils.Sounds;
import io.newgrounds.objects.Error;
import data.Save;
import flixel.FlxG;
import flixel.util.FlxTimer;
import io.newgrounds.NG;
package vfx;
class EdgeDither extends flixel.system.FlxAssets.FlxShader
{
@:glFragmentSource('
#pragma header
const float scale = 4.0;
float checker(vec2 coord)
package fx;
class Dither extends flixel.system.FlxAssets.FlxShader
{
@:glFragmentSource('
#pragma header
const float scale = 2.0;
float checker(vec2 coord)
typedef OgmoEntityData<T>
= {
name :String,
id :Int,
x :Int,
y :Int,
rotation:Float,
originX :Int,
originY :Int,
values :T