A web game: EatKano
Kano's Twitter | Online Version | Github Pages
A simple ranking list(day/week/month) is provided.
You can delete all the sql/php files if you don't need them.
- MySQL 5+
- PHP 5+
Note: if you just want to play it, go to online version. Here is how to create your own version.
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.
-
Fork this repository. DON'T CHANGE DIRECTLY IN THIS PROJECT.
-
Open the repo you forked. Go to
static/i18n/en.json
and find these texts below{ "game-title": "Eat Kano", "game-intro1": "Start from the bottom", "game-intro2": "Can you tap 150 times?", "text-level-1": "Try again?", "text-level-2": "Not bad", "text-level-3": "Nice", "text-level-4": "Awesome", "text-level-5": "R U kidding?" }
You can change the text on the right side. Note that don't remove quotes(i.e.
"
) -
Go to directory
static/image
. The image shown before clicking isClickBefore.png
, and after isClickAfter.png
.The file type must be
png
-
Go to directory
static/music
. The sound played when tapping istap.mp3
, when ending without errors isend.mp3
, while ending with errors iserr.mp3
.The file type must be
mp3
-
After changing all resources to your own, go to repository
Settings
->Pages
->Source
, choosemain
branch and clickSave
.
Follow these few steps to configure the database for ranking list on your server.
-
Create your own database and execute the script provided(e.g. use
kano
as database name).CREATE DATABASE kano DEFAULT CHARSET=utf8; USE kano; SOURCE kano.sql;
-
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','kano'); mysqli_set_charset($link, 'utf8'); if ($link->connect_error) { die("Failed to connect: " . $conn->connect_error); } $ranking = "kano_rank";
Please star us~
Welcome to pull request!