From 768fdf670041a65473e60016d959766992ea9d5e Mon Sep 17 00:00:00 2001 From: Jakub Date: Sun, 17 May 2026 11:35:01 +0800 Subject: [PATCH 1/2] Usage docs --- README.org | 19 +++++++++++++++++++ samples/bounce.scm | 12 ++++++------ samples/tic-tac-toe.scm | 12 ++++++------ 3 files changed, 31 insertions(+), 12 deletions(-) diff --git a/README.org b/README.org index c1ba429..ff441c2 100644 --- a/README.org +++ b/README.org @@ -2,6 +2,25 @@ Imugi is a framework for building games (primarily tactics games) with Chicken Scheme and raylib. The end goal of this framework is to create a game, also called Imugi, and release to show the capability here. +* Installation & Usage +Raylib must first be installed before you can get started with Imugi. + +Install raylib statically using the following commands: +#+begin_src shell + git clone --depth 1 https://github.com/raysan5/raylib.git raylib + cd raylib/src/ + make PLATFORM=PLATFORM_DESKTOP + make install +#+end_src + +The following dependencies are required on Debian: +#+begin_src shell + apt install -y libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev libwayland-dev libxkbcommon-dev +#+end_src + +Once installed, you can import the Imugi modules required in your project. +When building, use the flags specified in ~all.options~ in this repository, which includes are the dependency links necessary. + * Architecture Imugi is an ECS engine. diff --git a/samples/bounce.scm b/samples/bounce.scm index 0d93c18..ad63ca1 100644 --- a/samples/bounce.scm +++ b/samples/bounce.scm @@ -2,12 +2,12 @@ (import scheme (chicken base) raylib - (engine core) - (engine components core) - (engine math) - (engine input) - (engine drawing) - (engine scene) + (imugi core) + (imugi components core) + (imugi math) + (imugi input) + (imugi drawing) + (imugi scene) (srfi 1) (srfi 99)) diff --git a/samples/tic-tac-toe.scm b/samples/tic-tac-toe.scm index 65b3ed3..e132789 100644 --- a/samples/tic-tac-toe.scm +++ b/samples/tic-tac-toe.scm @@ -2,12 +2,12 @@ (import scheme (chicken base) (chicken random) - (engine core) - (engine math) - (engine components core) - (engine drawing) - (engine input) - (engine scene) + (imugi core) + (imugi math) + (imugi components core) + (imugi drawing) + (imugi input) + (imugi scene) raylib (srfi 1) (srfi 99)) From 9cf36ab12c6ed384f42cd99aeaf1980ac656b4b4 Mon Sep 17 00:00:00 2001 From: Jakub Date: Sun, 17 May 2026 11:36:33 +0800 Subject: [PATCH 2/2] chicken-install --- README.org | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index ff441c2..b042912 100644 --- a/README.org +++ b/README.org @@ -5,6 +5,8 @@ Imugi is a framework for building games (primarily tactics games) with Chicken S * Installation & Usage Raylib must first be installed before you can get started with Imugi. +Note: this guide assumes static linking for the Raylib library. + Install raylib statically using the following commands: #+begin_src shell git clone --depth 1 https://github.com/raysan5/raylib.git raylib @@ -18,8 +20,11 @@ The following dependencies are required on Debian: apt install -y libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev libwayland-dev libxkbcommon-dev #+end_src -Once installed, you can import the Imugi modules required in your project. -When building, use the flags specified in ~all.options~ in this repository, which includes are the dependency links necessary. +Once raylib is installed, run ~chicken-install -s~ in this directory to install all dependencies and the Imugi egg itself. + +You can then import the Imugi modules required in your project. + +When building your project, use the flags specified in ~all.options~ in this repository, which includes are the dependency links necessary. * Architecture Imugi is an ECS engine.