An implementation of Conway's Game of Life using OPENRNDR in Kotlin.
Inspired by Golly and the Edwin Jakobs KotlinConf talk.
Download the latest release for your platform and use the controls to interact.
- Click and drag on the canvas to create new life
- Scroll up and down to control generation time
space
to pause / resume the simulationesc
to reset current pattern to the initial stater
to reset to a randomly chosen patternc
to reset to a randomized canvass
to save the current state to an RLE / Golly filel
to load a state from an RLE / Golly filei
to toggle info text (generation # and FPS)- (TODO) Press 'g' to toggle grid visibility
- (TODO) Press 'f' to toggle fullscreen mode
q
to quit the program
- Press period
.
or comma,
to open the settings panel - Select a new background color
- Choose a new pattern
./gradlew run
runs the TemplateProgram (Usegradlew.bat run
under Windows)./gradlew shadowJar
creates an executable platform specific jar file with all dependencies. Run the resulting program by typingjava -jar build/libs/<name-version>.jar
in a terminal from the project root../gradlew jpackageZip
creates a zip with a stand-alone executable for the current platform (works with Java 14 only)
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
.