GithubHelp home page GithubHelp logo

chenzengqing / egerair Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dily3825002/egerair

0.0 2.0 0.0 3.13 MB

基于 Egret 3.0 搭建的 HTML5 游戏极速开发解决方案。

JavaScript 95.53% HTML 0.17% TypeScript 4.30%

egerair's Introduction

#EGER

===================================

HTML5游戏极速开发解决方案

加群点击右侧按钮: Egret极速开发框架EGER

演示地址1: http://eger.sinaapp.com/code/demo 微信扫码查看演示

qq

演示地址2: http://eger.sinaapp.com/code/effect 微信扫码查看演示

教程地址: http://bbs.egret.com/forum.php?mod=viewthread&tid=1919&highlight=eger

qq

###近期版本更新内容,请查看发布文档

一、【解耦】方便管理

1、使用全局派发事件:Global.dispatchEvent(MainNotify.openGamePanelNotify,null,false);
Global.dispatchEvent(MainNotify.closeStartPanelNotify,null,false);
开发者只需要关注将事件发送出去即可,让其他类处理消息。
2、使用面板管理器几种管理面板PanelManager。类似于工厂模式。
3、使用全局数据GlobalData存放数据。复杂的话新建队形数据类。

二、【简单】高效开发

1、使用面板弹窗管理器PopUpManager。
开发者只需要PopUpManager.addPopUp(this.gameOverPanel);和PopUpManager.removePopUp(this.gameOverPanel);关闭和弹出面板
2、使用公共方法只需要调用Global。如分享到微信只要一句:Global.shareToWeiXin("EGER急速开发解决方案",document.title,"link","iocon.png");
3、获取配置文件只需要调用GameConfig。如GameConfig.curWidth()获取舞台宽度
4、增加特效只需要调用EffectUtils.如EffectUtils.shakeObj(obj)使对象抖动
5、使用常用正则只需要调用RegUtils。如RegUtils.checkMobile()检查手机号码格式是否正确

三、【特效丰富】商业级品质

1、使用PopUpManager,可以选择多种打开面板和关闭面板切换动画
2、使用EffectUtils,可以调用多种特效,如tips飘字特效,震屏特效等

感谢:d8q8、有来有去、shaorui、 errorfun、wander、kuma、yjtx、 张宇、lixin2628、east

链接

想要一起交流么,快快加入吧! EGER极速开发交流群:70843223

觉得不错就支持我一下!

右上角收藏和关注!

或者加我好友,互相学习

qq

Egret官方网站
我的微博

egerair's People

Contributors

dily3825002 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.