I made an original game for RetroPie
-
@Jono I have fixed that bug now, thanks so much.
Install from source and you should have the change.
-
@Rincewind It's looking good. I'll be playing it tonight with friends so if I uncover anything else I'll let you know. I like the fact it remembers your name too, that helps. Very good indeed. Thank you for all your work so far :)
-
@Jono Pleasure, I am glad that you're enjoying it.
-
@Rincewind highscores can be entered. It works fine.
But how can i activate the highscore table to actually show up?
-
to note it compiles fine on odroid aswell :)
-
@Rincewind looks really cool! Can’t wait to try this tonight. Thank you!
-
@robertvb83 On the main menu, before you start playing, leave the game for 5 seconds and it will show up. I wanted it to feel like an arcade game, but maybe I should add an explicit "Show High Scores" button.
-
@neonlightning That's good to hear. I looked at the specs of the ODroid on Wikipedia, the game should actually run better on it than on the Raspberry Pi. The game uses a software renderer, so it is entirely dependant on the CPU. The better the CPU, the smoother the gameplay. I havent tested the game on a Raspberry Pi 1. I would love to know how it preforms.
-
@Rincewind said in I made an original game for RetroPie:
@robertvb83 On the main menu, before you start playing, leave the game for 5 seconds and it will show up. I wanted it to feel like an arcade game, but maybe I should add an explicit "Show High Scores" button.
This was my idea and i did wait for a few minutes on main screen... but no table is showing
-
Is it possible to install this on an older build of Retropie (v4.3 stock Jessie build)? When I attempt to build from source I get a "cmake 3.7 or higher is required" message at the third step (my v4.3 build has 3.6.2). This looks great and I'd very much like to try it! Thanks for the help.
-
@ts-x It should be possible, I'll change the cmake file. Let me know if it works or not, please :).
-
@robertvb83 So if you start the game without playing a round and wait for 5 seconds, it doesn't show the high score table?
If that is the case, then I really have no idea.
Run the game, wait for 5 seconds on the main menu then copy the contents of this file
/dev/shm/runcommand.log
and paste it here.If you use ssh you can run
cat /dev/shm/runcommand.log
and copy the content, if you access the commandline from your raspberry pi, you can just take a photo of the screen. -
@Rincewind Thanks for making this change. I was able to get through the cmake step successfully, but encountered several errors during make. It appears to have built the first four objects correctly but then runs into trouble with menu.cpp.o. Received several errors in reference to that object...
In member function #void Menu::ShowScore(int, std::vector<Texture*>, std::vector<Rect*>)#: 97:15: error: #runtime_error# is not a member of #std# throw std::runtime_error("The textures and frame rects should be the same size. Instead got texture_bird: " 148:15: error: #runtime_error# is not a member of #std# throw std::runtime_error("There were too many winners to add to the screen, improve this function."); CMakeFiles/superflappybirds_libretro.dir/build.make:158: recipe for target 'CMakeFiles/superflappybirds_libretro.dir/menu.cpp.o' failed make[2]: *** [CMakeFIles/superflappybirds_libretro.dir/menu.cpp.o] Error 1 CMakeFiles/Makefile2:67: receipt for target 'CMakeFiles/superflappybirds_libretro.dir/all' failed make[1]: *** [CMakeFIles/superflappybirds_libretro.dir/all' Error 2 Makefile:83: receipe for target 'all' failed make: *** [all] Error 2
Is there a way to access an error log file to copy/paste here for full detail? (sorry I'm a command line lightweight!)
-
@ts-x Run the following on the command line:
gcc --version
This is the output for retropie 4.4:
gcc (Raspbian 6.3.0-18+rpi1+deb9u1) 6.3.0 20170516 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I want to see the gcc version, I suspect RetroPie 4.3 is a bit behind on the times.
If you were considering upgrading to RetroPie 4.4, that will solve your problem :D
-
@Rincewind said in I made an original game for RetroPie:
I want to see the gcc version, I suspect RetroPie 4.3 is a bit behind on the times.
Raspbian Jessie has gcc 4.9.2 - http://distrowatch.org/table.php?distribution=debian.
-
@Rincewind Just as @mitu said, 4.9.2.
After 16 months of tweaking 4.3, I'm pretty much resigned to never upgrade beyond. Would like to finish adding a handful of ports, fix a few lingering issues and then retire. Need to free up time to actually play some games :)
-
@ts-x I keep telling myself the same thing. And while I have played quite a few games, I keep finding more things to add/tweak on my setup. For me a large amount of the fun is learning new things while setting stuff up. So I have a feeling I'll never get to a point where I'm done completely :)
-
@ts-x You can try manually upgrading your gcc, but that might be quite tough. I will try to find another SD card that I can put 4.3 on, so that I can make the game backwards compatible. I can't promise it will be soon, but I will mention you here in a post when it is working
-
@Rincewind GCC 4.9.2 should support
std::runtime_exception
, but I think it's only available when you compile with-std=c11
. I see in your CmakeLists.txt you've asked for C++14, so maybecmake
doesn't add the proper argument to the compiler. -
@Rincewind the highscore table shows up after 5 seconds! I dont know why it seemed not working.
After 5 seconds it switches back from highscore to main screen... 5s seems a little bit too fast because i cannot really read it in 5s. But it is working very well now
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.