Clarification of the Python requirement
The rules state:- Entries must run using the latest version of Python
- Supporting frameworks and libraries written in other languages may be used
However, it does not specifically say that the original authoring of the code must be in Python. I seek clarification because I've been debating whether or not to create a programming language that can be parsed and reserialized to both Python+PyGame or JavaScript+HTML5, so the final submission for PyWeek would be Python+PyGame, but then I could also post an identical version of my game in JavaScript on my website.
What are people's thoughts on generated Python? Technically it still follows the rules, but I'm wondering if people consider it still in the spirit of the competition.
Also, holy short notice, batman! If I were to create such a thing, I'd have 6 days to make and document it, otherwise I'll have to wait for the next challenge.
(log in to comment)
Comments
Also, I create programming languages for fun about as often as I create games, so creating such a thing isn't too much work for me.
As far as the PyGame vs Pyglet library goes, I already created a js file that implements quite a bit of the major functionality of PyGame some months ago for use in other projects, so I'm actually good to go on that front.
Here's a JavaScript version of a demo game I made using PJ:
http://blakeohare.com/projects/pajamapyweekdemo/
Tested in Firefox, Chrome, and Opera. IE doesn't work, like always. Will work on that.
Here's the PyGame version of it:
http://pastebin.com/mFFm7NZ0
And here's the original PJ code that generated both of the files above. The only tweak needed to switch between the two languages is a command line flag in the translator app. NO POST-EXPORT TWEAKS!
http://pastebin.com/RqLnA8rL
PJ is strongly typed, so even without the benefit of exporting to JavaScript, it still gives you the benefits of type checking at compile time which is always useful for larger projects.
I'm going to keep chugging away at this. If anyone is interested in testing it out, it should be ready for public consumption in a day or two.
richard on 2013/07/27 07:26:
Hm. That's a tricky one. I'll have a think about it...BTW, are you aware of the Python -> Javascript translators? If you used one of those all you'd need is the pygame -> html5 part...