Skip to content

Latest commit

 

History

History
140 lines (91 loc) · 5.67 KB

File metadata and controls

140 lines (91 loc) · 5.67 KB

EatKun

EatKun

🦌 Web Game 🥛

Introduction

A web game: EatKun

Latest version: 0.2.1

简体中文 | 繁體中文 | Github | Wiki | Play | Latest Build | Releases

Features

A simple ranking list (day/week/month) is provided.

You can delete all the sql/php files if you don't need them.

Requirements

  • MySQL 5+
  • PHP 5+

Disclaimer

This game has no association with 蔡徐坤 or his management team and is for entertainment purposes only.

The content of static/image and static/music comes from the 爱给网. If there is infringement, it can be found in Issues Contact to delete and attach the 'delete' tag.

Usage

Note: if you just want to play it, go to online version. Here is how to create your own version.

Github Pages

You can run it on Github Pages if you don't need the ranking list.

Follow these steps to change the text displayed to what you want.

  1. Fork this repository. DON'T CHANGE DIRECTLY IN THIS PROJECT.

  2. Open the repo you forked. Go to static/i18n/en.json and find these texts below:

    {
      "game-title": "New concept audio game",
      "game-intro1": "Start at the bottom and",
      "game-intro2": "see how many points you can get",
      "game-intro3": "OK!",
      "game-intro4": "KUN does not leave one! ",
      "text-level-1": "Try to practice well for two and a half years?",
      "text-level-2": "Not yet to the level of KUN!",
      "text-level-3": "Soon to surpass KUN!",
      "text-level-4": "You should have been practicing for 2.5 years!",
      "text-level-5": "KUN: Another love KUN has joined our Litchi Group!",
    }

    You can change the text on the right side. Note that don't remove quotes(i.e. ")

  3. Go to directory static/image. The image shown before clicking is ClickBefore.png, after is ClickAfter.png, and the icon displayed on the website is ProgressiveWebApps.png (ratio must be 1:1).

    The file type must be png

  4. Go to directory static/music. The sound played when tapping is tap.mp3, when ending without errors is end.mp3, while ending with errors is err.mp3.

    The file type must be mp3

  5. After changing all resources to your own, go to repository Settings -> Pages -> Source, choose main branch and click Save.

Deploying to Server

Follow these few steps to configure the database for ranking list on your server.

  1. Create your own database and execute the script provided(e.g. use kun as database name):

    CREATE DATABASE kun DEFAULT CHARSET=utf8;
    USE kun;
    SOURCE kun.sql;
  2. Change the code in conn.php, which contains your database info, and its content is here:

    <?php
    // Change this to your own configuration
    $link = new mysqli('localhost','NAME','PASSWORD','kun');
    mysqli_set_charset($link, 'utf8');
    if ($link->connect_error) {
        die("Failed to connect: " . $conn->connect_error);
    }
    $ranking = "kun_rank";

Used items and their licenses

  1. EatKano (Website GitHub License: MIT license)

  2. EatCat (GitHub License: Unknown)

  3. EatCat (GitHub License: Apache License 2.0)

  4. Bootstrap 5.1.3 (Website GitHub License: MIT license)

  5. SoundJS 1.0.2 (Website GitHub License: MIT license)

  6. jQuery 3.7.1 (Website GitHub License)

  7. JSEncrypt 3.5.4 (Website GitHub License)

Star statistics

Stargazers over time

Others

This project is authorized by MIT License. When using this project, please indicate the source/original author.

README.md / README_EN.md and this Wiki of this project are authorized to use Creative Commons Attribution 4.0 International Public License. When using these texts, please indicate the source.