Skip to content

Instantly share code, notes, and snippets.

View IceDragon200's full-sized avatar

Corey Powell IceDragon200

View GitHub Profile
@IceDragon200
IceDragon200 / flags_table.txt
Last active April 7, 2018 02:22
RMVXA Tileset Flags
# ----------------------------------------------------------------------------------------------------------------------------- #
# | nibble / half byte | 0 - passable | 0 - disabled | 0 - passable |
# | | 1 - impassable | 1 - enabled | 1 - impassable |
# ----------------------------------------------------------------------------------------------------------------------------- #
# | Terrain Tag (4bits) | Vehicle Pass. (3bits) | Special Flags (4bits) | Passages (5bits) |
# ----------------------------------------------------------------------------------------------------------------------------- #
# | | Airship | Ship | Boat | Damage Floor | Counter | Bush | Ladder | Star | Top | Right | Left | Bottom |
# ------------------------------------------------------------------------------------------------------------------------
@IceDragon200
IceDragon200 / READTHIS.md
Last active August 29, 2015 14:15
My launch script for kag

Aka a README

So to use all this stuff, run the setup_libpng.sh

bash setup_libpng.sh

Be sure to check that you have a libpng15.so in your newly created usr directory under your home, NOT THE ROOT /usr, your HOME should now have a newly created usr directory. Anyway, check to ensure you have a libpng15.so in the lib (home/your_username/usr/lib/libpng15.so).

If all went well, copy the bKAG.sh to your copy of KAG, place it in the same directory as the KAG executable. Now run the bKAG.sh instead of the KAG executable

{
"autoformat_on_save": true,
"user_defined_syntax_mode_mapping": {
// For example:
/*
"arduino": "c",
"pde": "java",
"apex": "java"
*/
"angelscript": "c",
@IceDragon200
IceDragon200 / reactive.rb
Created April 3, 2015 21:57
Prototype reactive API for moon
module Reactive
module Observable
def subscribe(listener)
listeners.push listener
listener
end
def unsubscribe(listener)
listeners.delete listener
end
module Enumerable
def each_uniq(&block)
return to_enum :each_uniq unless block_given?
uniq_map = {}
each do |*a|
next if uniq_map.key?(a)
uniq_map[a] = true
block.call(*a)
end
end
#include <mruby.h>
#include <mruby/class.h>
#include <mruby/data.h>
#include <mruby/numeric.h>
#include <SFML/Graphics/Rect.hpp>
static struct RClass *int_rect_class;
static struct RClass *float_rect_class;
static inline mrb_value
class Object
# Attempts to wrap the object into an Array if it isnt already one.
#
# @return [Array]
def to_arylist
[self]
end
end
class Array
@IceDragon200
IceDragon200 / __gemmy__.sh
Last active August 29, 2015 14:20
My scripts for syntax checking, bundle updating, bundle testing, installing local gems
#!/usr/bin/env bash
crawl_ruby_check . &&
bundle update --local &&
bundle exec rspec &&
gemmy
require 'thread'
class Worker
# I couldn't come up with anything better, so just bear with me.
STOP = Object.new
# @!attribute in
# @return [Queue] input queue/channel
attr_accessor :in
# @!attribute out
# mruby-moon load
engine = Moon::Engine.new do |e, delta|
step e, delta
end
engine.setup
require 'core/load'
require 'scripts/load'