Angluca / claymore

A C Game Engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

claymore

A C Game Engine

⚠️ The Project as well as the Documentation is not yet finished.

Setup

First clone the repo:

git clone https://github.com/Code-Nycticebus/claymore --recurse-submodules 

Start a project

Claymore uses my own build system pybuildc

pybuildc new test-project

and add claymore as a dependency to the pybuildc.toml:

[deps.claymore]
dir="<CLAYMORE DIRECTORY>" 
type="pybuildc"

To get a quick program started:

#include "claymore/entrypoint.h"

static void init(CmScene *scene) {
  (void)scene;
}

static CmSceneInterface *scene(void) {
  static CmSceneInterface interface = {
      .init = init,
      .update = NULL,
      .event = NULL,
      .final = NULL,
  };
  return &interface;
}

ClaymoreConfig *claymore_init(void) {
  static ClaymoreConfig config = {
      .window =
          {
              .width = 720,
              .height = 420,
              .title = "test project",
          },
      .main = scene,
  };
  return &config;
}

About

A C Game Engine


Languages

Language:C 94.3%Language:C++ 5.5%Language:GLSL 0.1%Language:Shell 0.0%