BLOG

Part 17: Quest systems in game

Part 17: Quest systems in game

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 { name...

Part 16: Leaderboards in games

Part 16: Leaderboards in games

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()...

Part 14: Governance in games

Part 14: Governance in games

In this article, we will develop a voting system that will allow users to provide developers with suggestions or change the value of game changes. Creating configs table struct [[eosio::table]] mconfig_j { std::string variable_name; std::string variable_type;...

Part 12: Token and resource swaps

Part 12: Token and resource swaps

In this article, we're building on previous discussions about upgrading items by introducing a method to exchange resources for tokens. We'll add a new table to track resources, where each entry includes a `key_id` (numerical ID for the resource), `resource_name`, and...