Jump to content

Map generator


jpexs

Recommended Posts

Their seed generator code should be found in the Dune Legacy source.

I checked it now and on the first look - the algorithm seems to be the same.

It is placed in "MapSeed.cpp" file.

The method "SmoothNeighbourhood" in the file adds the spice to the map, so they have spice included.

They have decoded also functions "getCosinus" and "getSinus" which are needed for spice generation.

I didn't know these are sin and cos, so I have these precalculated values as arrays of bytes. (As stored from Dune2 memory)

Their code is working but not very well commented, the one MrFlibble posted (and which I modified) is more clear to understand.

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...