请输入您要查询的百科知识:

 

词条 Phaser (game framework)
释义

  1. Overview

  2. History

  3. Architecture and features

     Rendering  Physics  Animation and Audio  Scripting 

  4. See also

  5. References

  6. External links

{{notability|date=January 2018}}{{Infobox software
| name = Phaser
| logo = Phaser_(game_framework)_logo.png
| developer = Photon Storm
| latest_release_version = 3.16.2
| latest_release_date = {{Start date and age|2019|2|11|df=yes}}
| programming_language = JavaScript, TypeScript
| genre = Game engine
| license = MIT License
| website = {{URL|https://phaser.io/}}
}}Phaser is a free software 2D game framework for making HTML5 games for desktop and mobile.[1] It is developed by Photon Storm.[2]

Phaser uses both a Canvas and WebGL renderer internally and can automatically swap between them based on browser support. This allows for fast rendering across desktop and mobile. It uses the Pixi.js library for rendering.

Games can be compiled to iOS, Android and native desktop apps via 3rd party tools like Apache Cordova.[3]

Overview

The only requirement to use Phaser is a web browser that supports the HTML tag. For desktop this includes Chrome, Firefox, Safari, IE9+ and Opera. Development can be done in either JavaScript or TypeScript[4].

Some of the elements available are:

  • Images, spritesheets and tweens - Static and dynamic images, and a mechanism to animate them.
  • Input control
  • Game Physics - Phaser includes three main physics engines.

History

Richard Davey announced the first release of Phaser on a blog post on April 2013.[5] Version 1.0 was released on September, incorporating the Pixi.js library for rendering.[6]

The last official version of Phaser 2 was 2.6.2, but to allow improvements to the stable version while working on Phaser 3, a new repository was created: Phaser CE (Community Edition).[7] Phaser CE is thus the currently recommended stable platform for development with Phaser.

Phaser 3.0.0 was released on February 13, 2018 and development is ongoing on Github[8]. Most elements and features of the framework have been rebuilt from scratch using a fully modular structure and data-orientated approach. Phaser 3 includes a brand-new custom WebGL renderer designed for modern 2D games. Much of the documentation and examples for users has yet to be completed, although the majority of features have already been implemented.

Architecture and features

Games made with phaser are developed either in JavaScript or TypeScript.

The game is rendered either on WebGL or Canvas element

Phaser has support for Spritesheet, sprites loading; which can be used for animating, moving, etc. It also has support for loading tiled maps.

Rendering

Phaser can be either rendered in WebGl or a canvas, with a option to use WebGL if the browser supports it or if a device doesn't support it it'll fall back to Canvas.

Physics

Phaser ships with Arcade Physics system, Ninja Physics and P2.JS - a full body physics system.

Animation and Audio

Animation can be done in phaser by loading a spritesheet, texture atlas and creating a animation sequence.

Web audio and HTML5 audio can be used to play sound in phaser.

Scripting

Phaser games can be made either in JavaScript or Typescript

See also

{{Portal|Video games}}
  • List of game engines
  • Video game development

References

1. ^https://www.javascripting.com/view/phaser
2. ^https://gamedevelopment.tutsplus.com/articles/how-to-learn-the-phaser-html5-game-engine--gamedev-13643
3. ^https://github.com/photonstorm/phaser
4. ^https://phaser.io/tutorials/how-to-use-phaser-with-typescript
5. ^http://www.photonstorm.com/phaser/announcing-phaser-flixel-html5-and-our-adobe-max-session
6. ^http://www.photonstorm.com/phaser/phaser-1-0-and-the-journey-we-took-to-get-there
7. ^https://phaser.io/download/phaserce
8. ^{{Cite web|url=https://phaser.io/phaser3|title=Phaser - The fast, fun and free HTML5 Game Framework|last=photonstorm.com|first=Photon Storm -|website=phaser.io|language=en|access-date=2018-05-15}}

External links

  • {{Official website|https://phaser.io/}}
{{Video game engines|state=autocollapse}}{{DEFAULTSORT:Phaser (game framework)}}{{videogame-software-stub}}

2 : Video game engines|Free 3D graphics software

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/21 13:23:53