|
(edited: ) |
So, I've been reading and looking into the function that generates the terrain in the game. First, certainly seed-able, but it would need some adjustments to how it picks when to generate terrain. The hard thing about the function is figuring out what number correlates to what tile. It's hard to tell what is actually being generated without being able to edit the code and run the game. Interesting knowledge, I'm sure someone has counted it at some point but earth generates down to -7500 feet. Always wondered what that depth actually was. Also, the wall between the earth and Satan is at 7300 feet. I'm pretty sure we already knew that too though, so nothing too useful. All in all, its hard for me to figure out what the spawn rates for various materials are, when I can't tell what value is what material. Also, frankly, the function is kinda messy so it's hard to read as is. |
|
|
|
Since I imagine it's of interest, and I figure someone may be able to read this better than I can, here is the whole terrain generation function. https://ibb.co/DW6RC0F |
|
![]() |
|
(edited: ) |
So, I noticed the speedrun guide made by emanfman included a manually counted table of distribution for terrain where he stated that he has determined a 32% distribution for air under ground. I figured I'd go ahead and validate that 2 or more hours of his life that he said he'll never get back by confirming in the code that, at least for the air part, he's basically correct. There is a 1 in 3 chance that any given block will be air. |
|
![]() |
|
|
Hey, is there anyway I could get a copy of the source code from you? I really like this game and want to learn more about it but can't find a solid link to the source anywhere. I understand if it's not possible, thanks! |
|
Speedox12Speedox12 likes this. |
[user deleted] |
[user deleted]
|
So after taking a look at the code, I noticed a few things: I assume this code is for the Goldium version of the game, and this is because the bottom code I believe consists of the 3 mazes that exist under the "challenge" mode (towards the bottom, of the 0's and 1's). In addition, I notice the scroll spawn is likely the extreme negative number if statement (-1050, -1080). Are there any other files that contain any sort of generation related to the game? Perhaps there is a table that translates these magic numbers into the actual ores that they are. |
|
Speedox12Speedox12 likes this. |
|
![]() |
Hey guys sorry I've been away for so long. I was really disappointed to find that terrain generation is not very cut-and-dry. I have the full code from the original game. If there's interest I can take a look at it again and try to either rewrite it to pseudocode or just de-obfuscate it. |
|
Speedox12Speedox12 likes this. |
Thread | Author |
---|---|
For Community Consideration
Last post
|
Speedox12Speedox12
0 replies
|
About Gas Pockets...
Last post
|
Speedox12Speedox12
3 replies
|
Set Seed Category Rule Update
Last post
|
emanfmanemanfman
0 replies
|
MotherLoad Speedrun Edition!
Last post
|
emanfmanemanfman
1 replies
|
About Terrain Generation...
Last post
|
Speedox12Speedox12
5 replies
|