ex3d(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ ex3d β€” the 3d 'bouncy cubes' demo ✨

okay so bestie, welcome to ex3d, a whole demo from the Allegro manual (that's the Allegro game programming library, for the uninitiated πŸŽ€). It's a 3d bouncy cubes situation and honestly? iconic.


🌈 SYNOPSIS

#include <allegro.h>

Example ex3d

πŸ’… DESCRIPTION

This program is literally here to demonstrate how to use the 3d matrix functions. That's the whole assignment. 🫢

Not me being the first to admit it: this is not a very elegant or efficient piece of code, ngl. But it does show the stuff in action, and that's what matters, fr fr. ✨

And here's the homework part, bestie: it is left to the reader as an exercise to design a proper model structure and rendering pipeline. Because honestly? The best way to do that sort of stuff varies hugely from one game to another. There is no single correct answer and the manpage said what it said. 😭

πŸ¦‹ what actually happens when you run it

  • First up, the example shows you a screen resolution selection dialog. Pick your vibe. 🌸
  • Then a number of bouncing 3d cubes are animated. Yes, plural. Yes, bouncing. πŸ‘‘
  • Pressing a key modifies the rendering of the cubes πŸ’… β€” and the options are many:
    • it can be wireframe
    • or the more complex transparent perspective correct texture mapped version
    • and many other things too. iykyk. ✨
Go ahead and press all the keys. That's the demo. That's the content. πŸ’–

πŸ‘‘ SEE ALSO

Every single one of these is your friend, bestie, go read them all:


That's the whole page, bestie πŸ’œ This one comes to you straight from the Allegro manual, and it's marked as version 4.4.3 β€” so if you're running anything older, that's on you, not on me. πŸŽ€ Go make some cubes bounce. πŸ¦‹βœ¨

πŸ“¦ where this page comes from