【发布时间】:2019-07-15 03:59:51
【问题描述】:
我正在尝试让 HaxeFlixel 正常工作。它适用于lime test neko,但不适用于lime test neko -debug。它说:
/usr/share/haxelib/flixel/4,6,0/flixel/effects/particles/FlxEmitter.hx:28:字符 34-35:意外 &
下面是FlxEmitter.hx 文件在第 28 行的样子:
typedef FlxEmitter = FlxTypedEmitter<FlxParticle>;
#if (haxe_ver >= "4.0.0")
class FlxTypedEmitter<T:FlxSprite & IFlxParticle> extends FlxTypedGroup<T>
#else
class FlxTypedEmitter<T:(FlxSprite, IFlxParticle)> extends FlxTypedGroup<T>
#end
{
/**
* Set your own particle class type here. The custom class must extend `FlxParticle`. Default is `FlxParticle`.
*/
public var particleClass:Class<T> = cast FlxParticle;
这是我的机器规格:
- Ubuntu 16.04 LTS,64 位
- Lime 命令行工具 (7.2.1)
- HaxeFlixel 命令行工具 (1.4.3)
- 安装的 Flixel 版本:4.6.0
- Haxe 编译器 4.0.0
- OpenFL 版本 8.8.0
【问题讨论】:
标签: haxe haxeflixel