by Oleh Mykhaylovych | Aug 31, 2024 | Gaming, Technical, WAX
Project structure overview As there is a great amount of features in the game, it’s better to separate features into different files. So we have one game.hpp file where we declare methods and tables and we have lots of smaller .cpp files in which we implement them....
by Oleh Mykhaylovych | Aug 31, 2024 | Gaming, Technical, WAX
In this article, we’ll walk through setting up a farming game on the WAX blockchain. We’ll start by creating an NFT collection and templates, followed by initializing blends, token swaps, governance, and quests. 1. Creating Atomic Assets Collection, Categories, and...
by Oleh Mykhaylovych | Apr 15, 2024 | Gaming, Technical, WAX
In our previous article, we looked at swaps, token stakes, and governance mechanisms. Building on that foundation, in this article we will also explore leaderboard functionality and delve into quests in the context of the game ecosystem. Leaderboards A leaderboard is...
by Oleh Mykhaylovych | Apr 15, 2024 | Gaming, Technical, WAX
In this article, we will add a quest system that will allow us to engage more with the players in our games. Let’s add the necessary tables struct quest { std::string type; float required_amount; float current_amount; }; struct [[eosio::table]] quests_j...
by Oleh Mykhaylovych | Apr 15, 2024 | Gaming, Technical, WAX
In this article, we will analyze the creation of leaderboards and consider the implementation of a leaderboard for user resources and their overall mining rate. New tables struct [[eosio::table]] lboard_j { name account; uint64_t points; uint64_t primary_key()...