The title you are reaching for is almost certainly Apple Kingdom and the Power of Juujuu, a browser platformer built around a stick figure piecing together a lost past.
The black wall you remember is the trigger for those strange flashback sequences, which is the game's main storytelling device. If that title does not match what you played, the description is specific enough that searching those exact details should surface it quickly.