cpp-gamedev / world-clock

Simple 2D 24-hour clock with a hand for each time-zone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

world-clock

Simple 2D 24-hour clock with a hand for each time-zone

world-clock-2022-05-20_18.44.20.mp4

Usage

  1. Build and run
  2. [optional] Customize world_clock.json in the working directory
  3. Press A/D/Left/Right to rotate hands
  4. Press Space to reset rotation
  5. Press Escape to quit

world_clock.json format

The document root must be a single object containing a list of objects (key-value pairs). Currently supported variables are listed below:

{
 "some_unique_id": {
    "offset": -3.25,
    "colour": "#ff8800ff"
  }
}

Building

Requirements

  1. CMake 3.19+
  2. C++20
  3. [optional] vulkify

Configuration

  1. If vulkify is installed, pass its path as CMAKE_PREFIX_PATH when configuring:
cmake -S . -B out -DCMAKE_PREFIX_PATH=path/to/vulkify
  1. Otherwise world-clock will download it via CMake FetchContent

About

Simple 2D 24-hour clock with a hand for each time-zone

License:MIT License


Languages

Language:C++ 93.0%Language:CMake 7.0%