Code Monkey home page Code Monkey logo

eatkano's Introduction

EatKano

EatKano

🦌 网页小游戏 🥛

简介

小游戏:吃掉小鹿乃

English | 鹿乃b站 | 线上版本 | Github Pages

可选功能

简易排行榜(日/周/月) 不推荐使用

不需要排行榜把php/sql文件都删掉即可

版本需求

  • MySQL 5+
  • PHP 5+

使用方法

注: 如果你想玩的话直接去玩就可以, 这里是如何制造你的改版

Github Pages

这里 看视频步骤

如果你不需要排行榜, 那么部署到Github Pages即可.

按照如下方法更改你想要显示的文字

  1. Fork本项目,不要在现在这个页面直接改,然后发现改不了.

  2. 打开你Fork的项目, 找到static/i18n/zh.json, 找到下面这几项配置

    {
      "game-title": "新概念音游",
      "game-intro1": "从最底下的开始",
      "game-intro2": "看你能得多少分",
      "text-level-1": "试着好好练一下?",
      "text-level-2": "TCL",
      "text-level-3": "TQL",
      "text-level-4": "",
      "text-level-5": "人?"
    }

    你可以随意更改右侧文字, 就可以显示你想要的内容 不要删掉双引号

  3. 找到static/image文件夹, 点击前显示的图片是ClickBefore.png, 点击后的图片是ClickAfter.png, 把他们改成你想要的即可.

    注意文件格式, 需要是png

  4. 找到static/music文件夹, 点击时的音效是tap.mp3, 正常结束的音效是end.mp3, 点击错误的音效是err.mp3, 把他们改成你想要的即可.

    注意文件格式, 需要是mp3

  5. 更改完毕后前往项目的Settings -> Pages -> Source, 选择main 分支然后点击Save.

部署到服务器

按照这些步骤来在你的服务器上配置排行榜的数据库

  1. 创建数据库并且执行提供的脚本(这里用kano作为数据库名)

    CREATE DATABASE kano DEFAULT CHARSET=utf8;
    USE kano;
    SOURCE kano.sql;
  2. 更改有数据库信息的conn.php为你的数据库配置

    <?php
    // 把这里改为你的配置
    $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";

其它事项

点下star吧~ 欢迎pr代码

eatkano's People

Contributors

arcxingye avatar hikariyo avatar zjkwdy avatar alingcat 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.