You are browsing as a guest. Sign up (or log in) to start making projects!

42m 6s logged

New web game!

:party:

Here we go! So initially, I came up with the idea of having a Python web game, which would be a 2048 game, something I did work on around 4-5 years back when I was a kid, toying around with code.

How am i going to run it?

So instead of someone just opening the file straight up, you run a small command in your terminal or the command prompt.

python -m http.server 8000

when you run this it just starts everything up for you and you don’t really have to focus on it with a headache!

What’s the issue?

I used an on-the-fly translator, aka Brython, which is a widely available resource i used - CDNJS library.
Unfortunately, it’s getting blocked by my browser, and so is it for a few others. I’ve decided to switch it out for Pyodide which acts as a WebAssembly, basically packing Python as an engine and putting it into a web page (for everyone to use and understand)

What’s next?

Well, since I came across a mix of errors i’m going to be re-editing the code and breaking stuff up into different parts to adjust things for Pyodide!

Thanks for reading!

Thanks for reading my Devlog! If you did find it interesting, do follow my professional account on Instagram @Danu.journey i’m going to be posting some of my work there too! If you’d like to add me on LinkedIn, my username is Daniyal Ali. See you around i hope you tag along on the journey! :bye:

0
144

Comments 0

No comments yet. Be the first!