Coder Social home page Coder Social logo

egret-docs's Issues

不能export 吗

习惯性地
··
export class ...;
···
import {} from '...';
发现不行。提示exports错误

demo跑不通?

按照demo去编码,添加的3d物体所在的canvas图片有一个zIndex=-1,导致预览效果一片灰色,通过开发者工具取消掉zIndex=-1这个属性,就能看见改canvas层,请问是什么原因呢?
image

新版Egret Native 0.1.16 Android出现的问题 finish界面的时候

Activity com.iflow.ui.game.GameLaunchActivity has leaked IntentReceiver org.egret.runtime.component.device.b$a@eef168 that was originally registered here. Are you missing a call to unregisterReceiver()?
android.app.IntentReceiverLeaked: Activity com.iflow.ui.game.GameLaunchActivity has leaked IntentReceiver org.egret.runtime.component.device.b$a@eef168 that was originally registered here. Are you missing a call to unregisterReceiver()?

测试碰撞结果实际为true,截图错误

http://developer.egret.com/cn/2d/hit/inexactHit

private onAddToStage(event:egret.Event)
   {
       this.drawText();
       var shp:egret.Shape = new egret.Shape();
       shp.graphics.beginFill( 0xff0000 );
       shp.graphics.drawRect( 0,0,100,100);
       shp.graphics.endFill();
       shp.width = 100;
       shp.height = 100;
       this.addChild( shp );
       var isHit:boolean = shp.hitTestPoint( 10, 10 );
       this.infoText.text = "碰撞结果" + isHit;
   }
   private infoText:egret.TextField;
   private drawText()
   {
       this.infoText = new egret.TextField();
       this.infoText.y = 200;
       this.infoText.text = "碰撞结果";
       this.addChild( this.infoText );
   }

测试碰撞结果实际为true,截图错误

按照教程运行后不能显示图片

按教程:
class Main extends egret.DisplayObjectContainer{
public constructor()
{
super();
this.addEventListener(egret.Event.ADDED_TO_STAGE,this.onAddToStage,this);
}
private onAddToStage(event:egret.Event) {
RES.addEventListener(RES.ResourceEvent.GROUP_COMPLETE, this.onGroupComplete, this);
RES.loadConfig("resource/default.res.json", "resource/");
RES.loadGroup("preload");
}
private onGroupComplete()
{
var img:egret.Bitmap = new egret.Bitmap();
img.texture = RES.getRes("egret_icon_png");
this.addChild(img);
}
}
运行后并没有显示图片

TextureMerger无法解析含有../的路径

TextureMerger无法解析含有../的路径。
在TextureMerger里保存项目后重新打开,在其他目录中的图片无法被加载(非当前目录的下级目录,如../../b.png

远程加载 KTX 资源 加载远程的资源组和多个远程资源该怎么做?

用 Egret 做的微信小游戏,因为刚入手学习不熟悉,基本上都是用 RES.getResByUrl('https://xxx.xxx.xxx.png') 加载服务器上的单个图片或者是接口返回的图片 url 地址,后来图片资源多了之后把default.res.json的地址放到了服务器上,通过在main.ts里用RES.loadConfig("default.res.json", "https://xxx.xxxx.xx/game/resource/"); 来加载资源组,但是随着功能增加图片增加,小游戏经常在微信端闪退,于是搜到了用ktx来减少内存的占用,看的是这篇教程,但是对于远程资源加载还是不懂,又没有具体的例子能帮我解决这个问题?

微信小游戏hitTest

微信基础库2.7.0,无法使用碰撞检测,老版本基础库可以使用。有什么替代方案吗

文档看不了,注册也404

文档已经废了,现在注册也404,无论挂不挂代理都是一样的,这个项目究竟还有没有人在维护,是不是烂尾了?

showAll 模式小游戏不支持

小游戏不支持 showAll 适配模式,推荐使用 fixedWidth 模式
Error: 小游戏不支持 showAll 适配模式,推荐使用 fixedWidth 模式

按照新手引导教程一步步操作,到了微信到开着工具运行阶段报错。

image

描述错误

事件的信息可以包括事件,地点,干什么。 事件应该是时间。

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.