Using MinGW make a tool, just navigate from the command line to raylib/src/ folder and type:
mingw32-make PLATFORM=PLATFORM_DESKTOP
librarylib.a created mean build has been successful
Project folder structure
Example (main.cpp)
#include "raylib.h"
int main(void)
{
InitWindow(800, 450, "raylib [core] example - basic window");
while (!WindowShouldClose())
{
BeginDrawing();
ClearBackground(RAYWHITE);
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
EndDrawing();
}
CloseWindow();
return 0;
}
Append a new path for lua.exe to the Windows 10 System environment variable path
Launch the Lua 5.x interpreter from command prompt (terminal)
If everything has been done correctly then you see the Lua 5.x.x Copyright (C) otherwise check the system variable environment path again. Note the semcolon ( ; ) entries before and after the path value.
LÖVE calls 3 functions. First it calls love.load(). After that it calls love.update() and love.draw(), repeatedly in that order.
So: love.load -> love.update -> love.draw -> love.update -> love.draw -> love.update, etc.
Behind the scenes, LÖVE calls these functions, and we to create them, and fill them with code. This is what we call a callback.
LÖVE is made out of modules, love.graphics, love.audio, love.filesystem. There are about 15 modules, and each module focuses on 1 thing. Everything that you draw is done with love.graphics. And anything with sound is done with love.audio.