Giter Club home page Giter Club logo

Comments (13)

loudoweb avatar loudoweb commented on June 12, 2024

Thanks for the report.

Do you have any proposal? I think we could just remove the Type Parameter...or swap the new by a parse(fast:Fast) method?

from spriterhaxeengine.

Tembac avatar Tembac commented on June 12, 2024

I don't know. The Docs about it on haxe are not updated yet.

from spriterhaxeengine.

frankhdz avatar frankhdz commented on June 12, 2024

The new method is supposed to be defined like this:

typedef ConstructibleKey = {
  public static var fast:Fast;
}

But this is creating other problems in other parts of the code

from spriterhaxeengine.

loudoweb avatar loudoweb commented on June 12, 2024

Thanks for your suggestion. What other problems are you talking about?

from spriterhaxeengine.

loudoweb avatar loudoweb commented on June 12, 2024

Maybe we could just replace
class Metaline<T:ConstructibleKey>
by
class Metaline<T>
(so no more ConstructibleKey)
Can you test?

from spriterhaxeengine.

frankhdz avatar frankhdz commented on June 12, 2024

Well it seems I got passed the constructible error but now there is an error with the tile layer lib. It is not compatible with openfl 4. It is calling a deprecated method:

openfl.display.Tilesheet

haxe/lib/tilelayer/0,2,0/aze/display/TileSprite.hx:175: characters 27-42 : aze.display.TileLayer has no field tilesheet

from spriterhaxeengine.

loudoweb avatar loudoweb commented on June 12, 2024

Are you using SpriterHaxeEngine from git or haxelib?
On git I've made a Tilemap library on the dev branch and have forgot to release it on master branch and haxelib. Can you try?
If it works I'll update SpriterHaxeEngine this weekend with a fix for haxe 3.4 and openfl 4.
Sorry for the delay. Thanks.

from spriterhaxeengine.

frankhdz avatar frankhdz commented on June 12, 2024

Using the one from haxelib.

I will give the Git version hopefully later today and give you some feed back.

from spriterhaxeengine.

frankhdz avatar frankhdz commented on June 12, 2024

I tested with the Git version and still getting a tilemap but on a different line. This is still related to the deprecated openfl.display.Tilesheet. The guys over at openfl say we should be using openfl.display.Tilemap. Unfortunately the tilelayer lib seems to be abandoned with not activity since 2013.

/usr/local/lib/haxe/lib/tilelayer/0,2,0/aze/display/TilesheetEx.hx:4: characters 7-31 : Type not found : openfl.display.Tilesheet

from spriterhaxeengine.

Tembac avatar Tembac commented on June 12, 2024

Haxeflixel is not compatible with openfl 4 yet. I think that I'll have to keep using older version of haxe and this library.

from spriterhaxeengine.

loudoweb avatar loudoweb commented on June 12, 2024

@frankhdz are you using flixel?
If not, the dev branch of SpriterHaxeEngine has a TilemapLibrary. I'll merge into the master branch this weekend after some tests to check if everything works correctly. But it would be great if someone else makes also some tests.

from spriterhaxeengine.

frankhdz avatar frankhdz commented on June 12, 2024

No, not using Flixel, I am trying to implement it with Starling.

from spriterhaxeengine.

loudoweb avatar loudoweb commented on June 12, 2024

Sorry for the long wait. I've fixed the issue.

@frankhdz To make it working you can use TilemapLibrary or create your own StarlingLibrary. You can import your atlas with openfl-atlas instead of using a deprecated library as Tilelayer.

from spriterhaxeengine.

Related Issues (20)

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.