Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Crystal
  3. Raylib-cr

Raylib-cr

Apache-2.0C5.0

Crystal language bindings for the raylib game development library, providing low-level access and operator overloads.

GitHubGitHub
114 stars19 forks0 contributors

What is Raylib-cr?

raylib-cr is a Crystal language binding for the raylib game development library. It provides Crystal developers with access to raylib's complete API for creating 2D and 3D games, simulations, and multimedia applications. The bindings include both raw function calls and Crystal-friendly operator overloads for mathematical operations.

Target Audience

Crystal programmers who want to create games, graphical applications, or multimedia projects using the raylib library's simple API.

Value Proposition

Developers choose raylib-cr because it provides the simplest way to use raylib from Crystal, with minimal abstraction overhead, operator overloads for mathematical types, and support for raylib's extended modules like RayGUI and audio systems.

Overview

LibRaylib Bindings for Crystal.

Use Cases

Best For

  • Creating 2D games with Crystal programming language
  • Building graphical simulations and visualizations in Crystal
  • Learning game development concepts with Crystal and raylib
  • Prototyping game ideas quickly with raylib's simple API
  • Developing cross-platform multimedia applications in Crystal
  • Adding graphical interfaces to Crystal command-line tools

Not Ideal For

  • Projects targeting MacOS as a primary development or deployment platform
  • Teams requiring high-level, object-oriented game engines with built-in tools and editors
  • Applications that need extensive third-party plugins or a large, active community for support
  • Rapid prototyping with visual scripting or drag-and-drop interfaces

Pros & Cons

Pros

Complete Library Access

Provides raw function bindings to all raylib C functions, ensuring developers have full control over raylib's capabilities without abstraction overhead.

Intuitive Mathematical Operations

Includes operator overloads for vectors, matrices, and quaternions from raymath, making mathematical expressions more readable and Crystal-friendly.

Extended Module Support

Optional includes for RayGUI, RLGL, audio, and lighting systems allow for advanced features like IMGUI interfaces and OpenGL abstraction without extra dependencies.

Cross-Platform Compatibility

Supports 64-bit Linux and Windows out of the box with static linking, ensuring consistent performance and ease of deployment on these platforms.

Cons

Limited Platform Support

MacOS support is explicitly listed as 'Weak/Broken,' and Raspberry Pi is only a future hope, severely restricting deployment options for many projects.

Complex Installation Process

Requires running platform-specific installation scripts and manual environment variable setup (e.g., on Windows), which can be error-prone and time-consuming for newcomers.

Raw API Exposure

Only provides direct C function bindings with minimal wrapping, lacking higher-level, idiomatic Crystal abstractions that could simplify common game development tasks.

Frequently Asked Questions

Quick Stats

Stars114
Forks19
Contributors0
Open Issues1
Last commit1 month ago
CreatedSince 2021

Tags

#gamedev#opengl#bindings#game-development#framework#graphics-library#crystal#crystal-language#cross-platform#raylib#binding#game-engine#multimedia

Built With

r
raylib
C
Crystal
C
C++

Included in

Crystal3.5k
Auto-fetched 16 hours ago

Related Projects

CrSFMLCrSFML

Crystal bindings to SFML multimedia/game library

Stars356
Forks14
Last commit8 months ago
crystal-chipmunkcrystal-chipmunk

Crystal bindings to Chipmunk, a fast and lightweight 2D game physics library

Stars45
Forks3
Last commit9 months ago
entitas.crentitas.cr

Entity Component System Framework writen in crystal

Stars38
Forks2
Last commit1 year ago
MyECSMyECS

my ECS(Entity-Component-System) framework in Crystal

Stars21
Forks2
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub