项目作者: ahmedhammad97

项目描述 :
Pure JavaScript level progression game. One player, faces both static and dynamic lava, monsters and plenty of walls. Has to collect all the coins to win.
高级语言: JavaScript
项目地址: git://github.com/ahmedhammad97/Fathy-Collecting-Coins.git
创建时间: 2017-09-07T15:50:39Z
项目社区:https://github.com/ahmedhammad97/Fathy-Collecting-Coins

开源协议:

下载


Fathy Collecting Coins

A level progression game, where the player “Fathy” tries to collect all the coins in each level, while avoiding monsters, moving and static lava blocks.

How it works:

The game plans are written as 2D arrays of chars, which are rendered to an HTML blocks and attached to the document body -No canvas used-.

The actors (monsters and moving lava), are given a range of pixels to move in, and then either reverse the motion direction, or reset to the starting position.

Each actor has a collide prototype, which is fired when the player touches it, each with a different set of actions. For example, you may kill a monster if collide from the top of it, but loses if collide from the side.

Finally, when the player loses, the level restarted, and the next level is loaded then he collects all the coins in a level.

Features:

  • ScoreBoard with a track of time, score, and coins left.
  • Ability to pause the game.
  • Sound effects for many actions.
  • Five well designed level maps.
  • Different speed for each monster.

Screenshots:

Screenshot

Idea and plans were copied from “Eloquent Javascript” book.