Fix pang-zero hanging on exit when showing website and no browser is running

When pang-zero tries to show the website on exit, and no browser is running
yet, so the show-browser command never exits, it currently hangs, which
when in full-screen mode is rather user-unfriendly this fixes this, and
should also resolve:
https://github.com/kthakore/pangzero/issues/1

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Don't try to show a dialog while in full-screen mode

Trying to show an error dialog through an external helper,
while we are still in full-screen mode and have the keyboard grabbed is
a very BAD idea, as it locks the user out of its X session.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fix disabling of ShowWebsite not working with x.y.z numbers

Disabling of ShowWebsite was broken with the change of the version number
to x.y.z, since x.y.z is not a valid number and thus should be treated
as a string. This patch fixes this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
s/Games::PangZero::PlaySound/Games::PangZero::Music::PlaySound/

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fix Challenge Game not working

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fix entering a new highscore not working

This fixes both a crash on reaching a new highscore, as well as entering
of a new highscore not working.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fix crash when getting the xmass-ball

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Disable the MachineGun

Fix a crash in the MachineGun code, and disable it for now, as with the
crash fixed it leads to lots of weirdness happening
(seems like invisible bullets keep flying around).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fix powerwire not working

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Replace SDL::Color->new() calls with SDL::Video::map_RGB

So that we get the color we ask for rather then some funky random color.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Properly clear score area before redrawing

Now that we've fixed the random color filling problem, uncomment the
lines to properly clear the score area before redrawing.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fix showWebsite not working when there is no gnome-open

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fix GameBase::ResetGame to properly reset the game

And drop the now no longer necessary hack to remove Guys from the GameObjects
list.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fix TutorialGame not working

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Move cleaning up of state after a game to the end of PlayableGameBase::Run

This is much cleaner, and fixes the GameOver staying on screen after a
tutorial game.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fix windowed and widescreen modes not working

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
ChallengeGame: Remove a bunch of dead code

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Stop using SDLx::App, as we don't need it

We don't really need any of its functionality, and for some reason it
causes our window to be resized to a maximized fully black window on exit,
which then stays in place for 2 seconds.

The 2 second delay on exit is caused by SDL_mixer's Mix_Close() call
taking quite long. This is is issue outside of pangzero which I've put on
my todo, but the ugly maximizing of the window, rather then staying as is,
during those 2 seconds is somehow caused by pangzero's use of SDLx::App

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fix Music and Sound not working

While at it also fix the Music loading, so that distros can chose wether
they want to distribute the Music as mid, mp3, or ogg without getting
errors printed while trying to load non present formats.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Disable the demo as it is broken atm

Signed-off-by: Hans de Goede <hdegoede@redhat.com>