You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-9Lines changed: 17 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,30 @@
1
-
# Conway's Game of Life implemented in OPENRNDR
1
+
# Conway's Game of Life in Kotlin / OPENRNDR
2
2
3
3
[](https://github.com/hbmartin/openrndr-game-of-life/actions/workflows/build-on-commit.yaml)
An implementation of Conway's Game of Life using OPENRNDR in Kotlin.
9
+
An implementation of [Conway's Game of Life](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life) using [OPENRNDR](https://openrndr.org/) in Kotlin.
8
10
11
+
Inspired by [Golly](https://golly.sourceforge.io/) and the [Edwin Jakobs KotlinConf talk](https://www.youtube.com/watch?v=GysSoSwmLYo).
12
+
13
+
<imgsrc="media/screenshot.png"width="800">
9
14
10
15
11
16
## Controls
12
17
- Draw on the canvas with a mouse to create new life
13
18
- Scroll up and down to control generation time
14
19
- Press space to pause / resume the simulation
15
-
- Press 'esc' to reset current pattern to the initial state
16
-
- Press 'r' to reset to a randomly chosen pattern
17
-
- Press 'c' to reset to a random canvas
20
+
- Press `esc` to reset current pattern to the initial state
21
+
- Press `r` to reset to a randomly chosen pattern
22
+
- Press `c` to reset to a random canvas
18
23
- (TODO) Press 'g' to toggle grid visibility
19
-
- Press 's' to save the current state to a file
24
+
- Press `s` to save the current state to an RLE / Golly file
20
25
- (TODO) Press 'l' to load a state from a file
21
-
- Press 'i' to toggle info text (generation # and FPS)
22
-
- Press 'q' to quit the program
26
+
- Press `i` to toggle info text (generation # and FPS)
27
+
- Press `q` to quit the program
23
28
- (TODO) Press 'h' to show the help screen
24
29
- (TODO) Press 'f' to toggle fullscreen mode
25
30
@@ -39,3 +44,6 @@ An implementation of Conway's Game of Life using OPENRNDR in Kotlin.
39
44
40
45
To create a runnable jar for a platform different from your current platform, use `./gradlew jar -PtargetPlatform=<platform>`, where `<platform>` is either `windows`, `macos`, `linux-x64`, or `linux-arm64`.
41
46
47
+
## See also
48
+
49
+
-[Another Openrndr GoL that I found too late](https://github.com/ikolomiets/openrndr-game-of-life)
0 commit comments