Skip to content

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

License

Notifications You must be signed in to change notification settings

cpp-gamedev/world-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published