Skip to content

goofmint/breakout-gh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contribution Graph Breakout

A JavaScript snippet that turns a GitHub profile Contribution Graph into a playable breakout-style game.

How To Play

  1. Open a GitHub profile page with a visible Contribution Graph.
  2. Open Chrome DevTools.
  3. Paste the snippet into the Console and press Enter.
  4. Move the paddle with the mouse or keyboard:
    • Arrow Left / Arrow Right
    • H / L

Gameplay

  • Blocks are built from the Contribution Graph cells.
  • Darker green blocks require more hits (1–4).
  • Catch falling items to:
    • Add a ball
    • Extend the paddle
    • Shrink the paddle
  • Clear all blocks to win.
  • Lose all balls to get game over.

Notes

  • If the graph is missing, a message is shown and the game does not start.
  • If the graph has no blocks, a message is shown and the game does not start.
  • The last input source used (mouse or keyboard) takes control.

License

MIT.

About

Breakout game on GitHub commit history

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors