Kæmpe is a language that aims to make fighing games simple to make without needing to learn and install game engines like unity or godot.
- python
- git
- clone the compiler
- pygame, pymunk python packages
- (optional) vscode
kaempe <file.kmp>to compile a file into python.- Run the compiled python file with
python <file.py>.
First you need to setup the environment and install all the dependencies. You can do this in 3 different ways
- Install make
- Instal Opam. With Opam, install Ocaml, Dune, Menhir, camelot and alcotest (for testing)
- Install python 3.13 and Pip. With Pip, install pygame and pymunk.
- Open the project in vscode
- Accept starting the development container.
If you have the nix package manager, you can just run nix develop in the root of the project to create a nix-shell with everything setup for you
- Install the dependencies: Opam, Dune, Menhir, OCaml, make, camelot and alcotest (for testing)
- Clone the repository with
git clone <url> - Run
makein the root of the repository
To use the compiler on a file with extension .kmp use Make:
make file=fileName.kmp
With file being placed in /test samples/{ fileName.kmp }
Such as:
make file=test.kmp to run the test.kmp file.
Run make tests in the root of the repository.