user062 / Muzzle

Game Framework with support with many backends such as GLFW and SDL2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Muzzle Logo

Discord Server | Twitter

Discord


Muzzle is a Open-Source C99 Game Framework

Example:

#include <Muzzle.h>
#include <stdio.h>
#define SCREEN_WIDTH 1280
#define SCREEN_HEIGHT 720

Applet blank_window;

void OnAppletUpdate()
{
    while (keep_applet(blank_window.window_handle))
    {
        begin_drawing();
            clear_screen(GRAY);
        end_drawing(&blank_window);
    }
    
}

int main(void)
{
    blank_window = InitializeApplet(SCREEN_WIDTH, SCREEN_HEIGHT, "Muzzle [CORE] - Blank Window", MUZZLE_FALSE, MUZZLE_TRUE);
    StartApplet(&blank_window);

    QuitMuzzle(blank_window);
    return 0;
}

Features

  • Creating a Window
  • Clearing the Screen
  • Drawing Rectangle
  • Keyboard Input
  • Mouse Input
  • Sprite Rendering
  • Drawing Circle
  • Loop
  • Text Rendering
  • Font Loading

How to build

Step 1: Install all submodules
You can do this by typing git submodule init and then git submodule update

Step 2: Build GLFW or get library files from pre-compiled binaries

Step 3: go into an example, and run cmake

About

Game Framework with support with many backends such as GLFW and SDL2

License:MIT License


Languages

Language:C 92.5%Language:CMake 4.6%Language:Python 1.5%Language:PowerShell 1.5%