puritandesigns/expotition
Composer 安装命令:
composer require puritandesigns/expotition
包简介
Classes to build a gamebook story
README 文档
README
PHP classes to build a Gamebook story.
View a slideshow from a TrianglePHP Meetup
Getting Started
- Run
composer require puritandesigns/expotition - Require composer's autoload and create an adventure:
$adventure = new Adventure(); - Create settings that have actions:
$town = new Setting( $adventure, 'Town', 'You find yourself in a small town bustling with activity.', ); $tavern = new Setting( $adventure, 'Tavern', 'You are in a single-room tavern.', new Actions( new SimpleResponseAction( 'Talk to Bartender', $adventure, 'The Bartender grunts, "Welcome to my pub."' ), new LeaveAction( 'Head outside', $adventure, $town ) ) );
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2018-11-19