I'm working on a 2D sandbox/exploring game

Yea. So I'm thinking every time you play, it'll be a different experience, so I'd like to work on procedural world generation! I know I'll be using perlinoise, but I wanna do it with my own code and not someone else's, so I don't know where to start... :frowning:

If its anything like Terraria and Minecraft, then there would be a lot of blocks. Maybe take after Terraria's idea of hammering blocks to change how the look.

Also, here are some ideas of things to add: wax, steel, bronze, brass, cement, asphalt, concrete

Good suggestions! But, for now, I'm worried about how I'm going to generate worlds via perlinoise

I have no idea how to do perlinoise, but maybe this could help?

I would first focus on the original world generation, then maybe mix things up. I think the "go to random position" might be your best friend. If you can set parameters for each random position, then I believe that it is possible to cause random generation. Other than that I don't exactly know what to do. I would advise against creating your own from scratch, but if you do, at least take insipiration from other perlinoise codes.

ok ok

@oscar_robinson I'm doing the inventory system and item system, so dont let anybody take that please.

Okay!

also I made a "noob sword"
NoobSword

oof its small

Here's ANOTHER game I'm working on: Creating a Dungeon RPG - Requests to the Community - Snap! Forums (berkeley.edu)

make this #requests-to-the-community:collaborations

This reminds me of @griffpatch’s Minecraft 2d project

yeah...

Reading back on this inspired me to make my own rudimentary noise, 1-dimensional terrain generation.

Tell me what you all think, maybe check out the code as well.
The heights of each bit of terrain are stored in a list so that they can be referred to later.

This list could also be used to generate underground areas and generally make the map more complex by generating each layer individually instead of as a whole brush like in your project.

When the map is all said and done, maybe you could split the map again into chunks so they can be loaded in and out smoothly to prevent lag and again into their individual pieces so they could be modified more finely, such as a player's tools. (Badly explained but I can explain in more detail if needed, be careful though since it turns cell-based quickly...)

A lot of possibilities, just need to decide what to tackle next if you want to do anything more with this.

Can you add a lot of tile interaction. I think it's really cool and allows for ingenuity of players. Like how in Minecraft, Water on top of lava creates obsidian (the real life science of this is a bit nonexistent), but way more interactions between blocks.

Looks pretty good honestly! :slight_smile:

Necropost.

its also his own topic

It got flagged...

Ok