Download the source files and go to "rethor/game.lua". Here you have your game file. This file now contains the default Rethor template: A topdown game.
This template has: Dialogues and movement.
To change the menu you have to edit "rethor/menu.lua".
It uses Electron to create windows and fengari-web to convert your Lua code to JavaScript.
At the moment, Rethor is very limited. You can only change sprites, changing the files that come with Rethor and putting the same name.
First, you have to install Node and Electron. Then do, "npm start" to test your game. To export it you have to compile the Electron App.
Here are all the functions and variables that Rethor Lua haves.
Type: Integer The player X position. You can edit it.
Type: Integer The player Y position. You can edit it.
Type: Integer The camera X position. You can edit it.
Type: Integer The camera Y position. You can edit it.
Type: Boolean This makes the game background to have a tiling texture. This texture is "rethor/sprites/background.png". You can change it. Recommended size: 16x16.
Type: String Here you can change the background color in the case you have to tiling in the background. This variable is like a CSS color attribute.
Type: Boolean This variable detects when the player is pressing the up arrow key.
Type: Boolean This variable detects when the player is pressing the down arrow key.
Type: Boolean This variable detects when the player is pressing the right arrow key.
Type: Boolean This variable detects when the player is pressing the left arrow key.
Type: Boolean This variable detects when the player is pressing the interact key. The interact key is the space key.
Type: String This variable is the game title. You can edit it.
Type: Function This function adds a dialogue. You can close it pressing the left mouse button.
Entity: String : Who says the dialogue Text : String : What it says
Type: Function This function closes the currentDialogue.
Type: Function This function adds a background to the game menu.
BG: String : The image file name in the sprites folder
Type: Function This function removes the menu background.
Type: Function This function changes the button text color.
Normal Color : String : The normal button text color Hover Color : String : The hover button text color
The variables are like a CSS color attribute.
You can only have one at the time.
Type: Function Adds a blur effect.
Pixels : Integer : The pixel size of the blur
Type: Function Adds a brightness effect.
Percentage : Integer : The percentage of the brightness
Type: Function Adds a contrast effect.
Percentage : Integer : The percentage of the contrast
Type: Function Adds a drop shadow.
OffsetX : Integer : The X offset of the shadow OffsetY : Integer : The Y offset of the shadow BlurRadius : Integer : The blur effect radius Color : String : The shadow color. The syntax is like a CSS color attribute
This feature is still in development. May cause bugs.
Type: Function Adds a gray scale effect.
Percentage : Integer : The percentage of the grayscale
Type: Function Rotates the hue values of the game.
Angle : Integer : The angle of the hue
Type: Function Adds an inverse colors effect.
Percentage : Integer : The percentage of the invert effect
Type: Function Saturates the game by the percentage of the effect.
Percentage : Integer : The percentage of the saturation effect
Type: Function Adds a sepia effect to the screen.
Percentage : Integer : The percentage of the sepia effect
Type: Function Removes the current effect.
Character: Generated with PixelDudesMaker Template Tile: Kenney PixelShmup Menu Background Image: Made by Lucas de Oliveira