• mmichlol released this 2026-02-07 13:25:40 +00:00 | 9 commits to main since this release

    🎮 v0.0.6-beta - Interactive Input & Keyboard Control

    This update introduces real-time keyboard interaction capabilities, making PCC suitable for simple game development and interactive CLI tools. It includes a new Input library and system-level _getch support.

    New Features

    • Real-time Input: Added read_key() system call (wrapping _getch), which captures keystrokes instantly without waiting for ENTER.
    • Input Standard Library (std/Input.pcc):
      • Key codes for Arrows (UP, DOWN, LEFT, RIGHT).
      • Key codes for WASD gaming controls.
      • Special keys: ESC, ENTER, SPACE, TAB, BACKSPACE.
      • Function keys: F1 - F10.
      • Helper functions: WaitForSpecificKey(int key) to block execution until a specific key is pressed.
    • Void Return Fix: Fixed parser issues with return; in void functions (now safely compiles to return 0/empty).

    🛠 Improvements

    • Expanded CodeGen: CALL instruction now supports read_key and special system hooks.
    • Documentation: Updated with a new "Input & Keys" section and interactive examples.

    📦 How to use:

    1. Download the latest release from the Assets section below.
    2. Unzip the archive to C:/PCC/.
    3. Run setup.bat as Administrator.
    4. Compile your code from anywhere:
      PCC.exe file.pcc
      
    Downloads