ray-cyber
ray-cyber copied to clipboard
ray-cyber
Complete raylib 5.0 bindings for Cyber! Bindings auto-generated from cbindgen.cy.
Start using by importing the URL from your script.
Requirements.
Instructions.
- 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
More examples.
git clone https://github.com/fubark/ray-cyber
cd ray-cyber
Snake
cyber examples/snake.cy

Asteroids
cyber examples/asteroids.cy
https://user-images.githubusercontent.com/94020660/219881427-1244fd8d-29da-4a72-87bb-fcef46de650a.mp4
Clash
cyber examples/clash.cy
https://user-images.githubusercontent.com/94020660/219976051-ea658da6-e46b-4bbf-b191-f73151efa309.mp4
Troubleshooting.
Cyber caches the Raylib dependencies into ~/.cyber. After an upgrade to Cyber or Raylib, repull the dependencies with -r:
cyber -r game.cy