cgl

Version, currently main branch1 version
  • main branchlatestSep 21, 2025

github.com/drpaneas/cgl

an example of Crystal API for PICO-8 using Raylib

0 stars
0 dependents
License: not declared

Installation

# Add this to your shard.yml
dependencies:
  cgl:
    github: drpaneas/cgl
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
no constraint declared

Dependencies

Runtime Dependencies

README

CGL - Crystal Game Library

A blazing-fast PICO-8 inspired game development library for Crystal.

Quick Start

# Install dependencies
shards install

# Run an example
crystal run examples/pong.cr

Examples

  • cls_demo.cr - Color cycling
  • pset_demo.cr - Pixel animations
  • line_demo.cr - Line drawing
  • rect_demo.cr - Rectangle shapes
  • math_demo.cr - Math functions
  • print_demo.cr - Text rendering
  • input_demo.cr - Keyboard input
  • pong.cr - Complete playable game