All Projects → abdoutech19 → hangman-game

abdoutech19 / hangman-game

Licence: MIT license
A responsive hangman game built with vanilla javascript, html, and css. Animated with GSAP and canvas animations.

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to hangman-game

vanilla-js
Projects using pure JavaScript without any external libraries or frameworks
Stars: ✭ 129 (+486.36%)
Mutual labels:  css3, flexbox, css-grid
Griddle
A CSS Grid Framework
Stars: ✭ 215 (+877.27%)
Mutual labels:  css3, flexbox, css-grid
Katana
Katana is CSS Layout System made with Flexbox
Stars: ✭ 57 (+159.09%)
Mutual labels:  css3, flexbox, css-grid
Cirrus
☁️ The CSS framework for the modern web.
Stars: ✭ 716 (+3154.55%)
Mutual labels:  css3, flexbox, css-grid
Flexy
Flexy is minimal CSS framework made with Flex
Stars: ✭ 114 (+418.18%)
Mutual labels:  css3, flexbox
Construcao De Paginas Web
Desenvolvimento de páginas semânticas, acessíveis e responsivas. 🚀
Stars: ✭ 113 (+413.64%)
Mutual labels:  css3, flexbox
Box Css Framework
Box - CSS Framework
Stars: ✭ 138 (+527.27%)
Mutual labels:  css3, css-grid
hangmanizr
➖ Quick hangman game
Stars: ✭ 29 (+31.82%)
Mutual labels:  hangman-game, hangman
csslayout
A collection of popular layouts and patterns made with CSS. Now it has 100+ patterns and continues growing!
Stars: ✭ 7,297 (+33068.18%)
Mutual labels:  flexbox, css-grid
cice-playground
CICE Full Stack Web Course
Stars: ✭ 12 (-45.45%)
Mutual labels:  css3, flexbox
DevHelpBox
we are creating this community so that other developers can get benefits of it.
Stars: ✭ 35 (+59.09%)
Mutual labels:  css3, javascript-game
Css Refresher Notes
CSS Refresher!
Stars: ✭ 1,450 (+6490.91%)
Mutual labels:  css3, flexbox
Gridlex
Just a CSS Flexbox Grid System
Stars: ✭ 1,328 (+5936.36%)
Mutual labels:  css3, css-grid
Personal Goals
List of books I've read, projects I've done, videos I've seen, articles I've read or podcasts I've listened to.
Stars: ✭ 75 (+240.91%)
Mutual labels:  css3, flexbox
glide
a modular but comfy startpage for many scenarios
Stars: ✭ 39 (+77.27%)
Mutual labels:  css3, css-grid
mst-effect
💫 Designed to be used with MobX-State-Tree to create asynchronous actions using RxJS.
Stars: ✭ 19 (-13.64%)
Mutual labels:  promise, asynchronous-programming
Awesome Flexbox
👓 A curated list of CSS Flexible Box Layout Module or only Flexbox.
Stars: ✭ 1,034 (+4600%)
Mutual labels:  css3, flexbox
Responsive Grid Of Hexagons
CSS responsive grid of hexagons
Stars: ✭ 481 (+2086.36%)
Mutual labels:  css3, css-grid
grid-garden
Solutions to CSS Grid Garden
Stars: ✭ 79 (+259.09%)
Mutual labels:  css3, css-grid
flexbox-carousel
CSS3 Animated Carousel with Flexbox
Stars: ✭ 23 (+4.55%)
Mutual labels:  css3, flexbox

Hangman Game


Hangman


About the project

Hangman is a word game in which one player has to guess a word that the other player (the computer in this case) has thought of, by guessing the letters in it. Every time the player guesses a wrong letter, the rope that's tightening the man will get pulled by a tiny bit, until it gets completely pulled and the man is hanged. The player has to make the right guesses before the rope gets completely pulled to win the game.

The game is responsive to different window sizes, built with HTML, CSS3, and vanilla javascript.


Project files description

  • index.html - The project's enterypoint.

  • main.js - The main javascript file that's responsible for running the game's logic, the animations, as well as fetching data from the APIs used in the project.

  • rope.js - This JS file contains the code for all canvas animations used to calculate and display the hanging animation of the person. The file mainly contains the logic that simulates the motion of a rope, which is the implementation of simple particle system that uses the physics of a spring force applied to each two connected particles to simulate the tension a real rope. The spring force is calculated using Hooke's Law with a spring-damper system which is modeled as follows: F = − β v − k x . Where:

    • x is the vector displacement of the end of the spring from it’s equilibrium position.
    • k is a constant describing the tightness of the spring.
    • b is the coefficient of damping.
    • v is the relative velocity between the two points connected by the spring.

    You can tweek all these parameters which are declared in the beginning of this file along with other paramters such as the mass of the particle, the density of each rope, and the gravity of the system to get different rope animation results.

  • loader.js - This JS file is responsible for displaying a loading animation while preloading all the media assets of the project (images and sounds) using PreloadJS.

Built With

Demo

Here is a live working demo: Hangman.

Usage

You are able to start the game locally in your machine by typing the following commands in the command line:

$ npm install -g live-server

After installing live-server, navigate to project directory and simply run:

$ live-server

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Email me at: [email protected].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].