Skip to content

Commit

Permalink
add code template in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NexushasTaken committed Dec 1, 2024
1 parent 4abe60b commit 26f9329
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,29 @@ Add this to your `project.json`; you can uncomment some features that are listed
],
```

Use this code as your template.
```c3
import rl;
fn int main(String[] args)
{
rl::initWindow(800, 450, "Raylib in C3!");
while (!rl::windowShouldClose())
{
rl::@drawing() {
rl::clearBackground(rl::RAYWHITE);
rl::drawText("Raylib in C3!", 190, 200, 20, rl::LIGHTGRAY);
};
}
rl::closeWindow();
return 0;
}
```

For more examples see [Examples](./examples/).

# Future goals
- Better documentation and the README itself.
- Testing on different platforms
Expand Down

0 comments on commit 26f9329

Please sign in to comment.