update readme
This commit is contained in:
parent
5919ab23c5
commit
1f47ec332b
1 changed files with 6 additions and 18 deletions
24
readme.md
24
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.
|
This is hackaton code. Don't expect much.
|
||||||
|
|
||||||
|
See [the blog post](https://alloca.space/blog/ayin.html).
|
||||||
|
|
||||||
## Main ideas
|
## Main ideas
|
||||||
|
|
||||||
- Tiny procedural language specifically for gamedev
|
- Tiny procedural language specifically for gamedev
|
||||||
|
|
@ -17,9 +19,7 @@ This is hackaton code. Don't expect much.
|
||||||
## Basic example
|
## Basic example
|
||||||
|
|
||||||
```rs
|
```rs
|
||||||
let migrate = fn(state) {
|
include "../stdlib/stdlib.ayin"
|
||||||
state
|
|
||||||
}
|
|
||||||
|
|
||||||
let setup = fn() {
|
let setup = fn() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -43,20 +43,8 @@ let draw = fn(state) {
|
||||||
frame_clear(state.color.r, state.color.g, state.color.b)
|
frame_clear(state.color.r, state.color.g, state.color.b)
|
||||||
}
|
}
|
||||||
|
|
||||||
let min = fn(a,b) {
|
let migrate = fn(state) {
|
||||||
if a < b {
|
state
|
||||||
a
|
|
||||||
} else {
|
|
||||||
b
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let max = fn(a,b) {
|
|
||||||
if a < b {
|
|
||||||
b
|
|
||||||
} else {
|
|
||||||
a
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -94,7 +82,7 @@ sudo dnf install systemd-devel
|
||||||
|
|
||||||
### WASM
|
### WASM
|
||||||
|
|
||||||
Requires to build for wasm:
|
Required for wasm:
|
||||||
|
|
||||||
```
|
```
|
||||||
rustup target add wasm32-unknown-unknown
|
rustup target add wasm32-unknown-unknown
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue