Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jason80/dragonfly

Interactive Fiction Game Engine in Javascript
https://github.com/jason80/dragonfly

game-development gameengine interactive-fiction javascript

Last synced: 27 days ago
JSON representation

Interactive Fiction Game Engine in Javascript

Awesome Lists containing this project

README

        

# Dragonfly
*Interactive Fiction Game Engine in Javascript*

![Game sample](media/sample1.png)

**You can find some examples in the `samples` directory available in English.**

## Setting up the project

Clone the git repository with submodules:

```sh
git clone --recurse-submodules https://github.com/jason80/dragonfly/
```

Create and navigate mygame dir:

```sh
mkdir dragonfly/mygame
cd dragonfly/mygame
```

Create the files "index.html" and "mygame.js".

## Basic "index.html":

```html



My Game


```

## File "mygame.js":

```javascript
import { Book } from "../base/book.js"

window.onload = function() {
const book = new Book("game-area");

book.run();
}
```

## Tutorial:
[Español](./tutorial/spanish.md "Tutorial en español")