DEV Community

Braelyn
Braelyn

Posted on

Adding a Phaser game to an Angular App

A few months ago, I posted a tutorial to Medium walking through how to setup Phaser in an Angular application.

Since then, I have added 2 more pieces to the series:

After realizing how obnoxious the Medium paywall can be, I have disabled it for my stories and they are free to read for everyone.

Feel free to let me know what you think!

Discussion (2)

Collapse
tonnerkiller profile image
tonnerkiller

Hi, I don't have a medium account so I comment here.

First of all thank you for your article (I have yet only read the first one, but it was exactly what I was looking for).

I was a bit hesitant to disable the check for default exports, so I looked for an alternative that allows me to leave the checks in place.

It seems that writing import * as Phaser from 'phaser'; instead of the import statement you mention in the article does the trick. At least I have yet not run into any trouble...

Collapse
brsullivan profile image
Braelyn Author

I'm so glad you found it helpful! And that makes sense since TypeScript added support for the import * syntax a little while ago. I've been meaning to go back and update that post with latest versions.