Skip to content

Canvas not rendering anything #7

@dosier

Description

@dosier

Hey, first of all, thanks for putting in the work. I've been hoping for this mapping, and would like to contribute.

I am trying out one of the examples given in the project, but nothing is being drawn to the screen.

The canvas is created, and I can see the components on the screen through PixiJS debug tools in Chrome, but the rendering loop is not being started.

When I try to manually call app.render() after creating the app, it does draw the background color, if I then try to add a sprite and call app.render() again, it gives me

BatchSystem.ts:45 Uncaught TypeError: Cannot read properties of undefined (reading 'start')
    at BatchSystem.setObjectRenderer (BatchSystem.ts:45:30)
    at Sprite._render (Sprite.ts:369:24)
    at Container.render (Container.ts:643:18)
    at Container.render (Container.ts:647:34)
    at Renderer.render (Renderer.ts:511:23)
    at Application.render (Application.ts:133:23)
    at start (App.kt:69:9)
    at l (App.kt:47:47)
    at Signal.dispatch (Signal.ts:138:22)
    at Loader._onComplete (Loader.ts:548:25)

I suspect it has something to do with the ticker plugin not being loaded because when I invoke app.start() it tells me start is undefined.

Any clues?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions