EuRayLib4 Released!
- Posted by Icy_Viking Nov 18, 2021
- 1257 views
Hello all,
I have just released EuRayLib4. This is a wrapper for Raylib version 4. I have written this from scratch. I started a new wrapper for this version as the old code base was pretty messy. However, I did fix the typos in the old code base. Initially I was going to wait on this, hoping that Eu 4.2.0 might come out, but when my internet was cutting in and out the other day, I needed something to do. So I wrapped Raylib version 4. It has been made to be as Euphoria friendly to use as possible.
NOTE: I tried to compile raygui as a DLL. However I couldn't get it to compile. If anyone is able to, I wouldn't mind wrapping raygui.
Some examples are included.
Get here: https://github.com/gAndy50/EuRayLib4
Example:
without warning include EuRay4.ew include flags.e atom Width = 800 atom Height = 600 InitWindow(Width,Height,"Simple Window") SetTargetFPS(60) atom ball_x = Width / 2 atom ball_y = Height / 2 atom ball_size = 30 while not WindowShouldClose() do BeginDrawing() if IsKeyDown(KEY_RIGHT) then ball_x += 2.0 elsif IsKeyDown(KEY_LEFT) then ball_x -= 2.0 elsif IsKeyDown(KEY_UP) then ball_y -= 2.0 elsif IsKeyDown(KEY_DOWN) then ball_y += 2.0 end if if ball_x <= 0 then ball_x = 0 elsif ball_x >= Width then ball_x = 780 end if if ball_y <= 0 then ball_y = 0 elsif ball_y >= Height then ball_y = 550 end if ClearBackground(BLACK) DrawText("Use arrow keys to move ball.",10,10,15,YELLOW) DrawCircleV(ball_x,ball_y,ball_size,GREEN) EndDrawing() end while CloseWindow()