hxdefold / hxdefold-example-frogrunner

Haxe/Lua experiments using Defold game engine
4 stars 2 forks source link

Type not found : Spine #1

Open gerroon opened 10 months ago

gerroon commented 10 months ago

Hi

I am trying to start using Haxe in Defold and I am getting this error when I build it. Am I doing it wrong?

haxe build.hxml

=============================== WARNING ===============================

hxdefold is being thoroughly reworked and will introduce breaking
changes starting with v2.0.0 in the near future.

To prepare for these changes and provide your feedback on them, please
visit the pull-request:

             https://github.com/hxdefold/hxdefold/pull/37

Thank you for using hxdefold!

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

src/Hero.hx:53: characters 13-18 : Type not found : Spine
haath commented 10 months ago

The Spine runtime is not a part of the basic Defold API since a while ago, because of this I also removed it from hxdefold. It is now an extension that you need to add as a dependency, and as such it should not be maintained and versioned together with hxdefold which only reflects the basic API.

Instead, I've made a separate package to keep loosely-versioned externs for extensions: https://github.com/hxdefold/hxdefold-extensions

If you add that as a dependency you should be able to use the Spine externs from there 🙂


On the topic of this example repo: it's outdated

gerroon commented 10 months ago

Hi

Thanks for the reply, I will give it a try. It might help to mention these in the repos because I was scratching my head for some hours