Complete raylib 5.0 bindings for Cyber! Bindings auto-generated from cbindgen.cy.
Start using by importing the URL from your script.
- Install Cyber
- Create a new cyber script
game.cy
:
use rl 'https://github.com/fubark/ray-cyber'
rl.InitWindow(800, 600, 'Hello')
rl.SetTargetFPS(60)
-- Main game loop
while !rl.WindowShouldClose():
-- Do game update...
rl.BeginDrawing()
rl.ClearBackground(rl.RAYWHITE)
rl.DrawText('Congrats! You created your first window!', 190, 200, 20, rl.LIGHTGRAY)
rl.EndDrawing()
rl.CloseWindow()
- Run the game!
cyber game.cy
git clone https://github.com/fubark/ray-cyber
cd ray-cyber
cyber examples/snake.cy
cyber examples/asteroids.cy
asteroids.mp4
cyber examples/clash.cy
clash.mp4
Cyber caches the Raylib dependencies into ~/.cyber
. After an upgrade to Cyber or Raylib, repull the dependencies with -r
:
cyber -r game.cy