当前位置: 首页 > 软件库 > Web应用开发 > Web框架 >

phaser-examples

授权协议 Readme
开发语言 JavaScript
所属分类 Web应用开发、 Web框架
软件类型 开源软件
地区 不详
投 递 者 徐嘉谊
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Phaser 2 Examples

Looking for Phaser 3 Examples? They are in their own repo.

Phaser v2 is a fast, free and fun open source HTML5 game framework. It uses Pixi.js for WebGL and Canvas rendering across desktop and mobile web browsers. Games can be compiled to iOS and Android apps via 3rd party tools.

Along with the fantastic open source community Phaser is actively developed and maintained by Photon Storm Limited. As a result of rapid support and a developer friendly API Phaser is currently one of the most starred game frameworks on Github.

Thousands of developers worldwide use it. From indies and multi-national digital agencies to schools and Universities. Each creating their own incredible games. Grab the source and join in the fun!

Visit: The Phaser website and follow on Twitter (#phaserjs)
Learn: API Docs, Support Forum and StackOverflow
Code: 700+ Examples (source available in this repo)
Read: Weekly Phaser World Newsletter
Chat: Slack and IRC
Extend: With Phaser Plugins
Be awesome: Support the future of Phaser

div

Phaser Sandbox

If you'd like to try coding in Phaser right now, with nothing more than your web browser then you can head over to the Phaser Sandbox. You'll find Quick Start templates and a user-friendly editor filled with handy code-completion features.

Source Code Examples

Ever since we started Phaser we've been growing and expanding our extensive set of source code examples. Currently there are over 700 of them!

You can browse the Phaser Examples online - or clone this repo so you've got the source code at hand locally.

License

Phaser is released under the MIT License.

Please note that this license does not cover the graphics or audio files that you will find located in this repository. None of them are to be used in commercial games.

div

Game Mechanic Explorer

The Game Mechanic Explorer is a great interactive way to learn how to develop specific game mechanics in Phaser. Well worth exploring once you've got your dev environment set-up.

Mighty Editor - Visual Game Editor

MightyEditor is a browser-based visual Phaser game editor. Create your maps with ease, position objects and share them in seconds. It also exports to native Phaser code. Excellent for quickly setting-up levels and scenes.

Written something cool that shows Phaser in use? Please tell us about it in our forum or email: support@phaser.io

div

Phaser is a Photon Storm production.

Created by Richard Davey. Powered by coffee, anime, pixels and love.

The Phaser logo and characters are © 2017 Photon Storm Limited.

All rights reserved.

  • 场景: 1.loading场景 2.游戏准备场景(三个) 3.游戏场景 4.游戏结束场景(失败 + 成功) 5.抽奖场景 6.调取简历 重点: 1.碰撞检测 2.位置固定 var state1btn = document.getElementById("state1Btn"); var state1 = document.getElementById("state1"); var state2 =

  • 适用场景: CountDownLatch和CyclicBarrier都是JDK 1.5引入的,而Phaser是JDK 1.7引入的。Phaser的功能与CountDownLatch和CyclicBarrier有部分重叠,同时也提供了更丰富的语义和更灵活的用法。 Phaser顾名思义,与阶段相关。Phaser比较适合这样一种场景,一种任务可以分为多个阶段,现希望多个线程去处理该批任务,对于每个阶段,

  • 一、Phaser 1.1 字段说明 //用于记录parties,phase //高32用于记录当前正在等待释放线程执行的阶段 //低32的高16位表示每一阶段可arrived的parties数量 //低32的低16位表示当前还剩多少parties未arrived private volatile long state; //表示最大可arrived的parties数 private stati

  • 添加事件 phaser 元素上添加事件,需要设置元素interactive()

  • 应开发一个简单的H5小游戏需要,使用了H5游戏框架Phaser,如果手写各种效果代码,怕是要写到头秃,因此必须借用网上开源的引擎了。 Phaser GitHub地址:https://github.com/photonstorm/phaser Phaser 国内粉丝文档、论坛小站:https://www.phaser-china.com/ 根据官方Demo案例接星星(collectStar)改编代码

  • 原文地址:Phaser教程1 Phaser简介 Phaser是一个html5游戏框架,可以帮助开发者快速地制作功能强大、跨浏览器的html5游戏。它唯一的浏览器要求是对canvas标签的支持。 制作一个简单的小游戏 首先创建一个新的html文档,并在页面中引入phaser.js文件 <script src="phaser.min.js"></script> 创建game 接下来需要写这样一段代码:

 相关资料
  • Phaser 是一个快速、免费、有趣的开源HTML5游戏框架,在桌面和移动网络浏览器上提供WebGL和Canvas渲染功能。游戏可以通过使用第三方工具编译成iOS、Android和本地应用程序。你可以使用JavaScript或TypeScript进行开发。

  • IonPhaser Web Component built with Stencil.js to integrate Phaser with any other framework. Inspired by the old IonPhaser directive Demo Do you want to see this web component in action? Visit https://

  • Phaser CE (Community Edition) Phaser CE is a fast, free, and fun open source HTML5 game framework. It uses a custom build of Pixi.js for WebGL and Canvas rendering, and supports desktop and mobile web

  • expo-phaser Tools for using Phaser-ce to build native 2D games in Expo �� Installation Usage Functions Example Demo Installation yarn add expo-phaser Usage Import the library into your JavaScript file

  • Phaser 3 TypeScript Starter Template A starter template for Phaser 3 with TypeScript and webpack for building excellent html5-games that work great in the browser and on mobile devices. Key Features •

  • Create Phaser Web games with ease. generator-phaser-plus is a Yeoman generator that makes starting up Phaser 3 game projects dead simple. Table of Contents Installation and Usage Create a New Phaser G

相关阅读

相关文章

相关问答

相关文档