Skip to content

Ali-Sdg90/Sticky-Scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sticky Scroll

Sticky Scroll is a simple game that challenges your scrolling speed! The objective of the game is to scroll down as fast as you can and score the highest points.

2023-05-25 13-39-04

Features

  • Easy to play
  • Records and displays the current and highest scores
  • Saves the highest score in the browser's local storage
  • Smooth ball animation when the score is updated
  • Randomizes the position of the scroll after each successful attempt

How to Run

  1. Clone the repository to your local machine using git clone https://github.com/Ali-Sdg90/Sticky-Scroll.git
  2. Open the index.html file in your preferred web browser.

Code Contents

The code contains the following files:

  • index.html: HTML markup for the game
  • style.css: Basic styling for the game
  • style.scss: SCSS version of the CSS file
  • script.js: JavaScript code for the game

The script.js file is the core of the game, and it contains the logic to track the scrolling, calculate the score, and update the score and highest score values.

Credits

This game is developed by Ali-Sdg90 as a personal project. If you have any questions or suggestions, feel free to contact me.