diff --git a/readme.md b/readme.md index 62c97ca..5e542c0 100644 --- a/readme.md +++ b/readme.md @@ -5,6 +5,8 @@ Programming language and games in 1 week inspired by Langjam Gamejam. This is hackaton code. Don't expect much. +See [the blog post](https://alloca.space/blog/ayin.html). + ## Main ideas - Tiny procedural language specifically for gamedev @@ -17,9 +19,7 @@ This is hackaton code. Don't expect much. ## Basic example ```rs -let migrate = fn(state) { - state -} +include "../stdlib/stdlib.ayin" let setup = fn() { return { @@ -43,20 +43,8 @@ let draw = fn(state) { frame_clear(state.color.r, state.color.g, state.color.b) } -let min = fn(a,b) { - if a < b { - a - } else { - b - } -} - -let max = fn(a,b) { - if a < b { - b - } else { - a - } +let migrate = fn(state) { + state } ``` @@ -94,7 +82,7 @@ sudo dnf install systemd-devel ### WASM -Requires to build for wasm: +Required for wasm: ``` rustup target add wasm32-unknown-unknown