Magical RPG
This tutorial will walk you through how to create your first game, ShadowRealms, a magical RPG game!
Table of Contents
New Game
Create a new game with the name ShadowRealms

After that, click on the icon for ShadowRealms to start developing your game

Create Hero
First, create a hero data class with a simple name field

Next, create a hero data class item with the a value for each field specified above

Next, create an ERC 1155 for the data class item by choosing the data class and corresponding data class item

Next, create an ERC 721 for Hero with the fields desired. Here, we will choose Level and Experience for Hero

Now, let's create a handler to add a hero.
Specify request and response class:


Create a handler with these classes:

Create Spell
First, create a spell data class with a simple name field

Next, create a spell data class item with the a value for each field specified above

Next, create an ERC 1155 for the data class item by choosing the data class and corresponding data class item

Now, let's create a handler to add a spell.
Specify request and response class:


Create a handler with these classes:

Visualize
Now you can go to Data Flow to visualize the handlers:

Generate Code
After completing, go to Game Servers and click gen code, the server will begin generating all the code needed for your game:

Once finished, you can download the code to your machine:

Create Game Logic
Create game logic for each of your handler to specify what should happen within each handler like this:

Once finished, compile into GameLogic.zip
and upload using upload code
button:

Build Server
Once uploaded, click on build server, now HyperEdge will automatically compile your logic and create a server for your game.
An example in our local docker instance showing 2 containers are created for your game:

Test Server
Great! Now let's try use the server!
First, we will test the AddHero handler:

Then, we will test the AddSpell handler:

Last updated