Skip to content

fubark/ray-cyber

Repository files navigation

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.

  1. Install Cyber
  2. 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()
  1. Run the game!
cyber game.cy

More examples.

git clone https://github.com/fubark/ray-cyber
cd ray-cyber

Snake

cyber examples/snake.cy

snake

Asteroids

cyber examples/asteroids.cy

asteroids.mp4

Clash

cyber examples/clash.cy

clash.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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages