Coder Social home page Coder Social logo

user062 / muzzle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pikostudios/muzzle

0.0 0.0 0.0 4.16 MB

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

License: MIT License

C 92.47% CMake 4.59% Python 1.48% PowerShell 1.46%

muzzle's Introduction

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

muzzle's People

Contributors

okistuff avatar abdothegreat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.