PongClock is a unique clock application that displays the current time using a Pong-style game interface. The clock uses the Pong game mechanics to represent the hours and minutes of the current time.
Check out the live demo of PongClock at pongclock.com.
- Displays the current time using a Pong-style game interface
- The player scores represent the hours and minutes of the current time
- Authentic player logic simulates realistic paddle movement
- The speed of the ball increases with each paddle impact
- Responsive design that adapts to different screen sizes
- Minimal and intuitive user interface
- Sound effects for a more immersive experience
- Debug screen for advanced users to view additional information
-
Clone the repository: git clone https://github.com/RchGrav/PongClock.git
-
Navigate to the project directory.
-
Open the
index.html
file in your web browser.
- The left player's score represents the current hour in 24-hour format.
- The right player's score represents the current minute.
- The ball movement and speed are synchronized with the current time.
- The game automatically updates every second to reflect the current time.
- Tap the screen to toggle sound on and off.
- Long press on the screen to toggle the debug screen.
- Click anywhere on the browser window or the Pong playfield to toggle the sound on and off.
- Press the ` key (backtick) to toggle the debug screen.
├── css/
│ └── styles.css
├── js/
│ └── script.js
├── fonts/
│ └── ScoreFont.ttf
├── index.html
└── webfont.js
- The
css
folder contains the CSS file (styles.css
) for styling the clock interface. - The
js
folder contains the JavaScript file (script.js
) that handles the game logic and time synchronization. - The
fonts
folder contains the custom font file (ScoreFont.ttf
) used for displaying the scores. - The
index.html
file is the main HTML file that structures the clock interface. - The
webfont.js
file is a library for loading and using custom web fonts.
- webfont.js - A library for loading and using custom web fonts.
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.
This project is licensed under the MIT License.
WebFont Loader Copyright (c) 2010-2017 Adobe Systems Incorporated, Google Incorporated. Licensed under the Apache License, Version 2.0.