Phaser 3 angular combining

I am relatively new to both phaser and angular i am able to make the game run in a normal browser but i am not able put it into an component and make it run.If i put the code into the index.html file in angular it is running but i am not able to move it into a component.

Thanks for your answers

Maybe you could post some code with what you’ve tried? I’m gonna take a stab in the dark that you’ll probably end up doing something like this perhaps - https://www.phaser.io/examples/v3/view/game-config/custom-canvas it’s been a minute since I’ve messed with angular so I can’t give more specific advice but I probably could if I was looking at some code.

1 Like

Thanks for the reply but i solved the issue after doing some digging around the net😀

1 Like

Hy, can you post please what did you find?
I am also trying to run phaser in Angular, and i will be happy to learn how to it.

I haven’t worked on it for some time. So I am just telling from what I remember I had a method/interface that was not available in the phaser.ts file so I just implemented a custom interface/method with the same name and then the project was running good without any issues. Hope this helps

Have you already tried this: https://github.com/yungjoong/phaser3-angular9?

1 Like