question

stevenareynolds avatar image
stevenareynolds asked

Javascript Game Samples

Hey,

New developer here looking to create our frist Idle Incremental Game in Javascript however there seems to be no tutorials, and no samples of code that can assist with setting up projects in Javascript.

We've successfully managed to create the request from the website to Playfab to register a user which is great, but logging in, no playfab data is returned (like username).

Does anyone know of any good tutorials for setting up a game with Playfab using Javascript, or is this mainly targeted for Unity users?

Thanks,

documentation
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

You can refer to JavaScript quickstart for Native and Phaser - PlayFab | Microsoft Learn to learn how to setup and make API calls. Also,the username will not be returned in the login API result, if you want to get the username, you can call GetAccountInfo API, the username is in the returned data.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

stevenareynolds avatar image stevenareynolds commented ·

Hi Xiao,

I think you're missing the point.

There seems to be no samples, or active projects where we can understand how Playfab works, compared to your Unity port that contains 6/7 projects with very specific needs.

Is there a plan to have some JS samples available so we aren't forced to use Unity for example?

Thanks, Steve

0 Likes 0 ·
Xiao Zha avatar image Xiao Zha stevenareynolds commented ·

We don't have a complete JavaScript sample project that helps you understand how Playfab works, though we do have a couple for Unity (it's the platform the majority of our customers are using, hence the reason it's over-represented in our samples). And currently, there is no plan to add JS samples.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.