Skip to content

Instantly share code, notes, and snippets.

@Midiman
Midiman / gameplay.lua
Created December 23, 2016 00:15
Behavior example
local anchor = require "libs.anchor"
local baton = require "libs.baton.baton"
local cpml = require "libs.cpml"
local bump = require "libs.bump.bump"
local behavior = require "libs.knife.knife.behavior"
local _colors = {
Background = cpml.color(34, 32, 52, 255),
Player = cpml.color(203, 219, 252, 255),
Collision = cpml.color(102, 57, 49, 255)
#include <stdexcept>
#include <Windows.h>
#include <Psapi.h>
#include <detours.h>
#include <d3d9.h>
#include <d3dx9.h>
#define PI 3.14159F
char **game_ptr;
#include <Windows.h>
#include <TlHelp32.h>
#include <Psapi.h>
int main()
{
const auto *exe = "GuiltyGearXrd.exe";
const auto *dll = "ggxrd_hitbox_overlay.dll";
const auto snap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
@Midiman
Midiman / damage_calc.lua
Created October 15, 2015 06:24
Skullgirls Damage Calc
require("io")
local Moves = {
stLP = {cmd = "5LP", name = "Standing Jab", hits = 1, dmg = 300},
stMP = {cmd = "5MP", name = "Standing Strong", hits = 1, dmg = 550},
stHP = {cmd = "5HP", name = "Standing Fierce", hits = 1, dmg = 100},
stLK = {cmd = "5LK", name = "Standing Short", hits = 1, dmg = 400},
stMK = {cmd = "5MK", name = "Standing Forward", hits = 1, dmg = 450},
stHK = {cmd = "5HK", name = "Standing Roundhouse", hits = 1, dmg = 1000},
crLP = {cmd = "2LP", name = "Crouching Jab", hits = 1, dmg = 200},
@Midiman
Midiman / sg-mumble.txt
Created September 1, 2015 04:56
Skullgirls Mumble
<SweetPea> Mumble Name: Skullgirls
<SweetPea> Mumble Pass: Updont
<SweetPea> port:64738
<SweetPea> IP: 76.124.231.110.
require("io")
local characters = {
test = {
Jab = "true",
},
test2 = {
Jab = "false",
}
}
@Midiman
Midiman / skullgirls_cmdline.txt
Last active August 29, 2015 14:14 — forked from shakesoda/gist:9506865
Skullgirls commandline options
-enablereplays : Enable replays in the retail version of Skullgirls
-c config_file : Use the specified configuration file instead of the default
-defaultkeys : Reset all keybinds
-log : Enable logging
-fs : Run in fullscreen
-fw : Run in fullscreen windowed
-res blahxblah : Set the screen resolution, where blah is a a number
-sc : Set the screen rendering scale; useless?
-ignorefocus : Let's the game take input despite not being focused
-vjoyfix : always poll joystick pov hats? I don't know the context of this. irc says ps3 controllers
@Midiman
Midiman / Main.cpp
Last active August 29, 2015 14:07
Naive Pango Font Renderer
#include <iostream>
#include <vector>
#include <string>
#include <stdexcept>
#include <clocale>
#include <cstring>
#include <cwchar>
#include <cmath>
#include <cstdio>
@Midiman
Midiman / sm5_check.md
Last active August 29, 2015 14:02
StepMania 5 Checklist
  • Theme
    • Fallback
    • Clean up /Scripts/02 Color
    • Clean up /Sounds
    • Current Theme
    • Remove theme options
    • Clean up /BGAnimations
    • Clean up /Sounds
    • New Theme
  • Decide prelim color palettes
CC := clang
TARGET := game
AL_CFLAGS := -Ilib/allegro/include
AL_LDFLAGS := -Llib/allegro/lib
GLIB_CFLAGS := -Ilib/glib -Ilib/glib/glib
GLIB_LDFLAGS := -Llib/glib/glib/.libs
CFLAGS := -g -Wall $(AL_CFLAGS) $(GLIB_CFLAGS)
LDFLAGS := $(AL_LDFLAGS) $(GLIB_LDFLAGS)