-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|566|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Generators


 
Jayenkai
Created : 23 July 2016
Edited : 23 July 2016
System : Cross Platform
Language : Monkey

Code Creates Crates

Crikey!

A simple enough generator, which generates generic looking crates for use in your games.

Crateness.zip : Includes source, exe and example settings file. (but the code below will happily run from a copy+paste into BlitzMax)



Note : Although it appears exceedingly lengthy, the actual generator code is all held within the bottom-most "Generator()" function. The rest is my standardised "Generator Maker" code, which accounts for an ini script and other bits and pieces.

Typical Output

 

Comments


Monday, 25 July 2016, 08:08
Pakz
Hey, that is pretty good!

The bigger resolution shows how the lines are drawn onto it seemingly randomly. They scale down looking like real wood!

I learned something today
Tuesday, 26 July 2016, 07:02
HoboBen
That looks super nice!