Giter VIP home page Giter VIP logo

arcade-game's Introduction

前端纳米学位街机游戏克隆项目

学生应该用这个评审标准)来自我检查自己提交的代码。 确认自己写的函数要是面向对象的 - 要么是类函数(就像函数 Player 和 Enemy)要么是类的原型链上的函数比如 Enemy.prototype.checkCollisions , 在类函数里面或者类的原型链函数里面适当的使用关键词 'this' 来引用调用该函数的对象实例。最后保证你的readme.md文件要写明关于如何运行和如何玩你的街机游戏的指引。

关于如何开始这个项目的更详细的指导,可以查阅这份指南

青蛙过河

这是一个简单的游戏,玩家通过在键盘上按动↑→↓←来控制人物进行上右下左的移动,当人物穿过虫子所行走的道路后,并到达河的位置,表示游戏通过

安装

1. git clone https://github.com/sfltf/Arcade-game.git            
2. cd ~/document/index.html

###游戏相关介绍 到达指定的目录后,打开index.html文件,游戏即可运行。在运行过程中,需要玩家通过键盘的上下左右键控制人物进行移动,移动的时候需要躲避小虫子。一旦人物碰到小虫子,则立刻重置回到原来的起点。人物触碰到宝石,宝石则会重新随机出现在石块上。人物只能在画面里进行移动,人物无法在画面外移动。通关后,会出现画面,恭喜你,通关。并且有3颗星星,小虫子也会停止移动。

arcade-game's People

Contributors

sfltf avatar

Watchers

James Cloos 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.