Just a simple clock.
This clock displays real-time with ticking sound.
- Language: C++
- Graphics Library: raylib
Before building or running this project, ensure you have the following dependencies installed:
- C++ 20 compatible compiler or higher
Info: Make sure to check out the raylib wiki to make sure you have all necessary dependencies installed on your machine.
- Emscripten
- CMake (3.31 or higher)
Start by cloning the project from the GitHub repository:
# Clone the Repository
git clone https://github.com/Spike271/Analog-Clock.git-
Generate build files:
cmake -B build
-
Build the project:
cmake --build build -j8 --config Release
-
Create and navigate to the build directory:
mkdir build cd build -
Generate the build system files using Ninja:
cmake -G "Ninja" -D CMAKE_CXX_COMPILER=g++ -D CMAKE_BUILD_TYPE=Release .. -
Build the project:
ninja
-
Ensure you have Emscripten installed and activated in your environment.
-
Create and navigate to the build-web directory:
mkdir build-web cd build-web -
Generate the build files using Emscripten:
emcmake cmake .. -DPLATFORM=Web -DCMAKE_BUILD_TYPE=Release
-
Build the project:
emmake make
-
The build will generate the following files:
Analog_Clock.html- The HTML page to load the AppAnalog_Clock.js- JavaScript codeAnalog_Clock.wasm- WebAssembly binaryAnalog_Clock.data- App resources
-
To run the Application, you'll need to serve these files using a local web server:
# Using Python 3 python3 -m http.server 8080 # Then open localhost:8080/Analog_Clock.html in your browser # Alternatively, if you have the emscripten binaries in your path, you can run the following command emrun Analog_Clock.html

