FlappingBird icon indicating copy to clipboard operation
FlappingBird copied to clipboard

White screen after opening the app?

Open xiaottang2 opened this issue 8 years ago • 2 comments

I clone it with --recursive-submodules and built it successfully. During building, I encountered some errors:

src/Game.cpp:194:13: error: non-constant-expression cannot be
      narrowed from type 'double' to 'float' in initializer list
      [-Wc++11-narrowing]
        g.mouse = {x, y};

but I fixed them by adding static_cast<float>( ) to each x and y. It doesn't bother me.

But after I built it, and run it, it shows white screen like this: screenshot 2016-11-06 18 47 18

xiaottang2 avatar Nov 06 '16 10:11 xiaottang2

I am running macOS Sierra btw screenshot 2016-11-06 18 48 45

xiaottang2 avatar Nov 06 '16 10:11 xiaottang2

Maybe you should just copy spritesheet.png (can be found here http://www.spriters-resource.com/resources/sheets/56/59537.png) into the directory with your game executable

ddovod avatar Nov 26 '16 13:11 ddovod