exshade(3alleg4)

✨ exshade ✨

okay so bestie, this is a page from the Allegro manual (you know, the game programming library πŸ‘‘), and it's literally all about exshade β€” Gouraud shaded sprites. yes ma'am. πŸŽ€


🌸 NAME 🌸

exshade β€” Gouraud shaded sprites. Allegro game programming library.


πŸ’… SYNOPSIS πŸ’…

#include <allegro.h>

Example exshade

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this program is basically a glow-up tutorial for your pixels πŸ’– β€” it demonstrates how to draw Gouraud shaded (lit) sprites. that's the vibe.

so picture this: an apparently black screen, right? and then a planet-like sprite gets drawn close to the middle of the screen. it's giving celestial main character energy πŸͺβœ¨.

and here's how you play with it β€” in a similar way to how the first test of extrans works, you move the cursor around the screen with the mouse. πŸ–±οΈ

attached to this mouse you can imagine a virtual spotlight illuminating the scene around it. no cap. 🌟

depending on where the mouse is, the Gouraud shaded sprite will show the direction of the light. so like, the sprite lowkey tells you where your lil spotlight is pointing. iconic behaviour honestly πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘


that's the whole page bestie, slay πŸ’–βœ¨ Allegro version 4.4.3, and this lil page is filed under exshade(3alleg4). go light up some sprites, periodt 🫢🌈