GithubHelp home page GithubHelp logo

mikempala / shifter Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 1.64 MB

HTML5 platform videogame made with HTML, CSS, and vanilla JS

Home Page: https://shifter.miguel-tellez.dev/

License: The Unlicense

HTML 5.55% JavaScript 85.83% CSS 8.62%
canvas canvas-game html5-game game platformer javascript-videogame html5

shifter's Introduction

SHIFTer

SHIFTer is an HTML5 / CSS / Vanilla JavaScript platform videogame inspired by Time Fcuk

You can play it here ➡️ https://mikempala.github.io/SHIFTer/

Instructions

Use the arrow keys and the space bar to navigate to the exit. Some levels require a key to unlock the door.

Most levels have two layers: lighter-colored tiles are 'walkable' in the current layer, while darker colored tiles are walkable in the second layer.

You can switch between layers using "A" and "D".

Sounds

All the sounds were created by me using FL Studio and YMCK's Magical 8bit Plug.

What approach was taken when creating this?

  1. Player and moving logic were coded.
  2. The game layout was created via a matrix. A method was created to inspect the matrix and return a tile-based on its value.
  3. A collision checker was added to the matrix: this allowed players to stay on platforms and exit levels.
  4. Levels became more complex, and more items were added, such as keys and saws.
  5. The main menu was created, followed by the tutorial (based on images).
  6. Sounds and timer were included as well as a final screen when the game was won.
  7. The code was refactored several times with readability and performance improvements.
  8. The main menu was re-imagined: the hamburger menu disappeared, animations were added, and the tutorial was integrated into the game.
  9. Warnings were added on two breakpoints to signal the lack of mobile support.
  10. The "congratulations" screen and timer were improved.
  11. A footer was added as well as a muting button that disables all sounds.

shifter's People

Contributors

mixiotez avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

keyzf

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.