Giter Site home page Giter Site logo

brianwilsongh / ciphercell Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.37 MB

HTML5/JavaScript browser game. Beat my high score of 54670 and get a prize!

Home Page: https://wilsontheory.github.io/CipherCell/

JavaScript 90.22% HTML 3.80% CSS 5.98%

ciphercell's Introduction

Background

CipherCell is a hacker-themed HTML5 game based loosely on Bypass - a mini-game from the Mass Effect franchise. Like the original, CipherCell will feature a stage of concentric rings dotted with walls. The goal is for the player to move to the center in a limited amount of time without colliding into any objects.

Image of CipherCell

Rules

Players must reach the innermost ring of the cell. Once this happens, they will spawn again at the 6 o'clock position, and the difficulty of the stage will be incremented. The goal is to reach the center of the cell as many times as possible in the shortest possible time, leading to the highest possible point tally in the end.

Players lose when detection reaches 100%. Any of the following conditions can increase the detection percentage:

  • player runs out of time on the counter, resulting in a continuous gain in detection
  • player comes into contact with a red-colored "killer", gaining detection points the longer they are inside of it
  • player comes into contact with a golden-colored "hunter killer", gaining detection at three times the normal rate Image of HK contact

Controls

  • Move the arrow with either WASD or arrow keys
  • Players can only move within the five 'orbits' of the ring, using A/D or left/right arrows to rotate around
  • Players start outside of the cell with the ability to rotate and chooser where to enter it
  • Players can move closer to the center with the "up" command (W or up arrow)
  • Players can move away from the center with the "down" command (S or down arrow)
  • The game can be paused with the spacebar

Implementation

The game is implemented with HTML5 canvas and vanilla JavaScript, which is bundled together with Webpack.

The game utilizes quite a bit of trigonometry to calculate everything from the rotation of the player's arrow to the calculations involved in collision detection.

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.