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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Phaser 3.0: HTML5 game framework

349 点作者 johnhattan超过 7 年前

19 条评论

aroman超过 7 年前
I&#x27;ve spent the past 6 months building a game[1] using Phaser and TypeScript. On the whole, it&#x27;s been a great experience.<p>Actually, I was surprised to see this posted here now, since Phaser 3.0 is not yet out. It&#x27;s mostly feature-complete, but they&#x27;re still working on docs and preparing for the release (in the few days to a week). I&#x27;ve really enjoyed following the v3 devlog[2]. Richard Davey&#x27;s dedication to the project and his and the other contributors herculean efforts towards v3.0 have been inspiring to watch. Truly a labor of love.<p>Some tips for others based on my experience with Phaser:<p>- USE TYPESCRIPT! One of the worst parts of Phaser is its documentation. In fact, the docs on the main website have been outdated by about 4 major releases, and the new docs are ugly and hard to use. TypeScript + VSCode massively improves this experience, by auto-completing functions and adding inline JSDoc info.<p>- Webpack is great, but hard to use with Phaser 2 OOTB. This may be a moot point since V3 is almost here, but if anyone wants to see how it can be done, my whole game is open source[3].<p>- Phaser.Group is a weird concept, but very powerful. Not only useful for object pooling, but also for creating custom GUIs using surfaces with coordinates relative to the group size&#x2F;position. Makes nested dynamic UIs very easy.<p>- Phaser&#x27;s scaling system[4] is awesome. Use it. Don&#x27;t try to reinvent the wheel yourself!<p>Richard and crew, if you&#x27;re reading this, THANK YOU! You&#x27;ve built an incredible project. Thank you for sharing it with the world.<p>[1] <a href="http:&#x2F;&#x2F;www.toomanycaptains.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.toomanycaptains.com&#x2F;</a><p>[2] <a href="http:&#x2F;&#x2F;phaser.io&#x2F;phaser3" rel="nofollow">http:&#x2F;&#x2F;phaser.io&#x2F;phaser3</a><p>[3] <a href="https:&#x2F;&#x2F;github.com&#x2F;TooManyCaptains&#x2F;TooManyCaptains&#x2F;tree&#x2F;master&#x2F;game" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;TooManyCaptains&#x2F;TooManyCaptains&#x2F;tree&#x2F;mast...</a><p>[4] <a href="https:&#x2F;&#x2F;photonstorm.github.io&#x2F;phaser-ce&#x2F;Phaser.ScaleManager.html" rel="nofollow">https:&#x2F;&#x2F;photonstorm.github.io&#x2F;phaser-ce&#x2F;Phaser.ScaleManager....</a>
评论 #16375237 未加载
评论 #16374880 未加载
评论 #16374372 未加载
评论 #16374284 未加载
评论 #16374401 未加载
james-skemp超过 7 年前
Having been watching this, it&#x27;s still rough around the edges, but I have no doubt that Phaser 3 will get to feature complete and beyond at a nice pace.<p>What&#x27;s holding me back from starting to really experiment with it is lack of TypeScript definitions. Phaser 2 was what got me started using TypeScript, and as a C# guy I&#x27;m still holding out hope that I can get my work using TypeScript for some project or other.<p>If you&#x27;ve been wanting to play with TypeScript, I highly recommend taking a look at creating a simple game with TypeScript.<p>There&#x27;s a lot of templates out there, and I&#x27;ve done some popular tutorials in TypeScript instead of the JavaScript they were written in.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;JamesSkemp&#x2F;PhaserTutorials" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;JamesSkemp&#x2F;PhaserTutorials</a>
madethemcry超过 7 年前
There is also a huge community around Phaser (as well as Pixi, the huge 3D gaming framework Babylon.js and many more) hosted by Richard who is developing Phaser.<p><a href="http:&#x2F;&#x2F;www.html5gamedevs.com" rel="nofollow">http:&#x2F;&#x2F;www.html5gamedevs.com</a><p>It&#x27;s a wonderful place to stroll stroll around even if you don&#x27;t have a concrete question in mind.
评论 #16374717 未加载
freehunter超过 7 年前
A year or so ago I did a lot with Phaser. I learned I&#x27;m not cut out for indie game dev and since moved on, but man is Phaser easy to learn and easy to get more advanced in. Even though I don&#x27;t use it anymore, I am a big fan of their work.<p>Congratulations on shipping 3.0. I hope it inspires a lot of great talent to discover themselves.
评论 #16372977 未加载
评论 #16373472 未加载
jjjensen90超过 7 年前
Aw man, looks like they moved away from naming releases after places in The Wheel of Time by Robert Jordan. I remember finding that when I stumbled across Phaser a couple years ago and being delighted. I made a toy &quot;game&quot; with some FSM actors and was impressed even in the much older version.<p>One thing I would recommend for someone trying it out, especially coming from C&#x2F;C++ game development like I did, is to use Typescript and the tooling that comes with it.
keithnz超过 7 年前
At one stage this was built on pixi for 2d rendering ( <a href="http:&#x2F;&#x2F;www.pixijs.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.pixijs.com&#x2F;</a> ) but I think 3.0 it took out pixi?<p>Anyone know what the rendering is like now?
评论 #16373866 未加载
Fifer82超过 7 年前
Great job guys on this long journey.<p>I used to make Web Games, but then I realized the race to the bottom and bailed all together. I found after 10 years as a GameDeveloper (where every project is practically unique) has made being a React developer almost like using a baby&#x27;s soft toy.<p>My job is beneath me, I sleep like a baby, and I get paid 4 times more than being a game developer for a job that demands 1% of the effort on a daily basis.<p>I don&#x27;t miss my times with gaming at all and I would never go back.<p>Each to their own!
评论 #16375631 未加载
birracerveza超过 7 年前
I love Phaser! I&#x27;ve been in love with this framework ever since it came out because it&#x27;s based on Flixel, which was per se an amazing framework built on AS3 by the same guy. Only Love2D comes close to it. I had completely forgot about it until now, and now that they added Typescript support I might just pick it up again for a spin. Is the renderer still bolted in? Last time I tried it I wanted to use it as backend for a multiplayer game, but couldn&#x27;t because Pixi.js was a necessity.
mephitix超过 7 年前
&quot;Games can be compiled to iOS, Android and native apps via 3rd party tools&quot;<p>Gonna need some explanation here... does it spit out native code? Where are the tools? And since it&#x27;s HTML5 why can&#x27;t I just run the thing in a native web view? Are there perf issues?
评论 #16374814 未加载
评论 #16374309 未加载
评论 #16373127 未加载
评论 #16374162 未加载
Ycros超过 7 年前
I&#x27;d expect the &quot;What&#x27;s New&quot; section to tell me at a high level what&#x27;s actually new in this release.
评论 #16375115 未加载
cyberferret超过 7 年前
My son and I built a small game together a couple of years back with Phaser 2. It was a really pleasant experience. I don&#x27;t do game dev any more, but will probably take a look at Phaser 3 in the next few months and probably build another tiny game out of it just for fun. Glad to see such an excellent project still kicking along.
uptown超过 7 年前
Hadn&#x27;t heard of Phaser but I&#x27;ll definitely give it a look. Are there any frameworks that are specifically geared towards turn-based games with a &quot;gameboard&quot; similar to Scrabble &#x2F; Words With Friends? I&#x27;ve been working on a game that follows this model, but have rolled-my-own implementation till now.
评论 #16373110 未加载
Donzo超过 7 年前
I’ve been using ImpactJS since around 2012 or so to make HTML5 &#x2F; JS browser games.<p>I really like it, but development on the project has been stagnant, and I’m considering a move.<p>Can anyone whose used both speak to what Phaser does better&#x2F;worse than ImpactJS?
评论 #16388903 未加载
myth_drannon超过 7 年前
Hopefully Thomas Palef will update his &quot;Discover Phaser&quot; book for Phaser 3.
disease超过 7 年前
Anyone know the story regarding TypeScript definitions and this project? I&#x27;m surprised to see that they don&#x27;t seem to be available yet considering this project used to be written in TypeScript.
评论 #16388891 未加载
ggregoire超过 7 年前
What are the main differences with Pixi? I&#x27;m new to game dev, I picked Pixi 1 week ago because it&#x27;s the one generally recommended on HN.<p>Both frameworks have 17,500 stars on github.
评论 #16372833 未加载
baldfat超过 7 年前
I LOVE Phaser though I have moved on to Godot wanting to see if it is a better fit for me. Congrats to the team for making a great toolkit.
评论 #16375682 未加载
drumttocs8超过 7 年前
How does this compare to standards such as Unity?
评论 #16376236 未加载
dgritsko超过 7 年前
How does this compare to the &quot;Community Edition&quot; of the Phaser framework?
评论 #16373402 未加载
评论 #16375116 未加载