Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jason80/dragonfly
- Owner: jason80
- License: mit
- Created: 2024-09-24T22:12:51.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-12T23:59:39.000Z (27 days ago)
- Last Synced: 2025-01-13T00:25:45.807Z (27 days ago)
- Topics: game-development, gameengine, interactive-fiction, javascript
- Language: JavaScript
- Homepage:
- Size: 307 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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")