Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ozh/cookieclicker
Cookie Clicker copy for, errrr, educational purpose.
https://github.com/ozh/cookieclicker
cookie cookie-clicker cookieclicker game
Last synced: about 1 month ago
JSON representation
Cookie Clicker copy for, errrr, educational purpose.
- Host: GitHub
- URL: https://github.com/ozh/cookieclicker
- Owner: ozh
- Created: 2014-02-13T21:16:56.000Z (over 10 years ago)
- Default Branch: gh-pages
- Last Pushed: 2024-04-25T14:57:40.000Z (5 months ago)
- Last Synced: 2024-06-27T09:34:52.473Z (3 months ago)
- Topics: cookie, cookie-clicker, cookieclicker, game
- Language: JavaScript
- Homepage: http://ozh.github.io/cookieclicker/
- Size: 13.1 MB
- Stars: 200
- Watchers: 18
- Forks: 717
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cookieclicker
The original game can be found at http://orteil.dashnet.org/cookieclicker/
This mirror for, errrr, like, educational purpose, either to download for your own offline education or to be played online from http://ozh.github.io/cookieclicker/ if you cannot "educate" yourself on the original URL
### How to update
If the original game updates, here is how you can update the mirror:
#### 1. Fetch all new images :
From the root,
* `cd img/`
* `wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/img/`
* `grep -v PARENTDIR index.html | grep '\[IMG' | grep -Po 'a href="\K.*?(?=")' | sed 's/\?.*//' > _imglist.txt`
* `wget -N -i _imglist.txt -B http://orteil.dashnet.org/cookieclicker/img/`#### 2. Fetch all new sounds :
Similarly, from the root :
* `cd snd/`
* `wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/snd/`
* `grep -v PARENTDIR index.html | grep '\[SND' | grep -Po 'a href="\K.*?(?=")' | sed 's/\?.*//' > _sndlist.txt`
* `wget -N -i _sndlist.txt -B http://orteil.dashnet.org/cookieclicker/snd/`#### 3. Fetch all new translations :
Similarly, from the root :
* `cd loc/`
* `wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/loc/`
* `grep -v PARENTDIR index.html | grep '\[ ' | grep -Po 'a href="\K.*?(?=")' | sed 's/\?.*//' > _loclist.txt`
* `wget -N -i _loclist.txt -B http://orteil.dashnet.org/cookieclicker/loc/`#### 4. Update `js` and `html` files :
From the root directory :
* Fetch the updated `index.html` file: `wget -O index.html http://orteil.dashnet.org/cookieclicker/`
* Fetch the updated `style.css` file: `wget -O style.css http://orteil.dashnet.org/cookieclicker/style.css`
* Fetch updated `js` files : `wget -N -i _jslist.txt -B http://orteil.dashnet.org/cookieclicker/`
* Scan `index.html` for any new `