• Register

Samphi is primarily a story driven RPG set in a randomly generated, destructible sandbox universe. You will fight across many randomly generated levels, craft, build, level up and collect gear. Most importantly; you play the game how you decide. With 2 game modes, story & freeplay, you can either play through my story or create your own. Story - Samphi is a story about a relationship between 'boy' and 'girl'. Through re-living memories along the timeline of their relationship (all set in sandbox, randomly generated environments) you will learn their story. To do so you will have to master the art of crafting, survival, building and combat. Freeplay - In freeplay mode the world is yours. There is no goal, just sandbox goodness. Create your own world, live your own story and use your skills to survive. Samphi is going to soon be in an alpha funding stage and so you can get a good idea of what the game is going to become and grab yourself an early copy at a discounted price.

  • View media
  • View media
  • View media
  • View media
  • View media
  • View media
Add media RSS How Samphi Generates Terrain (view original)
How Samphi Generates Terrain
view previous next
Share Image
Share on Facebook Tweet Email a friend
Embed Image
GreenyGamesStudio Author

This is an image used in my recent article explaining how Samphi generates terrain. You can read that here >> Indiedb.com.

Basically the script picks a random integer between 0 and 12. It then runs that through a switch statement to reach different outcomes based on what's input. This is how the level decides to generate up, down or straight, where trees go and stuff like that. This script is looped untill the whole level is generated.

I can change how this works by playing with the parameters specified in the switch statement. (I've left them out of this for simplicity)

Reply Good karma+1 vote
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.