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

Update README.md

This commit is contained in:
Rgebee 2023-08-25 08:24:44 +01:00 committed by GitHub
commit 8f4b5feb71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,26 +49,25 @@ the command won't work.
```csharp
using Raylib_cs;
namespace HelloWorld
namespace HelloWorld;
class Program
{
static class Program
public static void Main()
{
public static void Main()
Raylib.InitWindow(800, 480, "Hello World");
while (!Raylib.WindowShouldClose())
{
Raylib.InitWindow(800, 480, "Hello World");
Raylib.BeginDrawing();
Raylib.ClearBackground(Color.WHITE);
while (!Raylib.WindowShouldClose())
{
Raylib.BeginDrawing();
Raylib.ClearBackground(Color.WHITE);
Raylib.DrawText("Hello, world!", 12, 12, 20, Color.BLACK);
Raylib.DrawText("Hello, world!", 12, 12, 20, Color.BLACK);
Raylib.EndDrawing();
}
Raylib.CloseWindow();
Raylib.EndDrawing();
}
Raylib.CloseWindow();
}
}
```