GithubHelp home page GithubHelp logo

plumrx / canvas2048 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mutoe/canvas2048

0.0 0.0 0.0 50 KB

学习并使用 html5 canvas+javascript 制作 2048 小游戏

Home Page: https://plumrx.github.io/canvas2048

CSS 7.55% JavaScript 86.97% HTML 5.48%

canvas2048's Introduction

canvas 2048

学习并使用 html5 canvas 制作 2048 小游戏

需求文档

操作区有4X4共16个空白小卡片, 开局时随机出现若干卡片上面有数字2或4, 玩家可使用方向键控制所有卡片移动.

当按下"↓"方向键时, 所有卡片移动到底部并且相同数字的卡片合并成两个卡片数字之和, 随后在随机空白位置生成1张数字为"2"或"4"的卡片, 以此类推.

当所有位置被填满并且无法继续操作时, 游戏结束, 统计当前所有卡片数字之和, 作为玩家游戏成绩.

游戏结束后, 将玩家成绩与玩家输入的昵称提交到服务器, 并且返回当日/近30天/总榜前10名名单.

制作过程

制作已经放在 bilibili av9028663 , 欢迎观看与学习.

试玩

已经投放在我的个人网站 http://game.mutoe.com/2048

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.