我可以使用python创建类似浏览器游戏的Flash吗

我可以使用python创建类似浏览器游戏的Flash吗

本文介绍了我可以使用python创建类似浏览器游戏的Flash吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用python创建类似浏览器游戏的Flash? (实际上,我想将其用于经济模拟,但它等同于浏览器游戏)

is it possible to use python to create flash like browser games? (Actually I want to use it for an economic simulation, but it amounts to the same as a browser game)

达沃德

推荐答案

答案是肯定的,假设您认为这是您想要做的一个很好的例子:

The answer would be yes, assuming you consider this a good example of what you want to do:

http://pyjs.org/examples/Space.html

此基于浏览器的Asteroids版本是使用Pyjamas创建的,它使您可以在一个地方用python编写代码,并使其在浏览器或桌面上运行:

This browser-based version of Asteroids was created using Pyjamas, which enables you to write the code in python in one place, and have it run either on the browser, or on the desktop:

http://pyjs.org/

最近找到了Pyjamas,并且还更喜欢将我的代码整合到一种语言(Python!)和位置中(而不是使用一些不同的语言在服务器端和浏览器/客户端中使用一些代码),令人兴奋的技术.它的作者已经将Google Web Toolkit移植到Python上,这是一个非常了不起的壮举,保留了Python的表达能力(例如将80,000行Java缩减为8,000行Python).更多的Pythonista使用者应该对此有所了解. :)

Having recently found Pyjamas, and also preferring to consolidate my code in one language (Python!) and location (instead of having some code server-side, and some browser/client-side, in different languages), it's definitely an exciting technology. Its authors have ported the Google Web Toolkit to Python, a really impressive feat, retaining the expressive power of Python (something like 80,000 lines of Java was shrunk to 8,000 lines of Python). More Pythonistas should know about it. :)

这篇关于我可以使用python创建类似浏览器游戏的Flash吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 13:04