CinderEngine 2.0.1
See the version list below for details.
dotnet add package CinderEngine --version 2.0.1
NuGet\Install-Package CinderEngine -Version 2.0.1
<PackageReference Include="CinderEngine" Version="2.0.1" />
<PackageVersion Include="CinderEngine" Version="2.0.1" />
<PackageReference Include="CinderEngine" />
paket add CinderEngine --version 2.0.1
#r "nuget: CinderEngine, 2.0.1"
#:package CinderEngine@2.0.1
#addin nuget:?package=CinderEngine&version=2.0.1
#tool nuget:?package=CinderEngine&version=2.0.1
Cinder Engine
The Cinder Engine is an engine purpose-built for choice-based storygames made in .NET 10.0.
Made to be easy yet flexible, it allows the writer to just worry about writing without needing to worry about actual programming unless they wish for extended logic.
The engine itself does implement Lua as a scripting language. Information can be found in the Documentation.
Cinder Engine requires a frontend for any story file to be viewed. The official one is Flame.
Implementation
For any frontend implementation, you need to implement at bare minimum:
- A way to show the text.
GetText()
- A way to show and interact with options
GetOptionLabels()for getting the option labels.ParseSelectedOption(int)for interaction.
To initalize the engine, you can do the following:
Game _game = new("/path/to/story_file")Game _game = new("/path/to/story_file", "frameworkStandard")Game _game = new("/path/to/story_file", "frameworkStandard", [luaFunction1, luaFunction2])luaFunctionXexpects to be aCustomLuaFunctionobject. See the documentation on scripting for further information.
And then _game.ResetEngine() to initalize it.
You can also see Flame's implementation for reference on how to achieve this.
Installing
Download the nuget package CinderEngine
dotnet add package CinderEngine
Building
Prerequisites
Clone the repo:
git clone https://codeberg.org/COIFF-Project/CinderEngine
Move into the build directory:
cd CinderEngine/CinderEngine
Build the library in Debug:
dotnet build
The resulting binary can be found in CinderEngine\bin\net10.0.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- LuaCSharp (>= 0.5.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.