Skip to content

Repository files navigation

KGames

A Spritual successor to Multisim.

The goal is to create a scripting engine for making your own games. This is to be achieved by exposing a few macroquad functions through Rhai script. and allowing the user to look through the detected scripts in a graphical menu.


Getting Started

Install or build the executable, then run it once to create the neccesessary directories.
You should now see that a folder called kgames has been created, with the following inside:

  • README.txt: this readme file
  • scripts/: The folder containing all the user-made scripts
  • examples/: The folder containing builtin examples, these can be modified(!)

Then you can take a look at all the examples in the kgames/examples/ folder. After modifying the examples, you can either press the refresh button in the top right (The one with the magnifying glass), or, you can press the F5 Key to reload all the scripts.

NOTE: Sometimes your script may cause an error, please observe the error screen and the logs in the console window.


THE RHAI LANGUAGE

Links:

The rhai programming language is a scripting language based on- and embeddable in RUST Rust is the language that kgames is implemented in, find out more at https://www.rust-lang.org Guides and information for the rhai are available at https://www.rhai.rs Since rhai is based on rust, the syntax is quite similar:

syntax:

  • Declare variables with 'let'
  • Declare functions with 'fn' (these always have an implicit this parameter)
  • Blocks (if, else, fn) are started and ended with { and }
  • Constants are declared with 'const'
  • Statements are terminated with a semicolon (';')

About

Scripting Game Engine in Rust

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages