gpt4 book ai didi

phaser-framework - 决定 Pixi.js 还是 Phaser

转载 作者:行者123 更新时间:2023-12-03 07:08:10 34 4
gpt4 key购买 nike

我的学校项目之一是制作一款实时多人网页游戏,我目前很难决定是否应该使用 Pixi.js 或 Phaser 来进行游戏图形和控制,有人可以谈谈它们是什么吗彼此擅长并且比对方更好?

最佳答案

Phaser 使用 Pixi 进行渲染,尽管它是一个较旧且经过大量修改的版本。当前版本的 Pixi 可能会为您提供更好的性能,但您必须手动实现 Phaser 中可用的功能。

它们的不同之处在于 Pixi 是一个渲染引擎,而 Phaser 是一个游戏框架。

我引用 Phaser 的创建者 Rich:

Off the top of my head, here is what Phaser adds onto Pixi:

  • Choice of physics systems (arcade or full body)
  • A Game World and a Camera which can pan around it
  • Tilemap support
  • A particle system
  • Sound support (both web audio and legacy audio)
  • More advanced input handling (input priority, drag and drop, etc)
  • Keyboard and Gamepad inputs
  • Scale Manager to handle game / scene resizing + full screen support
  • Tween Manager for tweening game objects, hooked into the core clock (so it pauses properly when your game does)
  • Asset loader (supporting all kinds of file types) and Cache
  • A State Manager to let you swap between game states easily
  • Game clock + custom timers + timer events

And probably lots more I forgot. As someone has commented though, it depends entirely on what you want to make. Lots of people use Pixi who don't make games at all. However as this is a game dev forum, I'm going to suspect you do :)

I guess just try it. If you don't like it put it down to experience and just use Pixi "raw".

来源:http://www.html5gamedevs.com/topic/12656-phaser-pixi/#comment-72893

根据您可以等待的时间,您实际上可能会等待尝试 Phaser 3 (Lazer),它目前正在开发中,并将拥有自己的渲染引擎。不过,我认为学习当前版本的 Phaser 是一个很好的起点,Lazer 中的很多东西都是一样的。

关于phaser-framework - 决定 Pixi.js 还是 Phaser,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38509629/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com