Skip to content

zachgrayio/codenameRXG

Repository files navigation

codenameRXG

DSL usage:

Actor extension:

var Actor.health: Int by ActorAttribute({ 3 })
val Actor.flying : Boolean get() = position.y in 0f..ground

Keybindings:

ESC on RELEASED does togglePaused
A on PRESSED does ifNot(paused) { player    moveLeft step       play playerMoveAnimation() }
S on PRESSED does ifNot(paused) { player    play "crouch" }
D on PRESSED does ifNot(paused) { player    moveRight step      play playerMoveAnimation() }
A on RELEASED does playerStand
S on RELEASED does playerStand
D on RELEASED does playerStand

Build/Run

To build/run the demo game: ./gradlew run

Build distributable

./gradlew distZip, and run by CD'ing into the bin directory and executing the run script from there. NOTE: if building for Mac, uncomment the jvm args in build.gradle.

About

A somewhat FRP-based game engine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages