OCaml Game Animations with Algebraic Effects

Implementations of various animations in OCaml using algebraic effects.

Pure Nim score 15/100 · last commit 2021-01-01 · 3 stars · tests present · no docs generated

Summary

Latest Version Unknown
License Unknown
CI Status Failing
Stars 3
Forks 1
Open Issues 0
Last Commit 2021-01-01
Downloads 0
Last Indexed 2026-08-04 04:52

Installation

nimble install OCaml Game Animations with Algebraic Effects
choosenim install OCaml Game Animations with Algebraic Effects
git clone https://gitlab.com/gopiandcode/ocaml-game-animations-with-algebraic-effects

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
OCaml Game Animations with Algebraic Effects - - - - - - -

README

Animations using algebraic effects in OCaml

This repository contains a series of examples of using algebraic effects to implement game animations in OCaml.

Files

The files:

animated_menu.ml
animated_graph.ml
animated_circle.ml

Correspond to each of the examples from the blog post.

Setup

  1. First, you'll need to switch to the ocaml-multicore branch of the compiler See here:
opam update
opam switch create 4.10.0+multicore --packages=ocaml-variants.4.10.0+multicore --repositories=multicore=git+https://github.com/ocaml-multicore/multicore-opam.git,default
  1. Then, when on the multicore switch, install the required packages:
opam install graphics containers containers-data mtime ocamlgraph iter
  1. Now you should be able to run the main function of the code with:
opam exec -- dune exec ./main.exe