Skip to content

Wave bindings for raylib

License

Notifications You must be signed in to change notification settings

wavefnd/raylib-wave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

raylib-wave

Wave bindings for raylib 5.5.0. This library allows you to develop games using raylib with the Wave programming language.

Requirements

  • Wave: v0.1.7-pre-beta or later (or latest master)
  • raylib: 5.5.0
  • Operating System: Linux (Fedora 43 recommended)

Getting Started

1. Clone the repository

You can either clone the repository or copy the raylib.wave file directly into your project.

git clone https://github.com/wavefnd/raylib-wave.git

2. Install raylib

Install raylib 5.5.0 on your system. On Fedora:

sudo dnf install raylib-devel

Make sure libraylib.so is available in your system library path.

3. Import raylib in Wave

Import raylib.wave in your Wave source file:

import("raylib");

You can now use raylib APIs directly from Wave.


Example

image
import("raylib");

fun main() {
    var screenWidth: i32 = 800;
    var screenHeight: i32 = 450;
    InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window");

    SetTargetFPS(60);

    var raywhite: Color = Color { r: 245, g: 245, b: 245, a: 255 };
    var lightgray: Color = Color { r: 200, g: 130, b: 130, a: 255 };

    while(WindowShouldClose() == 0) {
        BeginDrawing();

        ClearBackground(raywhite);

        DrawText("Congrats! You created your first window!", 190, 200, 20, lightgray);

        EndDrawing();
    }

    CloseWindow();
}

License

This project follows the same license as the Zlib. See the repository for more details.

About

Wave bindings for raylib

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project