Skip to content

Final year C++/WebAssembly special topic project.

License

Notifications You must be signed in to change notification settings

aardhyn/component

Repository files navigation

Component

Aardhyn Lavender 2022-2023

A visual programming editor and game engine on the web.

Installation

git clone https://github.com/aardhyn/component

Configuration

Create the .env file

cp template.env .env

Build

Web

Requires GNU Make (agnostic build tool) and Docker (container management).

Build and run everything in a docker container

make

View http://localhost:$PORT in a web browser.

Native

Requires gcc, SDL2, and GNU Make

It's possible to build the core as a headless CLI native executable.

As I've avoided using CMake so far, the Makefile rule for native builds is hardcoded with gcc.

You will need to download and extract the SDL2 library. SDL is not bundled with any compilers outside of emscripten that I know of.

Use the latest stable build of SDL2 for this project. My include headers are for this version, and I've not tested SDL3 yet.

Windows

Add SDL2.dll to core/lib. Then build the core with gcc

cd core
make native

Write a program in the web client, download it, and pass it to the component executable

./component program.json

Other Systems

I've not tested the native build on macOS or Linux.