If all you want to make is a one off tetris game, then I suggest using pygame and be done with it. Or if you want to have nicer graphics around it then you can use javacript / html for display and the core logic in python which the js calls. (or even implement the whole thing in js)
Usually python is a bit slow for making games but for a simple game like tetris, I don't think you will have an issue.
So to answer youre question, Yes you can, but you need to be good with js (as display will depend entirly on that)
Love to hear others suggestions on it though!
Thank you. I have already written the logic of the game in python and I
wan't to add an html/javascript GUI to it.
On Mon, Feb 24, 2020 at 12:03 AM RahulBadenkal notifications@github.com
wrote:
If all you want to make is a one off tetris game, then I suggest using
pygame and be done with it. Or if you want to have nicer graphics around it
then you can use javacript / html for display and the core logic in python
which the js calls.
Usually python is a bit slow for making games but for a simple game like
tetris, I don't think you will have an issue.
Love to hear others suggestions on it though!—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/samuelhwilliams/Eel/issues/247?email_source=notifications&email_token=AGYQUOYKC3M6ROGVORAF7MTRENILJA5CNFSM4KZ7UIDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMWUDOY#issuecomment-590168507,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGYQUOYW3PODM2FGXZR2YWLRENILJANCNFSM4KZ7UIDA
.
If you know how to render the visuals in HTML and JS then I think it will be easy enough to do
I appreciate it I've now made good progress.
On Tue, Feb 25, 2020 at 5:42 AM Chris Knott notifications@github.com
wrote:
If you know how to render the visuals in HTML and JS then I think it will
be easy enough to do—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/samuelhwilliams/Eel/issues/247?email_source=notifications&email_token=AGYQUO2PIKIIUNLBHQZ27N3RETY2XA5CNFSM4KZ7UIDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM3PA6Y#issuecomment-590803067,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGYQUO4HG2GCH4SYFSHIL4DRETY2XANCNFSM4KZ7UIDA
.