Tutorial: Map Generator - Special Features: Difference between revisions
No edit summary |
|||
Line 6: | Line 6: | ||
==Algorithms In C4Script== | ==Algorithms In C4Script== | ||
[[File:MapGenerator_ExampleScriptAlgorithm.png|200px|thumb|right|An ellipse with border.]] | |||
A first look at the landscape on the right might make you wonder, how is this created? A quick look into the [http://docs.openclonk.org/en/sdk/scenario/MapCreatorS2.html#Algos list] of algorithms will convince you that there is no ellipse neither a circle that can be transformed into an ellipse. The trick here is that you can define your own algorithms in C4Script, by using the <code>script</code> algorithm. Producing decent algorithm might need some mathematical skills as we will see in this example. | |||
==Defining multiple maps and loading them== | ==Defining multiple maps and loading them== |
Revision as of 14:31, 12 December 2010
This is the fourth part of the map generator tutorial. The previous part can be found here, but only part one and two are prerequisites for this tutorials.
Defining overlays outside of a map
Algorithms In C4Script
A first look at the landscape on the right might make you wonder, how is this created? A quick look into the list of algorithms will convince you that there is no ellipse neither a circle that can be transformed into an ellipse. The trick here is that you can define your own algorithms in C4Script, by using the script
algorithm. Producing decent algorithm might need some mathematical skills as we will see in this example.