TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

PyDark – 2D Game Framework

69 点作者 gnocchi超过 10 年前

7 条评论

shadowmint超过 10 年前
I wish people would stop building things with pygame.<p>Its a terrible, buggy, crash prone obsolete framework.<p>Learning pygame may teach you basic skills you can transfer to other better frameworks; but it teaches you 10 year old skills that are largely irrelevant on modern hardware, and gives you a rubbish introduction to python (welcome to segfault hell).
评论 #8982799 未加载
评论 #8982506 未加载
fiblye超过 10 年前
Does this offer any performance advantage over vanilla pygame? Because I found myself pushing the limitations of it very quickly and had to move on to other frameworks and languages other than Python.<p>As one example of its shortcomings, Pygame doesn&#x27;t seem to support hardware rendering and the maintainer seems to think this is an advantage [ <a href="http://www.pygame.org/docs/tut/newbieguide.html" rel="nofollow">http:&#x2F;&#x2F;www.pygame.org&#x2F;docs&#x2F;tut&#x2F;newbieguide.html</a> ]
评论 #8981794 未加载
评论 #8981788 未加载
Patrick_Devine超过 10 年前
Having to write your own event framework and network functions every time you write a game in PyGame is kind of a pain, so I can see how this would be really useful. I think I&#x27;ve written the same event handler about a half dozen times at this point for various games I&#x27;ve written.<p>It wasn&#x27;t clear to me how hard it would be to incorporate something like Pymunk for physics though. One thing that I find a pain when using Pymunk and Pygame is having to keep track of the your rects when things are bumping off of each other, spinning, etc. It&#x27;d be cool if Pydark had built in support for some kind of physics engine.
detaro超过 10 年前
Discussion on reddit[0] leads to this gem: <a href="http://docs.pydark.com/PyDark.net-pysrc.html#ServerProtocol.lineReceived" rel="nofollow">http:&#x2F;&#x2F;docs.pydark.com&#x2F;PyDark.net-pysrc.html#ServerProtocol....</a><p>Who thought that could possibly be a good idea?<p>[0] <a href="http://www.reddit.com/r/Python/comments/2ufo9y/the_2d_game_framework_for_perfectionists/" rel="nofollow">http:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;Python&#x2F;comments&#x2F;2ufo9y&#x2F;the_2d_game_f...</a>
nadams超过 10 年前
Personally the code is confusing to me - the author jumps between OO and non-OO. I&#x27;m not saying that&#x27;s necessarily a bad thing - but from what I&#x27;ve seen is that stuff he has as functions might be better suited for a class.<p>I do like the concept&#x2F;design of it though.
nightcracker超过 10 年前
Based on pygame, stopped looking.
评论 #8981985 未加载
sobkas超过 10 年前
So does it work on pypy