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
Please use new version here: https://github.com/Slipyx/Francoise |
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
/* | |
** lcmwc | |
** A Complimentary-Multiply-With-Carry Random Number Generator library for Lua | |
** | |
** Copyright (C) 2011-2012 Josh Koch. | |
** | |
** Permission is hereby granted, free of charge, to any person obtaining a copy | |
** of this software and associated documentation files (the "Software"), to | |
** deal in the Software without restriction, including without limitation the | |
** rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
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
/* | |
=============================================================================== | |
A C++ port of a speed-improved simplex noise algorithm for 2D in Java. | |
Based on example code by Stefan Gustavson ([email protected]). | |
Optimisations by Peter Eastman ([email protected]). | |
Better rank ordering method by Stefan Gustavson in 2012. | |
C++ port and minor type and algorithm changes by Josh Koch ([email protected]). | |
This could be speeded up even further, but it's useful as it is. |
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
// ============================================================================ | |
// Vec2f.hpp | |
// Wrapper and helper lib to the vectorial vec2f class | |
// Made available under the public domain | |
// ============================================================================ | |
#ifndef __VEC2F_H__ | |
#define __VEC2F_H__ | |
#include "vectorial/vec2f.h" |
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
// ============================================================================ | |
// Sprite.cs | |
// | |
// A XNA class that resembles a sprite. Has properties such as position, scale, | |
// and rotation that can be set. Calling Sprite.Draw( SpriteBatch ) will then | |
// call SpriteBatch.Draw and pass in each of the Sprites properties. Also | |
// contains helper methods like Move and Scale that will change the Sprite's | |
// properties using a delta that gets added to the previous property's value. | |
// ============================================================================ |
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
// slumod | |
// simple utility to extract all files from an Unreal umod file | |
// only tested with UT99 umods | |
// reference: http://wiki.beyondunreal.com/Legacy:UMOD/File_Format | |
// doesn't preserve directories. extracts to same dir as executable | |
// umod file needs to be renamed to pack.umod and placed in same dir | |
// public domain | |
#include <stdio.h> | |
#include <stdlib.h> |
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
/* | |
MT19937 with initialization improved 2002/2/10. | |
Coded by Takuji Nishimura and Makoto Matsumoto. | |
Faster version using Shawn Cokus's optimization and | |
Matthe Bellew's simplification. | |
Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura, | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without |
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
// Must manually link to LIBPAD.LIB for compiling | |
#include <LIBPAD.H> | |
// Pad terminal type masks. First four bits of padData[1] | |
#define PADTT_DIG 0x40 // 16 button controller (no analog) | |
#define PADTT_ANA 0x70 // Analog controller | |
// All 16 16bit button bit masks. Button state bit is 0 if pressed. | |
#define PADLeft 0x8000 | |
#define PADDown 0x4000 |
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
// redshirt2 file decryption/encryption... in squirrel! | |
// reads and writes file contents using stdin/stdout. | |
// algorithm adapted from dx9's php implementation. | |
// http://forums.introversion.co.uk/viewtopic.php?f=29&t=13803&start=60#p485984 | |
// | |
// usage: sq redshirt2.nut < infile.txt > outfile.txt | |
// the key to use for both decrypting and encrypting | |
// can be a byte array of any size | |
local thekey = [ |
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
/* | |
** A Sega Genesis/Megadrive ROM checksum validator. | |
** Reads existing checksum and then calculates the valid one. | |
** Attempts to fix if existing was not valid. | |
*/ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdint.h> |
OlderNewer