Code archives/Algorithms

TitleDescriptionAuthorDate
Estimating areaEstimates total visible area from the direction of viewAndy2009-03-05
Random Maze GeneratorMazesCloseToPerfect2009-02-24
WayPointerA pathfinding programKillerX2009-02-22
Set individual bits in a bankset the individual bits in a bankAndy2009-02-03
Point In OvalIs a point inside of an oval?Nullium2008-12-25
Tic tac toe that learnsLearns... slowly but surelyNate the Great2008-12-10
Term calculatorAn algorithm that calculates the result of a mathematical termNoobody2008-11-09
Sudoku solverSolves a sudoku riddle in 1 millisecDevils Child2008-10-02
MovemouseMakes mouse bonce aroundNate the Great2008-09-26
matchPatterncompare a source String with a String expressionShadowTurtle2008-09-07
Factor CalculatorCalculates factorsschilcote2008-08-22
Random number with weightingGiven an array of weights, pick an index so probability is proportional to the corresponding weight.Warpy2008-08-21
Word MakerCreates unknown words_332008-06-23
Prime Number FinderYou put in a number and it returns 1 if it's a prime and 0 if it's notGIA_Green_Fire_2008-06-19
Alphabetical sortThis function checks two strings and tells which one is higher in alphabet.Devils Child2008-06-13
Generate Nice Terrain+LightmapTerrain Generator , with ColorMap and ultra fast LightmapingBobysait2008-06-12
DateInt()Converts date to int. Useful to stop a program running after a certain date.boomboom2008-06-09
Round a numberRound x to the nearest y!chwaga2008-05-29
ScrollerScrolling Routinepc_tek2008-05-25
AiA Good Ai ScriptThe_Black_Knight2008-05-14
2 Points into a rectangleTurns 2 Points into a rectangleMortifer Nex2008-03-24
Probability_CalculationThe Functions Fac, Binom, Bernoulli and Cumulated BernoulliDiego22008-03-16
Angle360 for B3D/B+Returns a 360 degree angle between 2 pointsmarkcw2008-03-09
Push Ai - move baddies awayMove screen parts with mouseNebula2008-01-20
2 point Angle differenceFunction Returns the differenceNebula2008-01-20
2D math functionsIntersection, line to point distance and line to line distance functionsJasu2008-01-08
Rhyme detectionDoes a line rhyme.Nebula2007-11-18
3D Short est PathAn implementation of Dijkstra's algorithm for 3DMoraldi2007-11-17
MathEx ModuleSome much-needed math functions including Curve(), RGBA(), and othersLeadwerks2007-11-06
point_in_polygonFast, compact function to determine if a point lies inside a polygon.big10p2007-11-03
IntersectionsGet intersections between line segments and arcsSubirenihil2007-10-29
CalculateDiceFor all the RPG fans here a dice functionEdzUp[SD]2007-10-20
DatestampGet the number of days since 1.1. Year 1 | Bekomme die Anzahl der Tage seit dem 1.1. Jahr 1Diego22007-09-20
Base ConverterConverts a number from one base to another.Arem2007-09-10
RND substituteGenerates random floats without to use RND()jfk EO-111102007-07-24
simple a* pathfindingan early attempt at a* pathfinding.Kalisme2007-07-17
Land generatorGenerate islandsNebula2007-07-06
PatrollingDraw patroling paths.Nebula2007-07-05
Point In PolygonCheck for point in n-sided polygon: uses crossing methodAndy_A2007-06-12
megacalculsuse strings for mathsVignoli2007-06-08
SplitSplits a string into pices by a seperator / Teilt einen String in Stücke mithilfe eines TrennersDiego22007-06-01
Urlencode / UrldecodeUrl encoder / decoder based on skn3[ac]s algorithmDiego22007-05-17
Smoothly moving object in 3DObject in 3D (sphere) smoothly passing thru random set of points (cubes) visiting them in certain time (triple cubic spline interpolation)Matt Merkulov2007-05-04
2D turret firing algorhytmsrotation, straight, wave, forestalling, simple learningMatt Merkulov2007-04-21
Point in TriangleChecks if a point in inside a triangleRob Farley2007-04-17
Trinary / TrinitätThe trinary operator as function fpr blitz/ Der Trinitätsoperator als Funktion für BlitzDiego22007-03-30
Min MaxGet the minor or major of two numbers | Die kleinere oder größere zweier Zahlen erhaltenDiego22007-03-30
Base ConverterConverts a Number from any Base to any other BaseDiego22007-03-21
"Life" on infinite fieldJ. H. Conway's Game of Life on nearly infinite fieldMatt Merkulov2007-03-15
Conway's Life: experimentsSome interesting additional stuffMatt Merkulov2007-03-14
Smoothly moving objectObject in 2D smoothly passing thru random set of points visiting them in certain time (dual cubic spline interpolation)Matt Merkulov2007-03-14
Cubic spline interpolationDrawing cubic spline what is passing thru random set of pointsMatt Merkulov2007-03-14
Lagrange interpolationDrawing Lagrange function graph what is passing thru random set of pointsMatt Merkulov2007-03-14
Conway's Game of LifeDevelopment of rectangular area filled with random cellsMatt Merkulov2007-03-13
Bank as dynamic araySnow fx exampleMatt Merkulov2007-03-13
Pac Man EditorTo accompany the Pac Man exampleVic 3 Babes2007-02-14
Pac ManSimple pathfinding in this Deluxe Pac Man exampleVic 3 Babes2007-02-14
Handy string parsing functionExtract words, characters, or symbols using delimitersAndy_A2007-02-12
Xor ChecksummingChecksum a file to detect corruption tamperingVic 3 Babes2007-02-03
Blitz2HTMLConverts Blitz to HTML for html tutorials, or printingVic 3 Babes2007-02-03
Binary Tetris in ColourUses same binary algorithm as Binary Tetris, but with colourVic 3 Babes2007-02-03
Binary TetrisAlgorithm for Tetris using only binaryVic 3 Babes2007-02-03
Calculating PrimesThe fastest way to calculate prime numbersSubirenihil2006-12-24
Simple Spline InterpolationSimple Spline Function giving y values for xMr Snidesmin2006-12-08
FAST Sieve of EratosthenesFind prime numbersAndy_A2006-12-04
Prime FinderA program that calculates if a given number is prime.Nathaniel2006-12-03
Line-Bezier Intersect DemoCheck for intersection between Line Segment and Bezier CurveAndy_A2006-11-07
Yet Another Line Intersect FunctionFunction to check if two line segments crossAndy_A2006-11-07
fractionsinstead of decimalsmindstorms2006-10-25
String parsing functionsLittle string parsing library.Devils Child2006-10-24
GetEntityBox()This function returns the entity's bounding box sizes.Devils Child2006-10-24
timersblitzplus like timersmindstorms2006-10-20
sqr functionreturns in radical formmindstorms2006-10-13
2D Particle & Constraints physics with mouse buildmode/interactmodea 2D physics simulation with an interactive demonstrationJeppe Nielsen2006-10-03
Pi Calculator Rev 2Calculates PiArem2006-10-01
Pi CalculatorCalculates PiArem2006-10-01
ErrorIgnore this entryDreamora2006-08-28
UnHex/reHexGet a hex value out of int and reverseAndres2006-08-06
GUI object managementType demo for managing overlapping GUI objectsbig10p2006-07-28
Sudoku-Solverin GermanMr. Bean2006-07-03
False PostSorry, false post !Mr. Bean2006-07-03
array of typesarray of types within a typebradford62006-05-26
Recirsive ScanDir() funca little scandir() func!Devils Child2006-05-03
Box, Box2 (bb & bmax)extended modulosCS_TBL2006-04-12
Bubble SortSorting an arrayNaughty Alien2006-03-13
Image ZoomEasy to adjustValorden2006-01-25
LineRectIntersectionThis Function determine if a Line and a Rectangle intersectMarkus Rosse2006-01-13
2D Mountain GenerationA 2D Mountain makerSubirenihil2006-01-05
Creating circles with a certain amount of cornersThis function will create a circle with a variable amount of cornersPhoenix2006-01-05
mathematical algorithmssome mathematical algorithms5t@nKy2005-12-23
Simple GravitySimple gravity effect for a platformerValorden2005-12-23
Conversion Log DateCounts the number of days since 1-1-00Sonari Eclipsi Onimari2005-11-28
Container: vectorplug'n'play vector containers which can be used to store objectsoctothorpe2005-11-02
Bubble SortingSimple array bubble sortingRegular K2005-10-31
Smooth bezier curves between pointsDraw smooth bezier curves between pointsJeppe Nielsen2005-10-15
Pathfinding (Pre calculated 2D)Pathfinding routine I use in my gamesMatty2005-10-12
Binary Decision TreeBinary Decision Tree AI AlgorithmTechlord2005-08-27
String - Int - String4 byte int values in string format (ideal for multiplayer)Banshee2005-08-18
Container: hash table(aka map, dictionary) plug'n'play hash table containers which can be used to store objects - get(key$), set(key$, value), delete(key$), iteratorsoctothorpe2005-08-08
Container: double-linked listplug'n'play list containers which can be used to store objects - push, pop, shift, unshift, delete, iteratorsoctothorpe2005-08-08
Zooming In/OutZoom with the Mouse WheelCruis.In2005-08-05
Look for duplicationsearches through a list of numbers for a duplicate numberNicstt2005-08-02
SoundEx SearchGenerates SoundEx search codesDr. Wildrick2005-07-30
Sorting Array BASICA Real Basic Sorting methodNeochrome2005-07-22
Random 3D/2D Dungeon GeneratorA random 2d/3d dungeon generator, as the title saysErroneouss2005-06-28
Rotatatable movable square to movable point collisions in 2DChecks collision of a square with any rotation and any position in 2D space with a movable pointBraincell2005-06-28
Conway's Life AlgorithmAnother Life IterationGary B2005-06-21
star fieldsimple star field simulationPete2005-06-12
Interpolate AnglesInterpolate between two angles...fredborg2005-05-31
bouncybouncy sprite simulationPete2005-05-27
RGB to HSB and backConvert RGB to Hue, Saturation and Brightnessjfk EO-111102005-05-21
Sectors in stringRetrieve easily a sector from within a stringAndres2005-05-03
Hex$ to DecimalVery compact function to convert an hex$ to a decimalCybersed2005-04-30
How to use tilesCreating a maps with tilesKamaShin2005-04-27
positionsprite()display 3d sprites using 2d screen coordinatesD4NM4N2005-04-25
CalcGunAngleReturns gun's angle to hit the targetMikle2005-04-17
Create 2D Terrain EDITCreates a 2D terrain with color wich is stored in a array.Berserker [swe]2005-03-28
Allowed lettersHow to avoid unwanted letters/symbolsAndres2005-03-23
Power of twoFinds the next power of two down from a positive integerRottbott2005-03-08
Convert Integers to WordsFunctions to convert Integer values into String words.Malice2005-02-21
Permutations FunctionReturns the number of Permutations for 'N' valuesProf2005-02-20
Basic Cannonballs Physics 3DUses Quadratic EquationsErroneouss2005-02-08
JV-ODE Car DemoA simple Blitz3D car demo using JV-ODEVIP3R2005-01-28
Rate Of Exponential Decay & IncreaseExponential Decay & IncreaseErroneouss2005-01-20
Towers of HanoiDepth-first (recursive) solution to the Towers of Hanoi problemKlapster2005-01-19
Sinus scrollerA simple sinusscrollerJeppe Nielsen2005-01-06
Multi-Dimensional Arrays using a Single ArrayConvert multiple indexes into a linear index for use with Blitz Single Arrays (ie: mytype.alien[100])Techlord2004-12-22
Again a new Replace commandThis command accepts a NumOfOcc parameter and a CaseSensitive parameterPowerPC6032004-12-15
Alternate Replace command (2nd version)Adds a NumberOfOccurances parameter to the commandPowerPC6032004-12-14
New Replace commandReplace-command with NumberOfOccurances parameterPowerPC6032004-12-14
The Ambiguity Engine.Ffront end to a compiler/anything.AntMan - Banned in the line of duty.2004-12-14
Auto code indenterIndents all your code 'correctly'Rob Farley2004-12-11
Get what's on the other side of the equal sign even faster.Shorter, faster than ever before.Chroma2004-12-01
Box PackingPacks boxes extremely fast, useful for lightmap packing etc.fredborg2004-11-29
Normal MapGenerates a simple normal map from a height map for use with Dot3TetraHC2004-11-26
Delimeted string handlerFind an element of a single delimeted stringRob Farley2004-11-23
Cheak if 2 lines crossCheak if 2 lines crossLuke.H2004-11-19
RelativePathTo get a relativepath returnedNeochrome2004-11-05
BlitzODE Car DemoA simple Blitz3D car demo using BlitzODEVIP3R2004-10-20
Dynamic string arrayAllows one to modify / create one string containing multiple substrings.Mr Brine2004-09-25
minimum distance from point to linefind the distance from a point to a line in 2DTomToad2004-09-21
Push/Pop Data Functions 2Functions to push and pop data to and from stacks (created from types)Nilium2004-09-12
Neural Net EngineFeed fordward neural net engine, b+/3d.AntMan - Banned in the line of duty.2004-09-05
Push/Pop Data FunctionsFunctions to push and pop data to and from banksNilium2004-09-03
Code Cleaner/De-formatterIt would be more confusing than the title.AntMan - Banned in the line of duty.2004-08-30
Natural Cubic SplineCubic SplineSweenie2004-07-01
Various Sorting AlgorithmsShell, Bubble, Insertion, Selection, and Quick sort functionsNilium2004-06-24
Homing Missile Algorithmdoes what it says!Mr Brine2004-06-07
shifted grid collision demoHow to do FAST 2D col-det with large amount of spritesbig10p2004-06-01
Pushing ObjectsReal Collision PushingNeochrome2004-05-30
SmartStripSmart version of strip, for remove multiple characters of the same value.AntMan - Banned in the line of duty.2004-05-28
2D Collision ExampleCreate circles and lines that collide with each other.Jeppe Nielsen2004-04-15
Get the day of the weekReturns the day of the weekProf2004-04-15
Key GeneratorCreate keys for your softwareRob Farley2004-04-08
Maze GeneratorCustomizable!Curtastic2004-03-28
Weighted Random NumbersA simple code example to show how to generate weigthed random numbers where one number appears more often than another,sswift2004-03-11
Quaternion Math libraryMost of the functions required to work with quaternionsBeeps2004-02-19
Matrix Math libraryMatrix maths library including most of the functions you might use.Beeps2004-02-19
Vector Math libraryA simple blitz include that gives you most of the vector maths functions.Beeps2004-02-19
quick math evaluatorQuick stack based math evaluator that converts infix to postfix, and then writes intermediate output according to your codeZenith2004-02-11
Multiple Event triggersHandle multiple events without halting program flowralphy2004-02-10
Infix to PostfixInfix to Postfix conversion (without Brackets, heh)Zenith2004-02-08
Distance Between 2 RectanglesCalculates the distance between two rectangles (FAST!)Mr Brine2004-02-04
Sin/Cos Lookup TablesSin/Cos Lookup TablesTechlord2004-02-04
Urlencode / UrldecodeActs like the php counterpartsskn3[ac]2004-01-23
On a collision courseHow to calculate if two entities are on a collision course in a planeJeppe Nielsen2004-01-11
- Line Helpers -- General y=mx+b type stuff -Jeremy Alessi2004-01-11
Another IsOdd() function.This is a simple, quick way to find out if a number is odd.dangerdave2004-01-04
IsOddSimple function for working out whether or not a value is oddEdzUp[SD]2004-01-04
Decimal to the length of the binary equivalentTakes a decimal and quickly returns the length of the binary equivalentBot Builder2003-11-30
Continuous Bezier SplineCreate a continuous bezier spline using multiple splinesJeppe Nielsen2003-11-29
Race Timer FunctionsAllows you to start/stop and reset a timer returning a formatted timeRob Farley2003-11-19
Base 64 Encoder/Decoder FunctionsBase 64 encode/decodeAndy_A2003-10-05
DataType FunctionChecks the type of data stored in a stringKen Lynch2003-10-02
CRC32 - Checksum calculatorClean CRC32 - Checksum calculator for string/bank/fileMrCredo2003-09-07
Round Floor Celing towards ZeroRounds towards zero. Combined Floor CeilingLostCargo2003-08-31
InterpolationLinear, Cosine, Cubic and Hermite InterpolationKlaas2003-08-26
Isometric collisionDetects collision in a isometric squareNebula2003-08-17
2d distance calculation and approximationSweet ways to calculate 2d distance along a lineShagwana2003-07-01
Homing physics ( 2D )Allow enemies to chase player, with velocity and acceleration.Jeppe Nielsen2003-06-24
Object and Handle with EntitiesObject and Handle to avoid looking up an entity in thousands of typesRob2003-06-21
Queueing behaviourPlease form an orderly lineDarkNature2003-05-10
Container ClassesList, Array, Heap classes for easy useMarcelo2003-05-07
MathToString$(...)NEW version 1.5ShadowTurtle2003-05-04
CosineinterpolytionInterpolated line with cosinealgorithmVertex2003-04-14
Swift Event SystemAn event system for triggering events in your game, or animating objects.sswift2003-03-23
Euler angles to quaternion and backEuler angles to quaternion and backMarkus Rauch2003-03-11
SpeedLimitKeep your ships from going too fastRatboy2003-03-05
QLimitLimit valuesNeochrome2003-02-24
Base ConversionQuick and easy base conversion functionZenith2003-02-04
RC4 Komp. Algo.De / Encoding ToolPanno2003-02-02
Get what's on the other side of the Equal sign.Fast value extractor.Chroma2003-01-30
RLE compressionBasic Run Length Encoding compression for files.Zenith2003-01-21
Z Pathfinding LibraryA simple, easy, optimized little libZenith2002-12-17
Convert Radians To DegreesRadians to Degrees Conversion Function.Chroma2002-11-25
Radar Scan: Is that enemy within range?Will scan a given radius and return true/false if target is in range.Ghoula2002-11-19
Is In Triangle 2DCheck if point is inside trianglePeter Scheutz2002-11-10
Lines_Intersect()This function determines if two line segments intersect in 2D, and if so, where they intersect.sswift2002-10-26
CRC32 calculator (well similar)This calculates a CRC32 for an file given, it might not be 100% correct to the algorythm though.Drago2002-10-24
Any Zoom Level LineDraw a line at any zoom level..skn3[ac]2002-10-10
Line NormalThis function will calculate the normal of a line.sswift2002-10-06
Rectangle/Box overlap code (Boolean way)A faster way to tell if a rect overlaps!Shagwana2002-10-03
Billiards Style Collision Physics2D circle collision response which can be used for almost anything where 2 objects collide in 2 dimensionsPhish2002-09-03
Converts Degrees to RadiansTakes an angle and converts it to a radian.Chroma2002-08-28
Swift Terrain SystemThe Swift Terrain System - A fast, detailed, tiled mesh terrain with level of detailsswift2002-08-27
IPS RoutinesInternational Patching System - creating and using IPS files.denzilquixode2002-08-24
Sorted Linked Type ListsCreate and maintain lists sorted on an arbitrary fieldMiracle2002-08-19
Linked Type Lists (Updated)Search through large numbers of types with linked listsMiracle2002-08-19
Bresenham line tracing (2d)Lets you iterate through a bresenham line one coord at a timeShagwana2002-08-11
Rigid Body Physics SystemA simple particle-based rigid body physics system.Vorderman2002-08-07
Binary GCDFast GCD AlgorithmEntity2002-07-27
Not-So-Faster Sqr( x^2 + y^2 )but Sqr( x*x + y*y ) is faster... hmmmmEntity2002-07-18
Terrain Colormap GeneratorA simple terrain color map generator.Chroma2002-07-05
Smart TurnTurns An Entity Toward Another Choosing The Short Pathsemar2002-07-03
FloatTo4BytesConvert floating point number to 32bit IEEE representationGrahamK2002-07-01
Replaying user input using a collection of Types Replaying user input using a collection of Types msephton2002-06-27
Create 2D terrainsThe best of many methods i triedskn3[ac]2002-06-26
Starfox's LOD Mesh SystemManages LOD Meshes for Blitzstarfox2002-06-26
Insertion SortExample of sorting Blitz type collection.Floyd2002-04-27
Insertion Sort with sentinelA faster version of Insertion Sort.Floyd2002-04-27
faster bin to int :Dconverts a binary string to an integerCurtastic2002-04-25
Julian day functionsCalculate the Julian day for use with date calculationsCraig Kiesau2002-04-19
gettok$(word$,token,seperator)A handy function to return a token from a string...skn3[ac]2002-04-10
Pointing one image towards another using ATanThis code demonstrates how ATan is used to determine the frame of a rotating imageKlapster2002-03-30
MD5 DigestFunction to create an MD5 DigestCraig Kiesau2002-03-29
Binary SearchA simple binary search, used to find a value in a large arraydirkduck2002-03-22
Base 64 EncoderFunction to encode string text to base64mangus2002-03-09
Pecentage valuesStatistics functions and controlled randomsBitmaniaK2002-03-03
Cannonball physicsCode which shows how to move objects as if they were shot like a cannonball ( 2D )Jeppe Nielsen2002-02-22
Binary string to integerConverts a string created w/ bin$ back to an int.Snarkbait2002-02-11
Sin() and Cos() demo Tutorial on using Sin() and Cos() to determine movementRhodan2002-02-10
hex2decConverts a hexadecimal number to a decimal oneBlu_Matt2002-02-02
Hex 2 StringConverts a Hexidecimal to a StringZenith(Matt Griffith)2002-02-02
Bitplane Nostalgy AI tracking functionsTrack,Track_YR,Track_Smooth,Track_YR_SmoothLitobyte2002-02-01
2D Rectangle Collide (FAST)collision detection between two rectanglesNigel Brown2002-02-01
Bouncing BallCan be controlled with joypad.Faz2002-01-31
Distance between 2 entities in 3D space for collision!This function checks the distance between 2 entities for collision!SopiSoft2002-01-29
VB InstrRev() commandWorks as Instr() command, but starts search from the end of the stringJim T2002-01-24
More versatile VB Split() CommandSplits a string into a 1 dimensional Array.and..Jim T2002-01-24
Huffman ExpandUse in conjunction with the compress routines (below) to decompress your files/dataMilky Joe2002-01-16
Huffman CompressionHuffman compress your files/dataMilky Joe2002-01-16
time dependant movements and rotationsThis code allows you to run your game the same speed on various PCs, fps independentKostik2002-01-16
VB Split CommandHere's a Visual Basic Command for Blitz.Chroma2002-01-11
Bayer-Palbo Ordered DitheringA modified 8x8 Bayer ordered dither algorithmPopstar2002-01-10
Height Map GeneratorMake unique random nice looking landscapesRob Farley2001-12-28
Car PhysicsCar physics allowing front/rear/4 wheel drive and under/oversteerVorderman2001-11-14
Pattern$() FunctionMakes it easy to identify groups of letters/numbersOldefoxx2001-11-04
Parsing StringsFunctions for parsing strings based on separation chars.Oldefoxx2001-11-04
A flexable VAL() FunctionThis is an updated versionOldefoxx2001-11-04
Point in a rectangle detectionBoolean way to detect if a point is in a rectangleShagwana2001-10-29
2 and 4 byte compressor2 byte and 4 byte compressor/decompressorSkully2001-10-27
FlagsHow to store the values of many flags in one numberWarpy2001-09-30
QuickSortThe Fast Quick Sort algoTFT (der Falke)2001-09-27
BubbleSortsorts blitz object collectionsskidracer2001-09-26
FloatStringfloat to string conversion with n decimal pointsskidracer2001-09-20
InsidePolycheck if a point is inside a polygonskidracer2001-09-18
Integer swappingSwapping two integer variables without using a thirdBlitzSupport2001-09-13
Number from StringExtract Numbers from StringsCpt. Sovok2001-09-10
k.i.s.s. toggleKeep It Simple Stupid (kiss) integer toggle:Russell2001-09-02
Incr()/Decr() with safety checkIncrement or decrement by a value with bounds checkRussell2001-09-02
Using types-within-typesAn example of using a custom type within another custom typeBlitzSupport2001-08-29
Asynchronous timersTimers that don't stop your game from continuingBlitzSupport2001-08-29
Diminish ()Good routine for reducing speeds, power, etc.BlitzSupport2001-08-16
Vector ProductsA couple of helper functions Dot and cross product.David Bird(Birdie)2001-08-16