-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|125|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-




HoboBen

SVG Tech Demo 2

4th September 2010 Cobra, Windows
While only an early release, full source code is provided including the XML Parser for loading SVG files.


HoboBen

Algorithm to Draw a Line of Arbitrary Thickness

4th September 2010 Cobra
By modifying Bresenham's line algorithm to plot rectangles instead of pixels, it is possible to draw lines of any thickness.
[code]
Program
Uses
pure2d,
keyset
Procedure BLine(x0: Integer, y0: Integer, x1: Integer, y1: Integer, color*snip*


HoboBen

Parse point-pair string

3rd September 2010 Cobra
Using a simple parser, extract the point-pairs from a string such as:
''-850.5,75.0 958,137.5 958,-262.5 850,325 742,262.6 742,137.5''
By using a simple tokenizer/lexer, we can safely catch all errors. And it's much more readable and maintainable*snip*


HoboBen

Fast text wrapping

7th July 2010 Cobra, Windows
Fast - Tries to do as little string manipulation as possible.
[code]
Program
Uses
keyset,
pure2d

Const
WT_ARRAY_SIZE = 1024
LINE_SPACING = 1.0
Var
breakPoint: Array [WT_ARRAY_SIZE] of Integer
breakPointS*snip*


HoboBen

Hero Extant: World Generator

30th May 2010 Cobra, Windows
A random world generator, part of a larger project. Now open source!!!


HoboBen

Simple Random Terrain Generator

14th May 2010 Cobra, Windows
Simple fractal random terrain generation. Less than 100 lines of code, including displaying to screen. Adjustable turbulence.
[code]
{
By Ben Golightly 2010, tophatstuff.co.uk
Feel free to modify and use with or without credit
}
Program
*snip*


HoboBen

SVG Tech Demo 1

8th March 2010 Cobra, Windows
Quick tech demo showing an SVG image of a star with a gradient being deformed. The star has 80 points for a detailed deformation.


flying_cucco

Settings

25th October 2009 Cobra, Windows
Manage ini files


HoboBen

Mergesort a linked list

26th August 2009 Cobra
Mergesort is a sorting algorithm that is especially suited to sorting linked lists.
Note: You really, really don't want to sort any lists that contain strings!!!
Feel free to use for any purpose, with or without attribution.
[code]
{
Mergesort a l*snip*


flying_cucco

SoScore Mode 0 Password Extractor

2nd October 2008 Cobra
hack into the (old) scoreboards


HoboBen

Hobo's WM#012 Entry

18th September 2008 Cobra, Windows
A shoot-em-up crammed full of graphics and audio I nicked off the internet... mostly within the terms of use.
It has online highscores, so it can be entered into the WM012. It doesn't have any multiplayer gameplay though - feel free to call me a cheat*snip*


flying_cucco

Dress-up

16th September 2008 Cobra, Windows
For WW #168


HoboBen

Point-Line Distance

11th July 2008 Cobra
Needed this for my shmup, I figured I may as well post it in case it comes in handy.
function DistancePointLine(px: Real, py: Real, x1: Real, y1: Real, x2: Real, y2: Real): Real
Returns the smallest distance between a point and a line
[code]
Unit
{
*snip*


HoboBen

Shortcut Reader/Writer for BlitzBasic and Cobra

1st July 2008 Cobra, Windows
For Cobra (+Blitz!): custom icons, comment/tooltips, shortcuts with command line arguments, it's all in there!


flying_cucco

Opalescence

29th June 2008 Cobra
A small GUI toolkit for Cobra


flying_cucco

Nested Types Example

23rd April 2008 Cobra
How to make types-within-types in Cobra -- this took me a while to figure out. Hopefully self explanatory if you are familiar with how the types work, with lists and pointers.
[code]program

type foo = record
value : integer
endtype

type bar *snip*


HoboBen

LNK Resolver

21st April 2008 Cobra, Windows
Contains functions to resolve windows shortcut (.lnk) files.


HoboBen

Ellipsis Launcher

2nd March 2008 Cobra, Windows
No more boot-up traffic jams!


Fluke

Yoted

13th November 2007 Cobra, Windows
Remake of Jay's Yot WW entry in Cobra.


HoboBen

Photo Viewer

11th June 2007 Cobra, Windows
Simple and light thing to look at photos with.


flying_cucco

MapEdit

12th May 2007 Cobra, Windows
Abandoned tilemap editor


flying_cucco

Falling Sand

12th May 2007 Cobra, Windows
My first Cobra program


Agent

Deleted

15th March 2007 Cobra, Windows
[edit]deleted[/edit]


mike_g

Amoeba Things In Cobra

11th March 2007 Cobra
A Cobra version of a Blitz prog I posted a while back. It now has a fill parameter using the built in FloodFill command, which makes it look much nicer :)
[code]
program
uses pure2d, keyset
var
fuzzer: array[10, 360] of integer
fuzzdir: *snip*


mike_g

Rounded Rectangles

11th March 2007 Cobra
Draws Rounded Rects

More - Older Posts