Commit Graph

237 Commits

Author SHA1 Message Date
Ray
13e384ce71 Merge pull request #5004 from nezvers/example_quake_controller
[examples] New example: `core_3d_fps_controller`
2025-08-12 09:54:23 +02:00
Ray
570082deba WARNING: **NEW** raylib code CONVENTION: Comments do not end with '.' 2025-08-07 18:23:20 +02:00
Ray
f0889a74fe EXAMPLES: Format tweaks 2025-08-07 17:08:22 +02:00
Ray
fd79b44920 Create distortion.fs 2025-08-07 17:05:50 +02:00
Ray
72de562542 REVIEWED: Examples for automation processes 2025-08-04 13:23:04 +02:00
RANDRIA Luca
b273ba930b Add screenshot for core_basic_window_web
The veritable screenshot is this
2025-07-31 01:05:00 +03:00
RANDRIA Luca
37104195b4 add screenshot core_basic_window_web
There are no screenshot for this and the alt is seen
2025-07-30 16:54:06 +03:00
lepasona
b230720842 example core_input_gamepad.c: fix hardcoded gamepad 0 2025-07-27 14:35:38 +00:00
PanicTitan
9e908e4a76 Update core_custom_frame_control.c to work properly on web 2025-07-14 00:27:56 -03:00
Agnis Aldiņš "NeZvērs
ed022e89e5 fix preview crop 2025-06-23 16:22:14 +03:00
Agnis Aldiņš "NeZvērs
f6b7168ed4 Add preview image 2025-06-23 16:06:46 +03:00
Agnis Aldiņš "NeZvērs
fa9653d179 Fix function call 2025-06-23 13:50:24 +03:00
Agnis Aldiņš "NeZvērs
fca2317640 remove //#define PLATFORM_WEB 2025-06-23 13:44:50 +03:00
Agnis Aldiņš "NeZvērs
a2cf878190 cleanup variable shadowing 2025-06-23 13:43:38 +03:00
Agnis Aldiņš "NeZvērs
4233544670 Update core_3d_fps_controller.c 2025-06-23 13:32:08 +03:00
Agnis Aldiņš "NeZvērs
4d5a56a5f8 change game's resolution 2025-06-23 13:15:14 +03:00
Agnis Aldiņš "NeZvērs
eee9dd8c94 Example: core_3d_fps_controller
Quake like camera animations and strafe jump movement
2025-06-23 13:03:35 +03:00
Jeffery Myers
eb3d96a36a Fix cast warnings in examples. 2025-04-16 18:23:55 -07:00
Jonathan Marler
f19d4c71ab core_window_flags example: add borderless windowed toggle 2025-03-31 10:23:34 -06:00
Jonathan Marler
336fd78f74 Add core_highdpi example
This example enables HIGHDPI and renders a scale showing how the logical
size compares to the pixel size of the window.
2025-03-28 16:48:21 -06:00
Ray
61aea2495a Merge pull request #4863 from marler8997/fixImmediateRestore
Prevent immediate window restore from minimize in core_window_flags
2025-03-28 18:02:12 +01:00
Jonathan Marler
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
Jonathan Marler
8749ba9ebf Uncomment SetTargetFPS in core_window_flags
I think this line was accidently commented out in this commit:

3d1ae3500c

The FPS limit is needed to get the desired wait time for the "hide window"
test, which uses the frame counter to hide the window for 3 seconds. On
my machine without this limit it runs at over 1000 FPS and it appears
like the hide window state is broken.

I also added some text that tells the user that it only hides the window
for 3 seconds so they're not surprised when the window automatically
reappears.
2025-03-26 16:35:31 -06:00
Jonathan Marler
611c43719f Avoid divide by 0 in core_custom_frame_control example 2025-03-26 10:58:59 -06:00
Fabrizio Pietrucci
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
Fabrizio Pietrucci
8b84c999d2 Use logarithmic zoom scaling in 2d camera zoom examples 2025-03-19 19:48:04 +01:00
Aidon
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
jordan4ibanez
7cae259a6d Reviewed shaders comment wording (#4793) 2025-02-25 14:26:52 +01:00
Anstro Pleuton
773e3f5f9f Update more examples inconsistencies (#4711)
Co-authored-by: Anstro Pleuton <anstropleuton@github.com>
2025-01-19 17:17:38 +01:00
Anstro Pleuton
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
Anthony Carbajal
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
Eike Decker
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
Ray
2f6230e366 Formatting review and examples review 2025-01-12 18:02:36 +01:00
Ray
a1896c7a90 REVIEWED: Code/Web-Makefile formatting 2025-01-12 16:19:10 +01:00
rexept
2f95e8382b typo fix (#4656) 2025-01-05 12:30:06 +01:00
danil
2820fcc29e [examples] improve input_virtual_controls example (#4584) 2024-12-08 08:52:09 +01:00
Mute
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
Ray
162efc1ec7 Update core_basic_window.c 2024-11-16 18:45:12 +01:00
Jeffery Myers
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
Ray
a617e1e217 Update core_2d_camera_mouse_zoom.c 2024-11-06 12:00:39 +01:00
Jeffery Myers
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
Asdqwe
157ee79a8e Add drawing for generic gamepad on core_input_gamepad example (#4424) 2024-10-23 20:31:57 +02:00
Asdqwe
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
Asdqwe
75a4c5bf20 Update core_input_gamepad example (#4416) 2024-10-23 00:28:20 +02:00
Magnus Oblerion
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
Ray
039df36f4b REVIEWED: Automation events mouse wheel #4263 2024-08-20 19:13:18 +02:00
Anthony Carbajal
418b878053 [Examples] set FPS to 60 (#4235)
* set FPS to 60

* remove extra commented lines
2024-08-10 20:07:23 +02:00
Asdqwe
46cb6af437 Fix core_input_gamepad_info example so all buttons are displayed within the window (#4241) 2024-08-09 19:03:14 +02:00
Jeffery Myers
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
Konrad Gutvik Grande
3948656d84 The example always showed a xbox controller, never a ps3 controller (#4040) 2024-06-07 10:21:02 +02:00