我有一个 src 文件夹,其中包含 Main.hx 和 compile.hxml。我运行命令sudo haxelib install nape
,它报告它已成功安装 Nape 2.0.5。
在 Main.hx 我发布了这个页面的代码,然后我运行haxe compil.hxml
它给了我错误:
characters 0-22 : Class not found : nape.geom.Vec2
。我可以得出结论,haxe 没有“看到” Nape。
旁注:我使用 ubuntu 12.10。
如何在我的代码中使用该库?