Bump Raylib to v5.0.0, RayGUI 4.0 is designed to be used with RayLib 5, so bump RayGUI too to 4.0.

Updated some core examples to match the changes in Raylib-c v5.0.0
This commit is contained in:
Ashley Sommer 2023-12-19 10:44:18 +10:00
parent 3b01e59338
commit 9b48e57bb1
35 changed files with 728 additions and 40144 deletions

View file

@ -1,6 +1,6 @@
"""
raylib [core] example - 2d camera
raylib [core] example - 2D Camera System
"""
import pyray

View file

@ -1,6 +1,6 @@
"""
raylib [core] example - 2d camera platformer
raylib [core] example - 2D Camera platformer
"""
from math import sqrt

View file

@ -27,7 +27,7 @@ while not window_should_close(): # Detect window close button or ESC key
# Update
update_camera(camera, pyray.CAMERA_FREE)
if is_key_down(pyray.KEY_Z):
if is_key_pressed(pyray.KEY_Z):
camera.target = Vector3(0.0, 0.0, 0.0)
# Draw
@ -44,8 +44,8 @@ while not window_should_close(): # Detect window close button or ESC key
end_mode_3d()
draw_rectangle(10, 10, 320, 133, Fade(SKYBLUE, 0.5))
draw_rectangle_lines(10, 10, 320, 133, BLUE)
draw_rectangle(10, 10, 320, 93, Fade(SKYBLUE, 0.5))
draw_rectangle_lines(10, 10, 320, 93, BLUE)
draw_text("Free camera default controls:", 20, 20, 10, BLACK)
draw_text("- Mouse Wheel to Zoom in-out", 40, 40, 10, DARKGRAY)