Giter Club home page Giter Club logo

moving-block's Introduction

Moving Block

Hello and welcome to my moving block game! โฌœ๐ŸŽ†โฌœ

The game is playable here.

Why did I make this game? ๐Ÿญ๐Ÿญ๐Ÿญ

This game is the result of a project I was assigned as an exercise to learn JavaScript. The objectives were to move DOM elements on the page, react to keypresses, and detect collisions. The game had to have an element that could be controlled and an element that served as food that would go to a different position when it was touched.

How does the game look? ๐Ÿ๐Ÿ๐Ÿ

The window loads onto a grassy background with margins. The container contains 4 elements: a snake, a mouse, a scoreboard, and a collage of items.

How to play the game? 1๏ธโƒฃ2๏ธโƒฃ3๏ธโƒฃ

The objective is to lead the snake to the mouse(wherever he is on the screen). When the mouse is 'eaten', he reappears in a random place on the screen. At the same time, the number in the scoreboard goes up per mouse 'eaten'. The mouse can 'hide' behind different objects in the active area so the game has an extra element of playing. Use the arrow keys to chase the mouse and repeat until satisfied.

Permissions

The game was made for fun and as a learning objective. The images used are not mine but are used as a student for learning purposes.

moving-block's People

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.