Giter Site home page Giter Site logo

vadimgierko / snake-game-react Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.33 MB

Old School 2D Snake Game Clone written from scratch in React

Home Page: https://vadimgierko.github.io/snake-game-react/

HTML 8.87% CSS 4.44% JavaScript 86.69%
react snake snake-game

snake-game-react's Introduction

Old School 2D Snake Game Clone written in React

Play the game here: https://vadimgierko.github.io/snake-game-react/ CodeSandbox demo: https://codesandbox.io/s/snake-game-react-qreqki Source code on GitHub: https://github.com/vadimgierko/snake-game-react

Motivation

No tutorial was used in the game dev. The game was written from scratch entirely by me using React for entertainment and learning purposes.

I wanted to learn & manage how to develop & build:

  • game logic,
  • game loop binded to timer,
  • touch controler for touch screens.

As a side effect, I've refactored the code to adapt it for future use in case I want to build another game with game loop binded to timer, like... Tetris ;-)

Previously, I've built the game in JavaScript using p5.js library a year ago, but this time I wanted to do it in React without external libraries for animations.

Stack

  • React
  • React Icons
  • CSS

snake-game-react's People

Contributors

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