[ sekvoja @ 10.07.2017. 13:18 ] @
Pozdrav,

Da li neko radi sa Angular2 i Phaser?

Ja sam beginner i ne znam kako da instaliram Phaser u Angular componentu...

Trazim po netu i nikako da nadjem neki hello world example.
Koristim angular cli...

Neki savet kako da pocnem?

Tnx
[ mjanjic @ 10.07.2017. 17:03 ] @
Kako nema, možda nema za "hello world", ali Phaser i ne služi za to:
https://github.com/allenRoyston/phaser-angular2-demo
[ sekvoja @ 10.07.2017. 19:50 ] @
Video sam taj seed.

Ono sto mene buni je drugacija struktura fajlova kada se instalira

https://github.com/angular/angular-cli

i

https://github.com/allenRoyston/phaser-angular2-demo

Zato sto sam nub za Angular/Phaser :)


Ja sam instalirao cli i pokusavam da dodam phaser u componentu.
Dakle kako to da uradim u postojecem projektu?


Hvala
[ mjanjic @ 10.07.2017. 20:13 ] @
Ako ne znaš drugačije, "snađeš" se kao ovaj lik ovde: http://www.html5gamedevs.com/t...and-typescript/#comment-169224

Da citiram:
Citat:
- include phaser.js in the index.html file:
Code:
<script src="../node_modules/phaser-ce/build/phaser.js"></script>

- whenever you have to use Phaser inside a module, instead of writing an ES6 import, reference the path of the phaser typings file:
Code:
/// <reference path="../../node_modules/phaser-ce/typescript/phaser.d.ts" />