/RayWrapper

This is a wrapper for Raylib-cs

Primary LanguageC#MIT LicenseMIT

RayWrapper

Stars NuGet Last Commit License


This is a Wrapper for the C# bindings (Raylib-CsLo) of Raylib, a 'bare-bones' graphics library.

📝 Table of Contents

🧐 About

This is a Wrapper for the C# port (Raylib-CsLo) of Raylib, a 'bare-bones' graphics library. Made with .Net6 on nuget.

For credit, please link back to this repo.

paths:

  • RayWrapper (wrapper code)
  • RayWrapperTester (testing program)
  • RayWrapperTesterCollision (collision testing program).

🎁 Features

  • In game console (can add custom commands, use ` to access console)
  • A built in save system using Newtonsoft.Json
  • NumberClass is included (A big number lib)
    • no longer included, but it still is on Nuget
  • Many premade gameobjects
  • Discord rich presence support
  • a WIP collision system
  • an animation system
  • Internal logger and crash log system

🎈 Usage

TODO: Insert usage instructions here. Say some stuff about adding the NuGet package and .Net version.

🏷️ Example Template

new GameBox(new Program(), new Vector2(window width, window height), "title");

public partial class Program : GameScene 
{
    public override void Init() 
    {
        // game object init
        // if you have objects that just need to render and update
        // then use RegisterGameObj()
    }
    
    // tip: DO NOT init new objects everytime in Update/Render Loops
    public override void UpdateLoop()
    {
        // put update loop stuff here
    }
    
    public override void RenderLoop()
    {
        // put render loop stuff here
    }
}

⛏️ Built Using

✍️ Authors