adding the shapes_logo_raylib example.

adding the missing press checks in the core_input_mouse example:
I added the missing MOUSE_BUTTON_SIDE,MOUSE_BUTTON_EXTRA,MOUSE_BUTTON_FORWARD,MOUSE_BUTTON_BACK press checks.

note: my mouse doesn't have the "forward" and "back" buttons, so I couldn't test if they work
This commit is contained in:
דור שפירא 2022-07-30 09:20:26 +03:00
parent 50e74a7e26
commit dead4cfcb5
3 changed files with 93 additions and 28 deletions

View file

@ -11,16 +11,16 @@ from raylib.colors import (
)
# Initialization
SCREEN_WIDTH: int = 800
SCREEN_HEIGHT: int = 450
SCREEN_WIDTH = 800
SCREEN_HEIGHT = 450
init_window(SCREEN_WIDTH, SCREEN_HEIGHT, 'raylib [core] example - random values')
# set_random_seed() // Set a custom random seed if desired, by default: "time(NULL)"
randValue: int = get_random_value(-8, 5) # Get a random integer number between -8 and 5 (both included)
randValue = get_random_value(-8, 5) # Get a random integer number between -8 and 5 (both included)
framesCounter: int = 0 # Variable used to count frames
framesCounter = 0 # Variable used to count frames
set_target_fps(60) # Set our game to run at 60 frames-per-second
@ -32,7 +32,7 @@ while not window_should_close(): # Detect window close button or ESC key
framesCounter += 1
# Every two seconds (120 frames) a new random value is generated
if ((framesCounter/120)%2) == 1:
if ((framesCounter/120) % 2) == 1:
randValue = get_random_value(-8, 5)
framesCounter = 0