Adding my pygame game to a website?
Hi,
We are making a basic chess engine using pygame, currently you can just move the pieces (run ChessMain.py to see)
I'd like to host the engine on a webpage with a .repl url. This would allow someone to go to the url and move some of the pieces around.
I'm not sure where to start, do I need to start using REST API's and Flask? Or is there a simpler way to integrate it using replit? Thanks in advance for your help/patience!
Voters
If you check the replit docs, you'll find that there is a sort-of-api built specifically for accessing the visual/audial output of a Repl. https://docs.replit.com/hosting/streaming-native-graphics-vnc
I'm guessing you could simply embed an iframe to the noVNC client or something like that.
your welcome :)
@JamesB67maybe.... It's just showing it as ubuntu would normally show a window, so If you look that up you should find some way around it, maybe.
@JamesB67okay so I found this, on hiding the "title bar", and this on maximizing a window.
@JamesB67Cheers will have a look!
@HighwaymanI works? yay!
@JamesB67