charyan / html-game-framework

Create narrative games for the web

Home Page:https://charyan.github.io/html-game-framework/demo_chatgpt_dalle_beach/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

html-game-framework: Build a story based html game

Screenshots

Games made with html-game-framework

Game made by a human

Beach: game made by ChatGPT and Dalle (game.json generated with ChatGPT and images with Dall-e)

Cyberpunk city: game made by ChatGPT and Dalle (game.json generated with ChatGPT and images with Dall-e)

Star Wars: game made by ChatGPT and Dalle (game.json generated with ChatGPT and images with Dall-e)

html-game-framework screenshot

Creation of a game with the hgf-designer

Try it live html-game-framework screenshot

Build instructions

First you will need to install Rust

git clone https://github.com/charyan/html-game-framework.git
cd html-game-framework/hgf-maker/
cargo build --release
cd ..

How to use the html-game-framework

Create your game with the hgf-designer

Open html-game-framework/hgf-designer/index.html in a web browser. Create your game. The first scene in the list will be the start of your game. Once you're done, click on Export to JSON.

Build the game

Create the game based on your game.json file created above.

# SOURCE being your game.json file and DEST the destination directory you want your game files in
html-game-framework/hgf-maker/target/release/hgf-maker SOURCE DEST

Copy your images in DEST/img. Copy the CSS stylesheet from html-game-framework/game/style.css to DEST.

Launching the game

Open DEST/index.html in a web browser.

About

Create narrative games for the web

https://charyan.github.io/html-game-framework/demo_chatgpt_dalle_beach/

License:MIT License


Languages

Language:HTML 66.2%Language:JavaScript 16.8%Language:CSS 9.0%Language:Rust 8.0%