Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anthony-mills/cryptocoaster
Dynamically generated side scroller game using Bitcoin market data from the last 24 hours.
https://github.com/anthony-mills/cryptocoaster
bitcoin bitcoin-price btc coinmarketcap-api game javascript phaserjs procedural-generation
Last synced: 6 days ago
JSON representation
Dynamically generated side scroller game using Bitcoin market data from the last 24 hours.
- Host: GitHub
- URL: https://github.com/anthony-mills/cryptocoaster
- Owner: anthony-mills
- License: gpl-3.0
- Created: 2018-04-09T08:01:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T22:51:25.000Z (almost 2 years ago)
- Last Synced: 2023-03-12T05:02:55.746Z (over 1 year ago)
- Topics: bitcoin, bitcoin-price, btc, coinmarketcap-api, game, javascript, phaserjs, procedural-generation
- Language: JavaScript
- Homepage: https://www.anthony-mills.com/projects/cryptocoaster/index.html
- Size: 27 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Crypto Coaster
Help the Bitcoin Rollercoaster Guy navigate the last 24 hours of the BTC markets with the side scrolling browser based game.
The game is built using [PhaserJS community](http://phaser.io/) and is dynamically generated using Bitcoin market data from the last 24 hours.
### Play
You can play a [running version of the game here](https://www.anthony-mills.com/projects/cryptocoaster/index.html).
### Screenshots
![Title Screen](/screenshots/title_screen.png?raw=true "Title Screen")
![Gameplay](/screenshots/game_playing.png?raw=true "Gameplay")
![News Item](/screenshots/news_open.png?raw=true "News Item")
![Game Over](/screenshots/game_over.png?raw=true "Game Over")
### Data Sources
* Price data is sourced from the [coinmarketcap API](https://coinmarketcap.com/api/).
* News items are pulled via RSS from [Coindesk](https://www.coindesk.com/) and [Bitcoinist](http://bitcoinist.com/) news sites.
### Installation
For development you can simply point a webserver at the src directory e.g
_cd src/_
_python -m SimpleHTTPServer 8001_Then point your browser to _http://localhost:8001_.
If you would like to build the codebase for distribution:
_npm install_
_grunt_The grunt task will minify your JS and copy your files into the www folder for distribution.
### Game States
The various game functionality is defined within the following game states:
* src/js/boot.js - Set up some global variables, defines the loading screen
* src/js/preloader.js - Define the game assets that need to bbe loaded for the game.
* src/js/main-menu.js - Merges the news articles and defines the game title sscreen
* src/js/game.js - Controls the complete gameplay state and the game over functionality.
* src/day-complete.js - If the BTC Roller Coaster Guy survives the full 24 hours of the Bitcoin market controls the game complete state.### Licence
Copyright (C) 2018 [Anthony Mills](http://www.anthony-mills.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program. If not, see .