Skip to content

ImSumire/Spicy-Journey

Repository files navigation

🧭 Spicy Journey - 香り旅 - Voyage épicé
Statue In dev Version 0.1.9 Licence GNU Pylint Code style: black

Logo

Spicy Journey is a game that will help you relax and unwind as you explore a procedurally generated world filled with lush forests. With its isometric viewpoint and pixel art style, Spicy Journey is a retro-visual game that is sure to captivate you. Spicy Journey offers endless possibilities for exploration and discovery. No two games are the same, so you can come back to Spicy Journey again and again for a new experience. If you're looking for a game that will help you relax and unwind, look no further than Spicy Journey. With its beautiful forests, charming pixel art style, and endless exploration possibilities, it's the perfect game for anyone looking to escape into a peaceful and immersive world.


In-game screenshot

Game Screenshot

The lore

The story takes place in a fantasy world filled with magic and mystery. The character you control is a young Japanese woman named Hana, born in a small remote village nestled in a lush forest. Hana is an avid cook and has inherited her traditional Japanese recipe book from her grandmother. The ingredients she needs to cook these dishes are scattered all over the world. She decided to go on an adventure to collect and cook them in order to perpetuate the family traditions and pay tribute to her grandmother. She embarks on an incredible journey through the wilderness, discovering mystical secrets about the world around her. Along the way, Hana meets fascinating characters who help her on her quest, such as merchants who sell her useful ingredients for her recipes.


How is the world generated ?

We simply use the Perlin Noise (more precisely the Simplex Noise) !

Perlin Noise is a type of procedural texture generator that was invented by Ken Perlin in 1985. It is a function that generates a pseudo-random appearance, which means that the output appears to be random, but it is actually deterministic and can be easily controlled by changing its input parameters or "seed".

Perlin Noise Terrain Mesh

Perlin Noise is commonly used to generate various types of textures, such as clouds, terrain, and marble. It is also used in many video games to create realistic and dynamic landscapes, as well as in animation and movie special effects. The algorithm is based on a grid of gradient vectors that are used to interpolate between the lattice points to produce the final output.

Perlin Noise has been improved over the years, and one of the most commonly used variants is Simplex Noise, which is faster and more efficient than the original algorithm. It uses a more optimal simplex grid instead of a regular grid, resulting in smoother and more natural-looking textures.

Overall, Perlin Noise (and Simplex Noise) are powerful tools for generating realistic and varied textures for various applications, including video games, animation, and digital art.

To put it simply, we use the values of these noises to vary the world data, we have a terrain height noise that also defines the placement of lakes, and we use a vegetation noise, it serves us to know if there is vegetation in a given place and what is the type of vegetation (id).

Let's talk about complexity !
  • Perlin Noise : $O(n^2)$
  • Simplex Noise : $O(n)$

Lower computational complexity, cost and fewer multiplications makes the a very fast computing speed, that's why we use the Simplex Noise !

Wikipedia Links

To understand the Simplex principle : https://en.wikipedia.org/wiki/Simplex_noise

To understand the principle of the basic one : https://en.wikipedia.org/wiki/Perlin_noise

Small credit to its creator : https://en.wikipedia.org/wiki/Ken_Perlin

We recommend this video which helped us a lot to understand how to generate a terrain :

Video of Henrik Kniberg (dev and designer at Minecraft) : https://youtu.be/CSa5O6knuwI


The new interface (GUI)

Menu preview

  • Spicy Journey - 🇫🇷 "Voyage épicé" ou "Voyage pimenté"
  • 香り旅 (kaori tabi) - 🇫🇷 "Voyage d'odeurs agréables" / 🇬🇧 "Journey of pleasant smells"

To Do List

  • Playable, exploration game, collection of ingredients
  • Huge optimization, reduce lag when the camera display a lot of images
  • More vibrante colors for a greater looking
  • Make a better terrain generation, lakes and rivers
  • Generation of ingredients and plants for a better simulation
  • Create the cookbook interface
  • Making the complete interface (title screen, settings, in-game menu)
  • Add sounds to the game (music, wind, footsteps in the grass)
  • Add a translation system
  • Add multiplayer for even more fun
  • Making the essential mechanics of the game: cooking
  • Add the Ambulant Merchant to have special ingredients
  • Make the fishing system to expand the list of recipes
  • Add animals to add life (butterflies, deer, boars)
  • Implement a day/night cycle system
  • Add biome management to diversify the landscape and its content

Install

Update pip

Don't forget to use the latest version of pip, it's not essential for this code but it's always good to update :3

pip install --upgrade pip

Libs

Install Pygame, noise, json and numba :

pip install -r requirements.txt

Developing

# Clone this repository
$ git clone https://github.com/ImSumire/Spicy-Journey

# Change directory
$ cd Spicy-Journey

# Run the startup script
$ python3 main.py

License ©

Copyright © 2023 @Zecyl and @ImSumire Follow the terms and conditions here : https://www.gnu.org/licenses/gpl-3.0.txt


Authors

Game

  • @Zecyl Multiplayer, Server set up on Rasberry Pi, Packets management, Data synchronization, Cooking management
  • @ImSumire Isometric Engine, Optimization, GUI, World management, Player movement, Sound mixer set up

Software

  • @Zecyl Ideas and project development, Perlin Noise handling, and early versions of save/load processing
  • @ImSumire User-Interface management (Tkinter), running optimization and file organization