a740g / raylib-64

QB64-PE bindings for raylib (a simple and easy-to-use library to learn videogames programming)
https://qb64phoenix.com/forum/showthread.php?tid=1776
MIT License
6 stars 2 forks source link
binding bindings game-development game-programming gamedev qb64 qb64-pe qbasic qbasic64 quickbasic quickbasic64 raylib raylib-binding raylib-qb64pe

raylib for QB64-PE

raylib (v5.0)

raylib for QB64-PE is a QB64-PE binding library for raylib. raylib is a simple and easy-to-use library to enjoy videogames programming.

raylib is highly inspired by Borland BGI graphics lib and by XNA framework and it's specially well suited for prototyping, tooling, graphical applications, embedded systems and education.

Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4

SUPPORTED PLATFORMS

API Windows (x86-64) Linux (x86-64) macOS (x86-64)
core :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
reasings :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
physac :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
raymath :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
raygui :x: :x: :x:

EXAMPLE

' raylib [core] example - Basic window

'$INCLUDE:'include/raylib.bi'

Const screenWidth = 800
Const screenHeight = 450

InitWindow screenWidth, screenHeight, "raylib [core] example - basic window"

SetTargetFPS 60

Do Until WindowShouldClose
    BeginDrawing

    ClearBackground RAYWHITE

    DrawText "Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY

    EndDrawing
Loop

CloseWindow

System

'$INCLUDE:'include/raylib.bas'

More examples are available in the repository.

FAQ

Why are you loading the shared library using C/C++? Why not use QB64's built-in DECLARE DYNAMIC LIBRARY?

Why does some raylib TYPEs like Camera, Texture2D, Sound etc. generate an error?

Why have you changed a lot of raylib functions like LoadTexture, GetMousePosition, GetMonitorPosition etc. to QB64 SUBs? Should't these be FUNCTIONSs?

What QB64 statements and functions should I avoid while using raylib?

Does all of raylib work with QB64?

Which version of QB64 should I use with raylib-64?

I found a bug. How can I help?

CREDITS

HELP NEEDED

Made with ❤️ by a740g