zhenyan121 6b3872dc97 refactor(game_time): introduce Timer for time-based updates and rename existing to TickTimer
Add a new `Timer` class that operates in seconds (using `TimeType`) alongside the existing `TickTimer` which uses `TickType`. Rename the original `Timer` to `TickTimer` throughout the codebase. Update `ClientWorld` to maintain separate maps for tick-based and time-based timers, and replace the hardcoded footstep timer in `ClientPlayer` with a time-based callback timer. Also add `play_2d` to `AudioEngine` and load an ambient bird sound to demonstrate the new timer functionality.
2026-07-07 15:32:07 +08:00
2026-07-06 11:49:13 +08:00
2026-06-20 15:03:40 +08:00
2026-04-21 22:53:34 +08:00
2026-07-02 14:51:34 +08:00
2026-05-28 21:34:36 +08:00
2026-06-22 13:34:45 +08:00
2026-06-20 15:03:40 +08:00
2026-04-19 18:01:09 +08:00
2026-06-20 15:03:40 +08:00
2026-07-06 11:49:13 +08:00

What's it

A cube game like Minecraft, using C++ and OpenGL.

Build Guide

Prerequisites

  • CMake (>= 3.24)
  • C++ 23 compatible compiler

Step

  1. Clone the repository
    git clone https://github.com/zhenyan121/Cubed.git && cd Cubed
    
  2. Configure with CMake
    mkdir build && cd build
    cmake -G "Ninja" ..
    
  3. Build the project
    ninja
    
Description
No description provided
Readme MIT 38 MiB
Languages
C++ 96.8%
C 2.1%
GLSL 0.6%
Python 0.3%
CMake 0.2%