Posts

Showing posts from April, 2021

Cat's Guide to C++ | SFML | Countdown Timer | Visual Studio 2019 | Level 3

Image
This tutorial will focus on displaying a countdown timer with SFML. The timer will show seconds and milliseconds.  Note - 1: This tutorial does not cover how to set up Visual Studio 2019 for SFML. If you do not know how to use SFML with Visual Studio,  t his tutorial of mine ( Cat's Guide to C++ | SFML | Setup | Visual Studio 2019 | Level 0 ) walks through what you need to know.  Note - 2: This tutorial assumes that you know the basics of C++. If you are not familiar with C++, this tutorial of mine ( Cat's Guide to C++ | Output and Input in C++ | Visual Studio Code | Level 0 ) goes over the fundamentals.  CONTENTS 1. Creating a New Project 2. Adding Font File 3. Opening and Closing the Window 4. Displaying Text 5. Creating the Timer  1. CREATING A NEW PROJECT  A. Open up your Visual Studio 2019, and click on Create a new project  button.  B. The button will take you to a list of project templates. Select the Console App template or a custom templ...

Cat's Guide to C++ | SFML | Background Image in Fullscreen | Visual Studio 2019 | Level 1

Image
This tutorial will focus on displaying a background Image in Fullscreen with SFML. The screen size I am using for this tutorial is 1920px x 1080px, which is a full HD resolution.  Note - 1: This tutorial does not cover how to set up Visual Studio 2019 for SFML. If you do not know how to use SFML with Visual Studio,  t his tutorial of mine ( Cat's Guide to C++ | SFML | Setup | Visual Studio 2019 | Level 0 ) walks through what you need to know.  Note - 2: This tutorial assumes that you know the basics of C++. If you are not familiar with C++, this tutorial of mine ( Cat's Guide to C++ | Output and Input in C++ | Visual Studio Code | Level 0 ) goes over the fundamentals.  Contents:  1. Creating a New Project  2. Adding an Image File 3. Opening and Closing the Window  4. Creating a Background Texture and Sprite  5. Displaying the Background  1. Create a New Project  Open up your Visual Studio 2019, and click on ' Create a new project ' ...