00fb09cebf
Prevent immediate window restore from minimize in core_window_flags
...
The core_window_flags example automatically restores the window from
being minimized after 3 seconds. However, it only resets the frameCounter
if the window is minimized through the app from inputting KEY_N. This
means if you miminize the window by other means (like pressing the minimize
button) then the example will immediately restore the window because the
frame counter wasn't reset. I've fixed this by setting the frameCounter
back to 0 once it's expired. I also added a note in the UI that the example
automatically restores the window so it's not a surprise.
2025-03-26 20:02:03 -06:00
611c43719f
Avoid divide by 0 in core_custom_frame_control example
2025-03-26 10:58:59 -06:00
e140aca1b5
Increase zoom factor in core_2d_camera.c
...
This compensate for slower zoom speed due to log scaling
2025-03-19 20:19:19 +01:00
8b84c999d2
Use logarithmic zoom scaling in 2d camera zoom examples
2025-03-19 19:48:04 +01:00
513753c394
Converting int to char
...
Fixes warning: narrowing conversion caused by trying to convert int to unsigned char
2025-03-13 21:50:20 -03:00
7cae259a6d
Reviewed shaders comment wording ( #4793 )
2025-02-25 14:26:52 +01:00
773e3f5f9f
Update more examples inconsistencies ( #4711 )
...
Co-authored-by: Anstro Pleuton <anstropleuton@github.com >
2025-01-19 17:17:38 +01:00
945f181f1d
[examples] Update examples to be consistent ( #4699 )
...
* Update examples inconsistencies
* Happy new years, examples!
* Missed one inconsistency
* Update final few examples inconsistencies
---------
Co-authored-by: Anstro Pleuton <anstropleuton@github.com >
2025-01-18 19:41:56 +01:00
27e530eb18
update examples with difficulty stars ( #4694 )
...
* update examples with difficulty stars
* manual fix script issues
* manual fix script issues
2025-01-17 10:42:30 +01:00
5c1cce28a7
Using Module provided canvas id for event binding ( #4690 )
...
This change is replacing the hardcoded "#canvas" element references in
rcore_web to allow using canvas elements that use different names
(which is necessary when using multiple canvas elements on one page).
Also adding a cursor hiding example to mouse example.
2025-01-16 00:32:58 +01:00
2f6230e366
Formatting review and examples review
2025-01-12 18:02:36 +01:00
a1896c7a90
REVIEWED: Code/Web-Makefile formatting
2025-01-12 16:19:10 +01:00
2f95e8382b
typo fix ( #4656 )
2025-01-05 12:30:06 +01:00
2820fcc29e
[examples] improve input_virtual_controls example ( #4584 )
2024-12-08 08:52:09 +01:00
f979cc62ee
Fixed grammar mistakes in core_3d_camera_first_person.c ( #4508 )
...
Changed line 118 from, "// For advance camera controls, it's reecommended to compute camera movement manually", to, "// For advanced camera controls, it's recommended to compute camera movement manually".
2024-11-19 09:04:14 +01:00
162efc1ec7
Update core_basic_window.c
2024-11-16 18:45:12 +01:00
a2f6ae6796
Fix warnings in examples ( #4492 )
...
Move shapes/shapes_rectangle_advanced to the correct folder in MSVC project
Add core_input_virtual_controls.vcxproj back into sln file
2024-11-15 08:25:09 +01:00
a617e1e217
Update core_2d_camera_mouse_zoom.c
2024-11-06 12:00:39 +01:00
f03f093909
Add input_virtual_controls to MSVC projects ( #4433 )
...
Fix input_virtual_controls example to use correct default font sizes
2024-10-25 09:47:04 +02:00
157ee79a8e
Add drawing for generic gamepad on core_input_gamepad example ( #4424 )
2024-10-23 20:31:57 +02:00
fe6da67066
[examples] Add deadzone handling to core_input_gamepad example ( #4422 )
...
* Add deadzone handling to core_input_gamepad example
* Rename variables
2024-10-23 16:31:27 +02:00
75a4c5bf20
Update core_input_gamepad example ( #4416 )
2024-10-23 00:28:20 +02:00
74ce90ce67
[example] Input virtual controls example ( #4342 )
...
* Add files via upload
* Update core_input_gamepad_virtual.c
* Add files via upload
* Update and rename core_input_gamepad_virtual.c to core_virtual_Dpad.c
* Update and rename core_virtual_Dpad.c to core_input_virtual_controls.c
* Delete examples/core/core_input_gamepad_virtual.png
* Add files via upload
* Update Makefile
* Update Makefile.Web
* Update README.md
* Update README.md
* Create core_input_virtual_controls.vcxproj
* Delete projects/VS2022/examples/core_input_virtual_controls.vcxproj
2024-10-06 15:47:47 +02:00
039df36f4b
REVIEWED: Automation events mouse wheel #4263
2024-08-20 19:13:18 +02:00
418b878053
[Examples] set FPS to 60 ( #4235 )
...
* set FPS to 60
* remove extra commented lines
2024-08-10 20:07:23 +02:00
46cb6af437
Fix core_input_gamepad_info example so all buttons are displayed within the window ( #4241 )
2024-08-09 19:03:14 +02:00
e96bab7ce6
[Build] Fix warnings when building in VS 2022 ( #4095 )
...
* Update raylib_api.* by CI
* Fix warnings when building examples in MSVC 2022
* fix auto-format that sneaked in there.
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-24 17:47:32 +02:00
3948656d84
The example always showed a xbox controller, never a ps3 controller ( #4040 )
2024-06-07 10:21:02 +02:00
d7a8af144d
Fix typos in markdowns and comments, Fix invalid links in HISTORY.md ( #4017 )
2024-05-30 08:22:07 +02:00
02d98a3e44
REVIEWED: 2d camera zoom, add alternative method #3977
2024-05-15 16:33:06 +02:00
46f9806359
Use logarithmic scaling for a 2d example with zoom functionality ( #3977 )
2024-05-15 16:19:22 +02:00
3b7be85151
Screen space related functions consistency ( #3830 )
...
* Screen/world-space related functions rename
* Update raylib_api.* by CI
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-07 12:28:11 +01:00
077ab6d56b
Add an example that generates a random sequence. ( #3846 )
2024-02-29 18:26:49 +01:00
40f3df5b86
Update core_2d_camera_platformer.c
2024-01-24 21:17:11 +01:00
3f1e59a7cf
Update copyright to 2024
2024-01-02 20:58:12 +01:00
7ca95512d8
Review UnloadAutomationEventList ( #3658 )
...
* Review UnloadAutomationEventList
* Update raylib.h
* Update rcore.c
* Update core_automation_events.c
* Fix mistake
2023-12-23 12:14:39 +01:00
387506faab
[rcore] Remove unused vScreenCenter ( #3632 )
2023-12-13 21:22:44 +01:00
e7ba72ded9
Update core_automation_events.c
2023-11-10 19:36:58 +01:00
e4ea116857
Reviewing automation events on web...
2023-11-10 19:25:28 +01:00
a92c34d83c
Changed keybinds for the automation example to avoid conflict with browser shortcuts ( #3519 )
2023-11-10 15:04:04 +01:00
4c2340aea6
Update core_2d_camera_platformer.c
2023-11-08 23:35:27 +01:00
9c2308bdc3
Examples reviews
2023-11-08 23:28:31 +01:00
040b945fef
Reviewed some examples and warnings
2023-11-08 20:09:32 +01:00
bbf0c3a46d
REVIEWED: Added new examples to VS2022 solution
2023-11-08 17:41:08 +01:00
6cd37e57a6
Fix warnings in visual studio ( #3512 )
2023-11-06 20:31:07 +01:00
64d64cc181
REVIEWED: Potential code issues reported by CodeQL #3476
2023-11-01 15:28:18 +01:00
d8acceca14
Fix example core_3d_camera_free ( #3488 )
2023-10-31 10:10:43 +01:00
f721429f25
ADDED: SetAutomationEventBaseFrame(int frame)
2023-10-27 01:19:10 +02:00
98fcbe3fe2
Update core_automation_events.c
2023-10-27 00:50:02 +02:00
654b4e6257
Update core_automation_events.c
2023-10-27 00:45:00 +02:00