source/common.c
// Ensures the cursor never travels out of bounds (console will fatal) and acts as a collision check.
Ensures the cursor never travels out of bounds (console will fatal) and acts as a collision check.
Ensures the cursor never travels out of bounds ( console will fatal ) and acts as a collision check .
void keepInBounds(gameCtx *ctx) {
    if (ctx->xPos > 1264 || ctx->yPos > 704 || 
        ctx->xPos < 0    || ctx->yPos < 0)
        reset(ctx);
}
void keepInBounds ( gameCtx * ctx ) { if ( ctx -> xPos > 1264 || ctx -> yPos > 704 || ctx -> xPos < 0 || ctx -> yPos < 0 ) reset ( ctx ) ; }
Ensures the cursor never travels out of bounds (console will fatal) and acts as a collision check.
Ensures the cursor never travels out of bounds ( console will fatal ) and acts as a collision check .