AlaskaLinuxUser's Scratchpad

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

JelloStorm: Fixing defunct jello blobs....

sssssssssssssssssssss

In the last update on my game JelloStorm! we ran into the issue of defunct jello blobs. I could not figure out why there are some jello blobs that don't move and can't be touched or shot with your arrows. The problem for this is that the game can't continue …

JelloStorm is now playable.... Mostly.

[gallery ids="3516,3517" type="columns"]

[gallery ids="3516,3517" type="rectangular"]

Here is a side by side comparison of my project, verses the one from the course.

Now that I've completed the C++ beginner's game creation course, that means I've also completed my second C++ game using SFML. So …

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 …