Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stared/quantum-game
Quantum Game (old version) - a puzzle game with real quantum mechanics in a browser
https://github.com/stared/quantum-game
game javascript physics puzzle quantum-game quantum-mechanics
Last synced: 1 day ago
JSON representation
Quantum Game (old version) - a puzzle game with real quantum mechanics in a browser
- Host: GitHub
- URL: https://github.com/stared/quantum-game
- Owner: stared
- License: mit
- Created: 2015-12-31T12:03:25.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T23:46:16.000Z (almost 2 years ago)
- Last Synced: 2025-01-13T09:06:41.200Z (9 days ago)
- Topics: game, javascript, physics, puzzle, quantum-game, quantum-mechanics
- Language: JavaScript
- Homepage: http://v2016.quantumgame.io/
- Size: 2.64 MB
- Stars: 345
- Watchers: 12
- Forks: 43
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
Quantum Game with Photons (2014-2016)
============**A note: this repository is an old Quanutm Game (2014-2016), no longer maintained. The new one (2019-) is at [quantumgame.io](http://quantumgame.io).**
Quantum Game - play with photons, superposition and entanglement. In your browser! With true quantum mechanics underneath!
* Official address: http://quantumgame.io (initial beta released on 3 Jun 2016, http://play.quantumgame.io)
* Social media: Facebook: [Quantum Game with Photons](https://www.facebook.com/quantumgameio), Twitter: [@quantumgameio](https://twitter.com/quantumgameio)
* Authors: [Piotr Migdał](http://p.migdal.pl), [Patryk Hes](https://github.com/pathes), [Michał Krupiński](http://www.fiztaszki.pl/user/3).
* Supported by: [eNgage III/2014](http://www.fnp.org.pl/laureaci-engage-iii-edycja/) grant.
* A recent screenshot:![Screenshot](screenshot_qg_dev.png)
# Development version
It's JavaScript, ES6. To build it you need [Node.JS](https://nodejs.org/) and [jspm.io](http://jspm.io/) package manager.
It's open for collaboration - from level creation, through interface (re)design and adding additional effects (two-photon interference, interactions with an electron). Interested? Mail [email protected].
## Installing
After installing Node.js and jspm.io, and cloning this repository:
Then install local packages.
```bash
npm install
jspm install
```Additionally, for development we use `eslint` with `eslint-plugin-lodash`.
**A note: jspm is seriously outdated and the build may not work.**
## Running server
Start local HTTP server in the quantum game directory (e.g. by [http-server](https://www.npmjs.com/package/http-server)).
**Does not need an install, as there are pre-built files.**## Running tests
```bash
./node_modules/.bin/karma start
```# Production version
Bundle it (and minify, if you want):
```bash
jspm bundle-sfx --minify app
```It creates a `build.js` file. To run it we need a modified `index.html` (it is a *manually*-modified file, stored in `bundled/index.html`).
On the server, the structure of files should look as follows:
```bash
css\
favicon.ico
build.js
index.html
```## Docker
Alternatively, you can install dependencies using Docker.
### Building
* You can build this image by running the following command in the root of this repository: `docker build .`
* You can also pass in a valid JSPM_GITHUB_AUTH_TOKEN by building like this: `docker build --build-arg JSPM_GITHUB_AUTH_TOKEN="a_jspm_encrypted_github_token" .`
* For more information see: https://stackoverflow.com/questions/30995040/jspm-saying-github-rate-limit-reached-how-to-fix### Running
* If your build completes sucessfully there will be a new image ID printed at the end of the build, which you can then use to to run it: `docker run -d -p 80:8080 ${IMAGE_ID_FROM_BUILD}`
* or for a community built image try this: `docker run -d -p 80:8080 spkane/quantum-game:latest`and then open up a web browser and point it to port 80 on your Docker host.