https://github.com/vicksonzero/adopt-a-fire
(js13k) Set up and maintain a fire by balancing fuel, oxygen and heat
https://github.com/vicksonzero/adopt-a-fire
js13k
Last synced: 7 months ago
JSON representation
(js13k) Set up and maintain a fire by balancing fuel, oxygen and heat
- Host: GitHub
- URL: https://github.com/vicksonzero/adopt-a-fire
- Owner: vicksonzero
- Created: 2020-08-23T18:05:23.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-13T14:27:27.000Z (about 5 years ago)
- Last Synced: 2025-02-15T20:29:40.597Z (8 months ago)
- Topics: js13k
- Language: JavaScript
- Homepage:
- Size: 735 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Adopt-a-Fire
Set up and maintain a fire by balancing fuel, oxygen and heat
## Play here
https://vicksonzero.itch.io/adopt-a-fire
## How to Play
1. Chop wood by clicking the tree (Yes it is a tree)
2. Split wood by clicking a piece of wood
3. Add fuel by dragging wood into the fire
4. Adjust air supply by dragging left and right on the fire
5. See status by clicking the status button
6. Each wood plank in the campfire has 3 states:
1. Newly added, cold (Dark brown)
2. Catches fire (Light orange brown)
3. Out of fuel (gray and faded out)
7. Larger wood pieces can last longer, but take longer to heat up, and may block too much oxygen
8. Smaller wood pieces are better at quickly catching fire, but are easy to run out
------------------------------------
## js13k Webpack Starter
## What is it?
This project aims to be a foundation for creating a game for the [js13k](http://js13kgames.com/) game competition. As such it provides tools such as a development server, automatic code minification and archive creation.
## List of features
1. JS & CSS minification
1. Code inlining (the entire application is a single `index.html` file)
1. Development server with source maps
1. Generation of submission files (including the `.zip` file)
1. *ES2015* module support through webpack
1. Tree shaking and module concatenation
## How can I get started?
The first thing you need to do is make sure you have [node.js](https://nodejs.org/en/download/current/) installed. Then clone the project and in the root directory run the following command:
```
npm install
```
This should install all the required dependencies for developing the project. After the installation finishes you will be able to run the included npm scripts.
## How can I start the development server?
After going through the installation just run the following command:
```
npm start
```
This will setup a server listening at `http://localhost:8080/`.
### Access from another device
You can pass an argument to the development server specifying the interface to listen on.
```
npm start -- --host=0.0.0.0
```
This command will start the development server listening on all interfaces. Having a device on the same network you will be able to view the webpage at `http://[yourLocalIP]:8080` for example `http://192.168.1.1:8080`.
## How can i generate files for submission?
This project provides a npm script for building your application. Just run:
```
npm run build
```
This will generate two files `index.html` and `build.zip` both located in the `dist/` folder. The zip file contains only the generated `index.html`. The output from the command also tells you how large is the generated zip file.
## Resources
1. Webpack [https://webpack.js.org/](https://webpack.js.org/)
2. miniDragAndDrop [https://xem.github.io/miniDragAndDrop/](https://xem.github.io/miniDragAndDrop/)