GithubHelp home page GithubHelp logo

andresmweber / 4dsnake Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 21.42 MB

You've all seen snake, but let's bring it into the fourth D I M E N S I O N!

Home Page: https://andresmweber.github.io/4DSnake/

License: BSD 3-Clause "New" or "Revised" License

CSS 5.25% HTML 4.43% JavaScript 90.32%
4d-snake snake andres weber andresmweber crossyroad threejs javascript-game three-d three-js

4dsnake's Introduction

4DSnake Promo

"4D" Snake 🐍


You've all seen snake, but let's bring it into the true third (not really fourth) D I M E N S I O N!

📝 Table of Contents

🧐 About

After seeing Snake game after Snake game, I noticed that the trend was whenever it was adapted to 3D it always lacked Y-axis movement! Since I felt that was a total waste of a dimension that set me off to implement a version of it that wasn't constrained to two axes in JavaScript. After finding three.js I knew I would be able to complete my idea! Without futher ado:

🕹️ How to Play

4D Snake!

Control Scheme

PC Mobile
Left A Swipe Left
Right D Swipe Right
Up W Swipe Up
Down S Swipe Down
Rotate Camera Left Click Drag Triple Touch
Zoom Camera Mouse Wheel Drag Double Touch

Installation

You can test and run this just by dragging public/index.html into the browser.

Feel free to install using NPM as well npm install 4dsnake.

🚀 Deployment

This project is deployed on Github Pages. By keeping the top level index.html file, it will automatically populate to github pages. The only thing you need to do is edit the route to your own public/index.html route hosted on github pages.

You can also host this project on any cloud deployment you like, I chose Heroku for its quick setup. It hosts the project using NodeJS a simple http-server that uses the $PORT environment variable (or defaults to 4000).

⛏️ Tech Stack

✍️ Authors

🎉 Acknowledgements

  • @Ironhack for supporting me during the project!
  • @bobbypwang - For keeping me sane throughout the project and helping me brainstorm the idea.
  • @crispinonicky - For helping me out with some radian math!

4dsnake's People

Contributors

andresmweber avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.