Giter Site home page Giter Site logo

fallingtime's Introduction

fallingtime's People

Contributors

akien-mga avatar cxong avatar imgbotapp avatar nebuleon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fallingtime's Issues

Mention in README that chipmunk can't be unbundled

As any serious (and annoying for upstream developers) packager would do, I've first tried to unbundle chipmunk to build FallingTime against my distro's chipmunk package.

Obviously I broke my teeth on this one, as chipmunk is heavily patched in the source tree so the rest of the codebase won't build with the system chipmunk (as per at least 0a75ad3).
Maybe you could add a mention to this in the Building section of the README?

Make a new release

Hi @cxong, I'm looking again at packaging Falling Time for Mageia (I'm not sure why I didn't go through the last time, probably forgot). Since there are quite a few interesting commits in the current master HEAD, and not much recent activity otherwise, WDYT about making a new 1.1 or 1.0.1 release?

System-wide installation: dehardcode data path

I'd like to package FallingTime for my distro, Mageia. I think I had a look at it already a while ago but somehow never finished my WIP, so here I'm back at it.

It looks like the path to the ./data/ folder is hardcoded in the source. It would be nice to add support for installing the data in a folder like /usr/share/games/fallingtime, and thus not next to the binary (that would typically be in /usr/games or /usr/bin). Two typical solutions to this issue:

  • Hardcore various paths in the code, and test each of them to locate the data. Typically it would look first for ./data, and then (on platform Linux only) for /usr/share/games/fallingtime and for /usr/share/fallingtime (or the other way around, Debian/Mageia use the former, Fedora uses the latter).
  • Use a compilation parameter to define a DATA_DIR, and use it in the source code to initialize the constant used as prefix for the data. The fallback can be:
#ifndef DATA_DIR
#define DATA_DIR "./data/"
#endif // DATA_DIR

A second step for system-wide installation would be to add specific installation instructions in CMakeLists.txt to put the binary and data in the correct places (and maybe .desktop file and icon too). I'd gladly work on it if you can help with the first part described above.

Player 2 controls image can't be localized for AZERTY keyboard

On AZERTY keyboard, Q and A are swapped (WASD -> ZQSD). SDL2 handles this nicely so the player 2 can be controlled with Q and D as expected.

The problem is that the main menu image showing the player 2 controls is, well, an image, so it can't take this mapping into account: https://github.com/cxong/FallingTime/blob/master/data/graphics/keyboard1.png

The fix would be to use sprites without the letter, and to put a label on top of them with the proper remapped key given by SDL2.

High scores loading shows an error when there is no saved high scores yet

When running the game on Mageia 7 x86_64, I get the following error in the terminal:

Error: cannot open config file /home/akien/.config/falling_time_high_scores.conf

And the file indeed doesn't exist, while /home/akien/.config is writable:

drwx------ 132 akien akien    12288 Nov  1 13:06  .config/

(Running the game as akien of course.)

Replace ball sprites

Now that the ball/birds can call, they need alternate sprites, with one where they're "calling".

Support for higher resolutions

I know that the game is optimised for low resolution screens, but since it also builds and runs fine on desktop computers with hires screens, it would be nice to have an option to scale the main window.

On my 1920x1080 monitor, the 320x240 window is... small :)

Maybe you could add support for:

  • scaling height and width by a power of two, thus preserving aspect ratio
  • stretching the whole window to an arbitrary resolution and/or fullscreen

Linking issue in the highscore function

Hi @cxong, nice to see you working on a new game :)

I got this issue when trying to build the current master branch (bcc0d35):

$ make
[ 59%] Built target chipmunk_static
Linking C executable falling_time
CMakeFiles/falling_time.dir/high_score.c.o: In function `HighScoresInit':
high_score.c:(.text+0x2f): undefined reference to `get_user_config_file'
CMakeFiles/falling_time.dir/high_score.c.o: In function `HighScoresAdd':
high_score.c:(.text+0x23d): undefined reference to `get_user_config_file'
collect2: error: ld returned 1 exit status
CMakeFiles/falling_time.dir/build.make:565: recipe for target 'falling_time' failed
make[2]: *** [falling_time] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/falling_time.dir/all' failed
make[1]: *** [CMakeFiles/falling_time.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.