deepnight / gameBase

Base structure for my games, using Heaps framework and Haxe language.
https://deepnight.net
MIT License
622 stars 153 forks source link

Assets init world error? #103

Closed yz-xlame closed 1 year ago

yz-xlame commented 1 year ago

run: haxe build.js.hxml log:

src/game/Game.hx:90: characters 33-43 : assets.World has no field all_worlds
src/game/Game.hx:44: characters 31-41 : assets.World has no field all_worlds
src/game/Level.hx:67: characters 21-27 : assets.Layer_Collisions has no field render

so, i found

World.hx

private typedef _Tmp =
    haxe.macro.MacroType<[ ldtk.Project.build("res/levels/sampleWorld.ldtk") ]>;
deepnight commented 1 year ago

Hi, Are you using latest LDtk API & latest GameBase from GIT?

yz-xlame commented 1 year ago

Hi, Are you using latest LDtk API & latest GameBase from GIT?

use setup.hxml install packages,ldtk-haxe-api version 1.0.79

yz-xlame commented 1 year ago

reinstall ldtk is to work, thinks. @deepnight