This repository is built out of several code bases:
This is the server that runs the editor website. It's built using Python and Flask. The server also creates and manages SQLite databases, which are used as templates for the project files, and exports the project files to a "html archive" which includes an html page, which uses other files in the archive, including the project files, to run the game in the browser.
This is the main code of the editor. It's built using JavaScript and interacts with the server and SQLite databases (project files). It also uses a special "game-test" page to test the edited game in the browser.
This is the core of the game engine, where all the systems and API components get implemented. It's built using Rust and compiles to WebAssembly. It's used by the "game-test" page and the game export, which is made by the server, to run the game in the browser.
Before running the server, you need to set up the environment. To do so, follow these steps in order:
Go to https://www.python.org/downloads/ and Install The Python 3.12 on your machine.
NOTE: Make sure to check the box that says "Add Python 3.12 to PATH"
Go to https://www.rust-lang.org/tools/install and follow the instructions to install Rust on your machine. After installing Rust, run the following command in your terminal to install wasm-pack:
cargo install wasm-pack
At "flask_server/static/js", there's an empty directory called "libs". Follow the instructions in the other read me file inside it to fill the directory with the necessary files.