Giter Site home page Giter Site logo

buninman / snake-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from epicfrayz/snake2d-opp

2.0 0.0 0.0 128 KB

My first fork project as part of learning JavaScript. Snake game is on pure JS without libraries

Home Page: https://buninman.github.io/Snake/

License: GNU Affero General Public License v3.0

JavaScript 76.90% CSS 10.22% HTML 12.88%

snake-js's Introduction

alt text

Implementation of the Snake game in JavaScript.

⚠ So far, only for desktop gameplay (⚆_⚆)

You can play here: https://buninman.github.io/Snake/

Code analysis with detailed explanations here: https://blog.buninman.ru/snake (ru)

What's new?

  1. New design of the playing field
  2. New high score counter
  3. Added the ability to change the speed of the snake. PgUp, PgDwn and 1-8 keys
  4. Created the GodMode, the snake can't eat itself. G button
  5. Snake Control Hint
  6. Now you can't turn 180° and bite yourself. The snake doesn't die from accidental pressing

⚠ To work, you need an http-server. I used Live Server Extension in Visual Studio Code

snake-js's People

Contributors

epicfrayz avatar buninman avatar

Stargazers

KAGU avatar Dmitry Chuev 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.