blob: f4800536ca9cbce13d34aac6d3f38872638e10a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
(load "./scripts/keys.scm")
(load "./scripts/structs.scm")
(load "./scripts/utils.scm")
(load "./scripts/prompt.scm")
(load "./scripts/gol.scm")
(define camera-offset (make-point))
(define (update)
(prompt-update)
(if (rl-is-key-down KEY_DOWN)
(run-step)
)
)
(define (draw)
(prompt-draw)
(for-each (lambda (cell)
(rl-draw-rectangle
(* (car cell) 30)
(* (cdr cell) 30)
30
30
(make-color 190 100 255))
) (hash-table-keys current-cells))
)
|