1
\$\begingroup\$

I am making a 2D procedurally generated game like Terraria, and I want my terrain to be smooth similar to how games like Hill Climb Racing look. I have a Tilemap that renders my tileSprites and a 2D array that stores my TileClass information. My current terrain looks like this:

Current terrain generation

Zoomed view

I want my smooth terrain to look something like this:

Hill Climb Racing Terrain

My current approach is to render a smooth line with Bezier curves, but I don't know how to assign the vertices properly since I also have cave systems underneath the surface that I want smooth as well.

Also, does anybody know how I would assign a texture to the line at different places? My terrain has different blocks like grass, dirt, and stone, to name a few, and I want the smoothing texture to match the block it is next to.

I have tried many YouTube tutorials and even ChatGPT for help, but nothing has been niche enough to help me.

Any help would be greatly appreciated. This is my first post on here so let me know if more information is needed. Thanks!!

\$\endgroup\$
3
  • \$\begingroup\$ When I search for "hill climb game" the top hits I get back are for Hill Climb Racing (plus sequels / clones) - can you verify that that's the game look you're trying to get &/or edit your question to include an image or link to what you want? Saves everybody time & effort if we're working toward the same goal from the beginning. \$\endgroup\$
    – Pikalek
    Commented Dec 22, 2023 at 17:46
  • 1
    \$\begingroup\$ Yes sorry I mean Hill Climb Racing. I will update the original post to include a photo. Apologies for the confusion! \$\endgroup\$
    – Jacko_256
    Commented Dec 22, 2023 at 19:06
  • \$\begingroup\$ Would something like this work: How do I make a curved surface out of rectangular blocks? \$\endgroup\$
    – Pikalek
    Commented Dec 24, 2023 at 23:19

0

You must log in to answer this question.