Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Angular2 i Phaser

[es] :: Ostali programski jezici :: Angular2 i Phaser

[ Pregleda: 1935 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

sekvoja

Član broj: 91239
Poruke: 269
*.180.246.250.targo.rs.



Profil

icon Angular2 i Phaser10.07.2017. u 13:18 - pre 82 meseci
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
 
Odgovor na temu

mjanjic
Šikagou

Član broj: 187539
Poruke: 2700



+699 Profil

icon Re: Angular2 i Phaser10.07.2017. u 17:03 - pre 82 meseci
Kako nema, možda nema za "hello world", ali Phaser i ne služi za to:
https://github.com/allenRoyston/phaser-angular2-demo
Blessed are those who can laugh at themselves, for they shall never cease to be amused.
 
Odgovor na temu

sekvoja

Član broj: 91239
Poruke: 269
*.180.246.250.targo.rs.



Profil

icon Re: Angular2 i Phaser10.07.2017. u 19:50 - pre 82 meseci
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
 
Odgovor na temu

mjanjic
Šikagou

Član broj: 187539
Poruke: 2700



+699 Profil

icon Re: Angular2 i Phaser10.07.2017. u 20:13 - pre 82 meseci
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" />

Blessed are those who can laugh at themselves, for they shall never cease to be amused.
 
Odgovor na temu

[es] :: Ostali programski jezici :: Angular2 i Phaser

[ Pregleda: 1935 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.