GithubHelp home page GithubHelp logo

lugixion / cookieclicker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ozh/cookieclicker

0.0 1.0 0.0 6.72 MB

Cookie Clicker copy for, errrr, educational purpose.

JavaScript 88.35% CSS 4.95% HTML 6.47% Hack 0.23%

cookieclicker's Introduction

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 /img/ directory :

  • wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/img/
  • grep -v PARENTDIR index.html | grep -o '/img/*[a-zA-Z]*.*"' | sed 's/\/img\///' | sed 's/"//' >list.txt
  • wget -N -i list.txt -B http://orteil.dashnet.org/cookieclicker/img/

2. Fetch all new sounds :

Similarly, from the /snd/ directory :

  • wget --convert-links -O index.html http://orteil.dashnet.org/cookieclicker/snd/
  • grep -v PARENTDIR index.html | grep -o '/snd/*[a-zA-Z]*.*"' | sed 's/\/snd\///' | sed 's/"//' >list.txt
  • wget -N -i list.txt -B http://orteil.dashnet.org/cookieclicker/snd/

3. Update js, html and other files :

From the root directory :

  • Fetch updated js files : wget -N -i list.txt -B http://orteil.dashnet.org/cookieclicker/
  • Fetch the updated index.html file
  • Scan index.html for any new <script src and also main.js for any new local javascript (eg Game.last.minigameUrl)
  • Create a new folder named patreon and then fetch grab.php file inside patreon dir: wget https://orteil.dashnet.org/patreon/grab.php

4. Report update here :)

If you happen to update, please make a pull request for others to benefit, thanks!

cookieclicker's People

Contributors

delivator avatar gooderist0x1 avatar lugixion avatar ozh avatar qfoxb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.