Coder Social home page Coder Social logo

asishraju / endless-maze Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 453 KB

A browser-based game that generates Maze on the fly with never-ending levels ๐ŸŽฎ

Home Page: http://endless-maze.asish.me/

HTML 18.45% JavaScript 80.81% CSS 0.73%
matter ccd velocity game browser-games

endless-maze's Introduction

Endless Maze ๐ŸŽฎ

Check it out here!

Overview ๐Ÿ‘€

Browser based game that generates Maze on the fly with never ending levels and incresed complexity in each level

  • WASD Controls ๐Ÿ•น
  • Endless Levels ๐Ÿ˜ต
  • Increasing Complexity with each level ๐Ÿ˜ฒ

Role of Matter.js ๐Ÿค”

  • This library helps in handling all the canvas manipulation which would be more difficult to do with default methods

  • One good thing about this library is providing collisions by defaults to every body created in the game world and does most of the heavy lifting for the detection

  • one thing to remember is Simulating Physics in computational world is very hard and Matter.js does a pretty good job coming very close to real physics

WIP ๐Ÿ› 

  • Mobile Version (making html canvas responsive is nightmare ๐Ÿ˜–)

Sidenote ๐Ÿ“„

  • The reason i stated Matter.js very close to real physics is due to its problem of not having CCD (Continous collision detection) built to its core, which tends to famous physics phenomenon Tunnelling where a body accquires enough velocity that it can pass through the rigid bodies.

  • This can be seen sometimes during gameplay of Endless-Maze when user does long press for a movement key, the velocity keeps adding to the ball and eventually pass through the walls.

  • I have done some workaround to this problem which minimizes the velocity in a nasty way, it dosen't totally removes this problem but somewhat reduces it.

  • This issue cant be resolved until CCD is built into Matter.js

  • On more info on how CCD solves this problem visit here

How To Contribute๐Ÿค

I would recommend you to get familar with the test\index2.js before you start learning the maze generation algorithm and also a piror knowledge on Matter.js should be necessary in order to understand the logic code

whole project took ~16hr to complete from learn to deploy

  • Yes,it is open source you can clone and change code to your need.
  • Most of the code is self explanatory, anyhow
  • for any clarification on code or want to contribute contact
  • Gmail / Twitter /LinkedIn

endless-maze's People

Contributors

asishraju avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

instinctwarrior

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.