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

Review README files and comment style

This commit is contained in:
Rgebee 2026-07-31 08:24:07 +01:00
commit 5e2b5aef34
5 changed files with 35 additions and 35 deletions

View file

@ -80,7 +80,7 @@ public unsafe partial class CustomLogging : IExample
{
#if !BROWSER
// Restore the default formatting logger on desktop. On WebAssembly we leave the (wasm-safe)
// custom logger in place Logging.LogConsole formats via vsprintf, which traps on wasm.
// custom logger in place - Logging.LogConsole formats via vsprintf, which traps on wasm.
SetTraceLogCallback(&Logging.LogConsole);
#endif
}

View file

@ -46,7 +46,7 @@ public partial class EllipseCollision : IExample
}
// Check if two ellipses collide
// Uses radial boundary distance in the direction between centers scales correctly with radii
// Uses radial boundary distance in the direction between centers - scales correctly with radii
private static bool CheckCollisionEllipses(Vector2 c1, float rx1, float ry1, Vector2 c2, float rx2, float ry2)
{
float dx = c2.X - c1.X;

View file

@ -1,4 +1,4 @@
# Examples/Web raylib-cs in the browser (WebAssembly)
# Examples/Web - raylib-cs in the browser (WebAssembly)
Runs the raylib examples in the browser via WebAssembly, with a dropdown and Prev/Next buttons
to switch between them.
@ -73,7 +73,7 @@ page), so frames are driven from JavaScript:
## Adding more examples
Examples are **auto-discovered by reflection** (`ExampleRegistry.DiscoverAll`) no list to edit.
Examples are **auto-discovered by reflection** (`ExampleRegistry.DiscoverAll`) - no list to edit.
Drop a new `.cs` file in the matching category folder implementing `IExample`, splitting the
original monolithic `Main` as:

View file

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>raylib-cs browser examples</title>
<title>raylib-cs - browser examples</title>
<link rel="icon" type="image/x-icon" href="./favicon.ico"/>
<link rel="modulepreload" href="./main.js"/>
<link rel="modulepreload" href="./_framework/dotnet.js"/>
@ -71,7 +71,7 @@
<option value="fit">Fit</option>
</select>
</div>
<div id="error" hidden>This example crashed see the browser console for details. Select another example to continue.</div>
<div id="error" hidden>This example crashed - see the browser console for details. Select another example to continue.</div>
<div id="viewport">
<canvas id="canvas" width="800" height="450" oncontextmenu="event.preventDefault()" tabindex="-1"></canvas>
</div>