Raylib














































Raylib



/*


RAYLIB

Raylib (stylized in lowercase as raylib) is a cross-platform open-source software development library. The library is meant to create graphical applications and games. The official website introduces it as "a simple and easy-to-use library to enjoy video games programming. In simple words raylib is a simple and easy-to-use library to enjoy videogames programming. Features of raylib library:
1)Support for multiple platforms, including Windows, Linux, macOS, Raspberry Pi Android and HTML5. 2)Image, textures and fonts loading and drawing from several formats. 3)Audio loading and playing from several formats and streaming support. 4)Math operations for vectors, matrices, and quaternions. 5)2D rendering with a camera, including automatic sprites batching.

Here's a code for creating a simple pop-up window.

*/


#include"raylib.h"

int main(){
    
    //screen dimensions
    int windowHeight = 500;
    int windowWidth = 1000;
    
    //creates a pop up window
    InitWindow(windowWidth,windowHeight,"YOUR NEW GAME");
    

    //to hold pop up window on the screen until closed
    while(WindowShouldClose()==false){
        BeginDrawing();
        
        DrawText("Welcome to your game. Press X or escape key to exit",10,10,15,RED);
        
        ClearBackground(WHITE);
        EndDrawing();
    }
    
}





Comments