Skip to content

eVisualUser/bellecour-gamebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bellecour GameBook

Game book for Bellecour Ecole school

Warning

The program have no certificate so all anti-virus will detect the executable as a virus. And the os may block the file reading (run it as admin to avoid it). You can look at the logs to see what happend when the game crash.

Files

Page Render Format

[config]
name = "Page Name"
type = "classic"

[content]
line1 = "demo_local" # Use localization (see below)

[choices]
choice_a = ["choice text", "default_cond", "default_act"]

Variables

[data]
life = 100 # Default value

Choice Conditions

[conditions]
# True if the variable life is greater than 0
default_cond = ["life > 0", "life < 100"]

Choice Actions

[actions]
# True if the variable life is greater than 0
default_act = ["life + 1", "$other.toml"]

Compilation

The project use CMake, EmScripten, CLang and Ninja to compile. All of them are installed from chocolatey.

Install Tools

choco install llvm
choco install cmake
choco install ninja
choco install emscripten

Compilation Commands

cmake -S . -G "Ninja" -B cmake
cd cmake
ninja

Editor

Compilation

You need to have Rust installed. And execute the following command.

cargo run

Web Assembly

Dependencies

  • CMake
  • Emscripten
  • Ninja
choco install llvm
choco install cmake
choco install emscripten
choco install ninja