Jump to content

how do resize game to smartphone


nExt
 Share

Recommended Posts

Hello all,

i have problem. i learn html5 with phaser framework to code game for mobile (android, ios)

But i have problem.. how do game have play full screen and resize for pc and all smartphone

 

example :

in tutorial code init game :

 

var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });

 

but when build to smartphone , it play but screen false,, lost of word or image..

i want to code and build more platform .. please help me if you know !

 

thank you again !

Link to comment
Share on other sites

Please search in forum before asking, bro!

 

P/S: Việt Nam hả :)

ok.. i will search..

 

PS:/ uk .. mới học cái này .. tính code game ios vs android bằng html 5 ạ..

kết bạn mình nhé.. có j nghiên cứu

Link to comment
Share on other sites

Please search in forum before asking, bro!

 

P/S: Việt Nam hả :)

anh build bằng phonegap thì có phải sửa gì không ạ. hay cứ project chạy trên web là nó sẽ chạy trên mobile được ..

em buid bằng intel xdk cũng ra được.. nhưng thi thoảng vẫn phải edit lại mấy cái

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...