borntofrappe / game-development

Repository for an aspiring game developer, starting from CS50's Intro to Game Development and creating interactive demos. Lots and lots of demos.
10 stars 1 forks source link

Practice — Spritesheet and quads #108

Closed borntofrappe closed 3 years ago

borntofrappe commented 3 years ago

Breakout introduces several functions to load a large image and show sections in the form of quads. Consider creating a project to practice with the concept.

borntofrappe commented 3 years ago

The game's match memory, where you are provided a fixed number of cards and asked to match them in pair.

mm1

borntofrappe commented 3 years ago

I've spent a ridiculous amount of time figuring out how to lay the cards in a grid, but I've finally found a solution with a fixed number of columns (below the grid for the easy level)

mm2

borntofrappe commented 3 years ago

I was able to practice with the concept of a spritesheet and quads, but also the push library for the pixel-based visual and various lua-based concepts, like the repeat until loop

borntofrappe commented 3 years ago

Closing tomorrow with a victory state (and hopefully a cleaner play state)

borntofrappe commented 3 years ago

cce571b closes the issue, but I forgot a hash character in the commit message