Git Product home page Git Product logo

warrenmwang / snake-threejs Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 669 KB

Learning some javascript, might as well try to recreate the classic snake game. But I also like doing things in non standard and potentially stupid ways, so it's in threejs where the "board" is still 2D in a 3D environment for no reason.

Home Page: https://warrenmwang.github.io/snake-threejs/

JavaScript 98.24% HTML 1.58% Shell 0.17%

snake-threejs's Introduction

Snake Game in Three.js

Description

Trying to brush up on my javascript. What better way to do that than to recreate the classic Snake Game. I hope to have a fully functioning snake game that the player can play in a small 3D environment.

The game itself is still played on a small 2D, flat screen. I might try to expand upon it to be a 3D version like the one found on cool math games found here.

If you do not know about the classic snake game, check it out here on wikipedia.


Play Instructions

The snake is controlled by the standard WASD keys W - Up
S - Down
A - Left
D - Right

To reset the game, press r.

To pause the game and/or to change the camera angle, press c.

After pausing the game, you can change the camera angle with the same WASD keys. The camera fov is fixed at the center of the board, and you can also manipulate your view of the board using the mouse left and right buttons with click and drag, similar to manipulating an object in a 3D modeling program.

snake-threejs's People

Contributors

warrenmwang avatar

Watchers

 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.