The Name Garden
Tell your (or a friend's) name to the garden gnome and watch it grow a garden unique to you.
Controls: directional arrows, or mouse dragging, or swiping (not tapping) if you're on mobile.
This was an experiment to see if I could achieve seed-based random generation and text input in the charmingly limited and simple Môsi game engine (very similar to the very popular Bitsy game engine).
There's 10 different palettes, 5 dirt types, 5 plant types and 5 flower types you can get, on top of a unique positioning of these elements, based on the name you enter.
The garden generation is random, but seed-based. That means it will always generate the same garden for a given seed (text entered). There is a script you can use in Môsi that returns random numbers each time you call it, but I couldn't use it because I needed the generation to stay consistent every time you entered a given name.
I assigned a number to each letter, which together form the first seed. I then used a linear congruential generator algorithm, a kind of (pseudo)random number generation technique, to generate new seeds from the previous ones. I used the last digit of each new seed, which codes for different sprite options, for sprite selection and positioning.
Since that takes a lot of scripting in Môsi (there's no arrays or loop functionality), I wrote a program that generated those lines of code for me. That way I could easily loop through the more than 70 repetitions of generating a new seed, selecting and placing the sprite at a given position.
If you're interested in random number generation but are new to the concept, here's a fun introductory video from the great channel Numberphile, which also explains the formula for the linear congruential generator I used.
Feel free to ask me any questions in the comments below as well.
Download
Install instructions
Open with any web browser, in any operating system.
Comments
Log in with itch.io to leave a comment.
Isn't the #1, absolutely most important rule when dealing with the fae not to give them your name? :D
I had no idea! Hopefully we aren't indebted to them as they said "Thank you"...!
Nice
"Stones and shrubs and hibiscus"
Hibiscus tea is my favourite! How did you know? Also the colour palette is so pretty, I love this and my garden is so awesome
Thank you! Glad you enjoyed it.
I behold my tiny gnomes, scattered far and wide, diligently gathering information on these matters of paramount importance so that you can enjoy a personalized experience ;-)
"Pebbles and Ferns and Pansies, That's what your name has brought here for us." Oh to be loved is to be changed, and the soil in which he whispered my name grew of love.
A wonderful mood booster, Thank you.
Thank you for your comment, which has been a mood booster as well. Glad you liked it :-)
aww what a cute garden!!!!
aww this was adorable :)
Thank you :-)
This is so cute, I loved my garden so much I want to cry
Oh, I'm happy you enjoyed it! :-)
This was a really cute game!
Thank you!
no problem :]