Writing a HTML5 game in Python (almost)

Posted by
December 12th, 2015 9:18 pm

Trying to participate again…

This time my goal, besides finishing a game, is to become familiar with Rapydscript .

Rapydscript is a subset of Python that transpiles to Javascript.

So I’m writing a HTML5 game in Python (almost) using Phaser. I’m creating a simple wrapper of Phaser for Rapydscript (Physer), so my game code passes the PEP8 and other Python tests…

This is how the game code looks like so far:

screenshot00

As you can see, besides the camel case in some methods (Phaser standard) it looks and feels like Python.

And this is how it looks so far:

screenshot01

You can try v0.001 here.

 

Good luck to all

Tags: , ,


3 Responses to “Writing a HTML5 game in Python (almost)”

  1. andycr says:

    That’s useful!

  2. andycr says:

    Writing code is just as hard as writing an essays online. I studied for a programmer, but decided to become a freelance writer. From time to time, I’m interested in the latest innovations in programming, and now I’m very interested in such a programming language as python. I would like to create some application in this programming language. I would be very grateful if you would tell me about how you are learning this programming language. Perhaps you could advise me some book or video course on YouTube? Thank you!

  3. TaylorNolan says:

    Hello! Thank you for the piece of code. I want to start writing codes for games, but I have absolutely no experience, even though all my friends say it’s easy. But for several years I have not been working with codes, because so far I have decided to take a break for study. Of course, sometimes I change and order homework from essay writer to have a couple of free hours and at least rewrite the old code. Can you advise me some resources where you can quickly and effectively learn how to code in this area?

Leave a Reply

You must be logged in to post a comment.

[cache: storing page]