Skip to content

Muzzle 1.0

Compare
Choose a tag to compare
@OkiStuff OkiStuff released this 01 Jun 23:29
· 232 commits to main since this release
f29bddc

Muzzle 1.0

Muzzle is a game framework that will have many backends allowing for easy porting to many different systems. Muzzle is made in C but don't let that scare you away. It's very easy to get started. It has an included CMakeLists.txt making it easy to compile.

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

Applet blank_window;

void OnAppletUpdate()
{
    tint my_color = {35, 35, 142, 1};

    while (!glfwWindowShouldClose(blank_window.window_handle))
    {
        begin_drawing();
            clear_screen(my_color); 
        end_drawing(&blank_window);
    }
    
}

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

    QuitMuzzle(blank_window);
    return 0;
}