A couple of demos to learn how to use the SFML library.
- Language: C++
- Libraries: SFML
- Primary Objective: Learning.
Between 2019 and 2020 I wanted to dive into the world of Game Development using the SFML library, after spending a long time using the PyGame library. For this reason I wanted to create a couple demos.
Bubblewrap
I made this this demo to learn how SFML's Vertex Arrays work: Vertex arrays are a low-level system for drawing entities on the screen. This allows me to have improved performance compared to normal Sprites in situations like drawing a tilemap.
This demo shows 100 "bubbles" on screen, that can be popped by clicking them with the mouse. Pressing the "R" button on the keyboard allows you to restore all the bubbles.
Fireworks
I coded this demo to learn the concepts behind background procedural generation, animation, trigonometry, reading binary files and easing functions.
This demo reads a series of files to memorize the possible shapes a firework can take, and when you click on the screen, a rocket (represented by a small dot) is shot, exploding on the clicked point.