Flappy Bird SFML C++ tutorial

  • Adriansuzr
    Likes 0

    Problem Description

    When I run my program the window that opens up to display the game doesn’t open but instead xocde changes it’s windows to a debugging window. At least thats what it looks like.

    Images at:

    https://imgur.com/a/lbC84

  • Sonar Systems admin
    Likes 0

    This is because of an error, check if the console is reporting any errors.


    This reply has been verified.
  • Adriansuzr
    Likes 0

    The only logs from Xcode that I see in the console are:

    Making presenter AD56B666-AF66-479E-8F5F-06BC6453B36F observe change

    and

    CGContextConvertSizeToDeviceSpace: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.

  • Sonar Systems admin
    Likes 0

    Does an empty project work?

  • Adriansuzr
    Likes 0

    Yeah. This is what I entered and it worked.

    https://imgur.com/a/CpWBD

    Sorry for all the trouble.

  • Sonar Systems admin
    Likes 0

    Have you tried to setup SFML or this a purley simple C++ project?

  • Cickoo
    Likes 0

    Hello

    i have a problem with flappy bird  whit this part of code _data->machine.AddState(StateRef(new SplashState(this->_data)));  i get this i m using visual studio

    Severity Code Description Project File Line Suppression State
    Error C2259 'SplashState': cannot instantiate abstract class SPA_PONG_PROJEKT C:\Users\38598\Desktop\PROJEKT SPA!\SPA_PONG_PROJEKT\SPA_PONG_PROJEKT\Game.cpp 9
    Severity Code Description Project File Line Suppression State
    Error (active) E0322 object of abstract class type "SplashState" is not allowed: SPA_PONG_PROJEKT C:\Users\38598\Desktop\PROJEKT SPA!\SPA_PONG_PROJEKT\SPA_PONG_PROJEKT\Game.cpp 9
  • tim7882
    Likes 0

    getting this error to 

     

Login to reply