Is flask compatible with pygame
No, it won't work like that.
Pygame doesn't have a browser "backend", it's purely for desktop games.
Hi ive been developing some games in pygame and am looking to put them on a website for my friends to play, Ive been told that flask is the way for setting up a python website and then hosting on python anywhere, but so far I havent seen any guides on using pygame with flask and am unsure if the games will work with flask ie will it be able to display the pygame screen on the website as a normal browser game would