Coder Social home page Coder Social logo

Comments (11)

ivanpopelyshev avatar ivanpopelyshev commented on September 25, 2024 2

oh right because Tilemap doesnt have tileAnim by default... :) Just register it, it costs nothing anyway

from tilemap.

ShukantPal avatar ShukantPal commented on September 25, 2024 1

I'll look into this today. Was gone on vacation.

from tilemap.

ShukantPal avatar ShukantPal commented on September 25, 2024 1

https://github.com/pixijs/tilemap/releases/tag/v3.2.1

from tilemap.

ivanpopelyshev avatar ivanpopelyshev commented on September 25, 2024

OK, found bug, if you want to try fast fix, apply this to your @pixi/tilemap file in node_modules or where is it 7938df8

also, you wont need to register canvas renderer after this

from tilemap.

jake avatar jake commented on September 25, 2024

thanks for the prompt response! that does seem to work, but it seems i still need the registerPlugin call for it to work.

if I remove the PIXI.CanvasRenderer.registerPlugin('tilemap', CanvasTileRenderer); then I get a separate error I got prior as well (tileAnim is undefined):

Screen Shot 2021-06-08 at 12 28 43 PM

Screen Shot 2021-06-08 at 12 36 00 PM

when I inspect the breakpoint there, it seems my tileAnim is actually null. presumably since both this.tileAnim is null and renderer.plugins.tilemap.tileAnim is undefined.

perhaps registerPlugin is still just required? or maybe the tileAnim fallback a few lines up is missing something?

from tilemap.

jake avatar jake commented on September 25, 2024

great! btw, it took me a bit of sleuthing to realize I needed to register that. seems like its only documented in the actual tilemap/src/CanvasTileRenderer.ts source. a section in the readme on "enabling canvas support" might be worthwhile. I'd write it but honestly I'm not sure I have a full enough grasp on how it works just yet :)

from tilemap.

ivanpopelyshev avatar ivanpopelyshev commented on September 25, 2024

Anyway, its fixed in latest release, but still needs to register plugin
thank you for the report!

from tilemap.

jake avatar jake commented on September 25, 2024

sounds good. when will it be published to npm?

from tilemap.

ivanpopelyshev avatar ivanpopelyshev commented on September 25, 2024

it wasnt? Oh, I just have to call @ShukantPal again. I cant build new version for some reason :(

from tilemap.

jake avatar jake commented on September 25, 2024

correct, on github and npm the latest version is still 3.2.0

from tilemap.

jake avatar jake commented on September 25, 2024

@ShukantPal sorry to be annoying, but any update on publishing a new build to npm? hoping to get this integrated in my game upstream.

thanks!

from tilemap.

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.