AlaskaLinuxUser's Scratchpad

Commit thy works unto the LORD, and thy thoughts shall be established. - Proverbs 16:3

Error: ‘class sf::Text’ has no member named ‘setFillColor’

Just finished section 10 of my course. While working through the code, I ran into a snag:

alaskalinuxuser@alaskalinuxuser-OptiPlex-7010:~/Documents/c++/Cpp_training/JelloStorm\$ ./build.sh
JelloStorm.cpp: In function ‘int main()’:
JelloStorm.cpp:121:13: error: ‘class sf::Text’ has no member named ‘setFillColor’
pausedText.setFillColor(Color::White);

I triple …

C++ portability problems!

Recently, I attempted to show someone the progress of my JelloStorm game on their computer. Of course, they are using a Linux machine (Ubuntu 17.04) and I downloaded the game source code from my GitLab. The pre-requisite is to have SFML installed, which I did, and then I attempted …

Which C++ standard is it, anyways?

One interesting thing about my C++ course is that the instructor never specified which standard he is using for the course. There are many standards in the C++ universe, and they don't all have the same functions.

Originally, when I attempted to build my game without specifying a standard, it …

Pragma once verses include guards like ifndef

Taking this basic gaming class in C++ is really a neat experience. It allows me to do something fun while learning something tedious or boring. Some say that learning this way is a bad idea, because you can end up learning the teacher's bad habits.

While that is probably true …

Game restarts when minimized!

When I originally created JustChess, I had a problem. If you were playing a game, and pressed the new game button, then started another game, you could press back and go back to the menu, then back and go back to the game. This was a bit odd. At the …