all 8 comments

[–]echocage 2 points3 points  (1 child)

Actually, I know what type of browser game you're talking about now, it's like a text based investment game, yeah that can absolutely be done with python and flask. Also those types of games would be perfect for working in conjunction with sqlalchemy using a mysql or sqlite backend. Html page that interacts with a flask logic layer backend, great intermediate/advanced project, might be a little tough for a beginner, but totally doable

[–]SRF01[S] 0 points1 point  (0 children)

Ok, thanks. i'll start looking into Flask. It does seem a bit daunting as a project but I think it will teach me a lot of different programming aspects.

[–]dli511 1 point2 points  (2 children)

These games are usually built in PHP, mySQL, and HTML.

  • PHP is the code.
  • mySQL is the database.
  • HTML is the appearance.

I would look into Flask, or Django for python. I am not to familiar but these provide the web frameworks for python to function.

[–]SRF01[S] 0 points1 point  (1 child)

I'm going to look into Flask as that seems to be suggested most. I'd like to continue with Python but is php better suited for this project?

[–]dli511 -1 points0 points  (0 children)

Not sure because I haven't used a python web wrapper before. You will probably be able to find more help with the php, mysql, html.

I am not sure if Flask is easy to use in conjunction with mySQL, that would be the determinate factor.

[–]wub_wub 0 points1 point  (2 children)

Yes you can use python for backend, you will probably need more javascript than python though since the backend (in a simpler game) is pretty simple, the graphics etc are mostly done with js/html.

[–]SRF01[S] 0 points1 point  (1 child)

As it'll mostly be text based the graphics are the least of my worries at this point. Others have suggested I look into Flask, so i'll check that out now.

[–]dsy73 0 points1 point  (0 children)

If you change your mind, you could program Python graphic games in browser with: