Watch
2
0
Fork
You've already forked raylib-cs
0

chore: clean up linter warnings

This commit is contained in:
tiger tiger tiger 2026-07-29 19:58:47 +02:00
commit dfc34997bc
No known key found for this signature in database
217 changed files with 1863 additions and 1077 deletions

View file

@ -15,8 +15,6 @@
*
********************************************************************************************/
using System.Numerics;
using static Raylib_cs.Raylib;
using static Raylib_cs.Raymath; // Required for: Lerp()
namespace Examples.Shapes;
@ -71,12 +69,25 @@ public partial class StarfieldEffect : IExample
//----------------------------------------------------------------------------------
// Change speed based on mouse
float mouseMove = GetMouseWheelMove();
if ((int)mouseMove != 0) speed += 2.0f * mouseMove / 9.0f;
if (speed < 0.0f) speed = 0.1f;
else if (speed > 2.0f) speed = 2.0f;
if ((int)mouseMove != 0)
{
speed += 2.0f * mouseMove / 9.0f;
}
if (speed < 0.0f)
{
speed = 0.1f;
}
else if (speed > 2.0f)
{
speed = 2.0f;
}
// Toggle lines / points with space bar
if (IsKeyPressed(KeyboardKey.Space)) drawLines = !drawLines;
if (IsKeyPressed(KeyboardKey.Space))
{
drawLines = !drawLines;
}
float dt = GetFrameTime();
for (int i = 0; i < STAR_COUNT; i++)