update readme

This commit is contained in:
me 2025-12-27 22:58:34 +02:00
parent 5919ab23c5
commit 1f47ec332b

View file

@ -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