Git Product home page Git Product logo

piano-tiles's Introduction

网页仿制钢琴块2游戏

基本任务:

  1. 从左到右四列,新的黑块随机选择一列出现,且上下黑块不在同一列;

  2. 使用键盘控制(如R、T、Y、U四个按键)代替触摸,点击黑块;

  3. 每个黑块的高度为游戏界面高度的四分之一,和原版游戏一样;

  4. 漏点、错点要提示游戏结束。

拓展任务:

  1. 实现计分功能,每正确点击一个黑块,分数+1;

  2. 实现黑块下移速度逐渐加快,并实时显示游戏速度;

  3. 当网页退出或者刷新时,通过localStorage实现存储历史记录,显示最高分数和游戏速度;

  4. 给界面添加了背景图,并在游戏开始之后出现飘动的气泡和星星;

  5. 设置白色钢琴键颜色为半透明,黑块点击之后变成接近半透明的黑色,点击白块后会变为红色提示;

  6. 游戏有两个模式,分别是单人模式和双人模式,可以分别实时记录两个玩家的分数和速度。

开源安全社区检测报告: Security Status

piano-tiles's People

Contributors

kiiakia 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.