adding some changes to fit the format of examples guidelines

This commit is contained in:
NimComPoo-04 2025-10-12 14:56:02 +05:30
parent b6071ffe94
commit be538c1010

View File

@ -41,6 +41,9 @@ typedef struct Particle {
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
int main(void) int main(void)
{ {
//----------------------------------------------------------------------------------
// Initialization
const int screenWidth = 800; const int screenWidth = 800;
const int screenHeight = 450; const int screenHeight = 450;
@ -53,10 +56,10 @@ int main(void)
Particle particles[MAX_PARTICLES] = {0}; // Particles that emitter has emitted Particle particles[MAX_PARTICLES] = {0}; // Particles that emitter has emitted
int particle_count = 0; // Number of particles emmitted yet int particle_count = 0; // Number of particles emmitted yet
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - simple particles"); InitWindow(screenWidth, screenHeight, "raylib [shapes] example - simple particles");
SetTargetFPS(60); // Set our game to run at 60 frames-per-second SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//----------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
// Main game loop // Main game loop