A simple procedural language with hot code reloading
Find a file
2025-12-20 12:52:58 +02:00
assets/fonts init 2025-12-13 16:08:41 +02:00
src ops, negative number parsing 2025-12-20 12:52:58 +02:00
.gitignore init 2025-12-13 16:08:41 +02:00
Cargo.lock random flickering screen 2025-12-20 00:55:27 +02:00
Cargo.toml random flickering screen 2025-12-20 00:55:27 +02:00
game.ayin random flickering screen 2025-12-20 00:55:27 +02:00
LICENSE init 2025-12-13 16:08:41 +02:00
Makefile backtraced errors and primitive funcs 2025-12-20 00:36:15 +02:00
readme.md parser semicolon fix 2025-12-19 22:24:38 +02:00
rustfmt.toml init 2025-12-13 16:08:41 +02:00

Ayin

  • Tiny, procedural, gamedev
  • only user input is controller input
  • Live code reload
  • int, float, string, char, bool, key
  • arrays and maps
  • variables and functions
  • if, loop, continue, break, return
  • function call
  • first class functions
let setup = fn() {
  return {
    .player: { .position: { .x: 10, .y: 20 }, },
  };
};

let update = fn(state, events) {
  let new = 100;
  state.player.position.x = new;
  return state;
};

let draw = fn(frame, state) {
  frame.clear(0,0,0);
};

let migrate = fn(state) {
    return { .player: { .pos: state.player.position } };
};
  • dynamic software updating could occur every frame
  • user might be required to migrate the state (migrate function is hashed and only applied on updates when it is changed)

Build instructions

WASM

rustup target add wasm32-unknown-unknown
make wasm