Unlocking Hive in my Farming Game

in Hive Gaming2 months ago (edited)



Hello guys,

It's been a while since my last post, but the wait is finally over! I'm back with some outstanding game progress that i really hope you'll enjoy as much as i did while working on it 😀

Your feedback and support meant a lot to me and pushed me to keep improving the project. Over the past few days, i refactored every single script i've written to improve performance and tighten security where needed. My ultimate goal is to make the game playable on any type of device, from low-end devices to high-end setups. Everyone should have a chance to enjoy the game!

Do you remember the features i announced in my last post ? That was the Hive Login Implementation, plus a small surprise i promised you'd enjoy!

Unfortunately, i experienced a ton of problems while implementing Hive login. The documentation....well, let's just say i expected it to be clearer and more straightforward. My expectations were completely different.
But that didn't stop me, if anything, the harder the challenge, the more focused i become on completing and mastering the implementation. So I stayed up late and figured out a system that doesn't just "work for now", but is designed with long-term , future-proof implementation in mind

And as a little off-topic, this also opened a new chapter in my mind: what if I create future tutorials for new Hive Developers ? A straight-to-the-point login system with validation included, explained step by step.

What do you guys think ? Would you like to see this happen ?

And not just Hive Login , I could cover other implementations too, especially the ones i find unnecessarily complicated for beginners becauses of the current documentation.

Let me know in the comments, and i'll make it happen! 😀

Anyway, let's get back on track, we were talking about the Hive Implementation struggle!



But don't worry, in the end, what matters are the results. I was able to create a secure Hive Login that not only lets you log your Hive Account into the game, but also provides a strong security environment for your account and login.

Here's how it works:

  • Your login is verified using multiple methods to avoid any security exploit
  • Every** login attempt** is recorded to prevent reusing an old message
  • Your session is stored securely using a JWT token, so you can stay logged in safely

And today, i'm excited to announce the first login screen!



Let me explain, in less technical terms, how the login works:

  • You log in through the Hive Keychain browser extension , no need to type anything manually.
  • Your data is then validated a second time using the official Hive SDK.
  • If your data is valid and everything matches, it's verified with the database:
    • If you've logged in before, your last unique security token is checked
    • If not, a new unique token is generated for your current session
    • Tokens are refreshed automatically and are only valid for a limited time

And yes, right now, as part of this progress, i'm happy to announce that the database is fully integrated with Hive, meaning your progress is now completely tied to your Hive Account!



Aaaand now, the surprise! Do you remember last time, when i was generating a random terrain for you each time you joined the game ? Back then, without a login system, the game would just randomly generate a new farm every time you opened it in the browser.

But this time, I wanted the game to feel more customizable and more unique for each of you.

So i decided: every player should be able to create their own farm!



The surprise is the new Farm Generator. Instead of me randomly generating your farm at every login, now you can generate it based on your own preferences, and even name it however you like.



Name your own farm, make it your personal land, and customize it by selecting tree density, rock density, and flowers density





Your generated terrain and farm name are saved in the database and updated regularly every 15 minutes. So if you cut trees, mine rocks, or harvest flowers, your progress is saved, and you will see it reflected the next time you log in.

This system also gave me the chance to extend it into a special sapling planting system, which i'll talk about in future updates, along with another surprise that i hope you'll enjoy as much as i do 😀


What's next on my list ?

  • Implementing a special Global Chat that will also display your farm name, this feature will be interesting, because the chat will be encrypted and won't be stored in the database for privacy reasons. Messages will only be held in the server memory for a short time and then flushed every 10 messages.
    However, for security reasons, there's a catch: players will be able to report messages. Reported messages will be flagged and sent to the database unencrypted. This way, together as a community, we can keep the game free of harmful interactions and permanently restrict bad actors. The goal is to create a peaceful,stress-free environment for everyone
  • And of couse, another interesting susprise you'll discover by following my devlogs!

Until then, i want to thank each of you for reading my post and contributing to my motivation!

Bye for now!




Sources:
- Gifs: Tenor

Sort:  

Nice one brother I can't wait to hopmon this☺️

Thank you!😀

When can we play...........

I appreciate your interest in my game, keep an eye on my posts, i'll release more info soon 😀

Congratulations @erzoooo! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You received more than 1250 upvotes.
Your next target is to reach 1500 upvotes.
You received more than 100 HP as payout for your posts, comments and curation.
Your next payout target is 250 HP.
The unit is Hive Power equivalent because post and comment rewards can be split into HP and HBD

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP