Ram1204

About backend for Phaser game.

Recommended Posts

Hello,

I am fun of Phaser  and have been focusing on it for several months .

I would like someone to let me get the concept of backend part of phaser.

Backend is really needed in development? and if necessary, what should I do for it ?

Please help for newbie ~~~ :)

Share this post


Link to post
Share on other sites

Thanks for your kind reply!!! :)

I think phaser game is mainly considered as client side game.

But when the core engine is placed in any JS file( such as game.js ), any users can see the engine and result data by inspecting the browser.

But sometimes, it is necessary for us to protect the engine or result data from users for some reasons. 

So, I was trying to know how to project them and posted this .

I am looking for your help asap. . . 

Share this post


Link to post
Share on other sites

One more thing 😀

I can see setScreenSize() function in phaser 2.6.2 version and used it several times effectively .

But I can't use this in Phaser 2.10 .

What is the solution for this ? and Could you please let me know which function I can use in this version?

😩

Share this post


Link to post
Share on other sites
15 hours ago, Ram1204 said:

Thanks for your kind reply!!! :)

I think phaser game is mainly considered as client side game.

But when the core engine is placed in any JS file( such as game.js ), any users can see the engine and result data by inspecting the browser.

But sometimes, it is necessary for us to protect the engine or result data from users for some reasons. 

So, I was trying to know how to project them and posted this .

I am looking for your help asap. . . 

There is no way to absolutely hide ANY javascript code or objects handled by JS in any way. If one desires to find something in your code enough - they will.

You'll might want to switch to a compiling language and build executables where code is hidden like C++ or whatever. It may work, reverse engineering to get the initial code is never fast but it's still possible.

You could use Phaser for only visual representation of a game or a project and hide the logic on a server with libs like socket.io but for that you'll need to rent a server at least, so there is that.

Hope it helps

Share this post


Link to post
Share on other sites
15 hours ago, Ram1204 said:

One more thing 😀

I can see setScreenSize() function in phaser 2.6.2 version and used it several times effectively .

But I can't use this in Phaser 2.10 .

What is the solution for this ? and Could you please let me know which function I can use in this version?

😩

Could you provide a console error when you try to use setScreenSize() ?

From what it seems it looks like setScreenSize() is deprecated (and one should avoid using it directly in the first place).

Try using updateLayout() it seems to do the thing you want.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.