yasdar Posted September 24, 2014 Share Posted September 24, 2014 Hi,how can i add a table to my game, i need the table to show the score of each played round.any idea ?can i add a html table in the game ? for the moment i'm using an image and i'm adding values using a text in front of the image but text go out of the table ( attached image)Thank you Link to comment Share on other sites More sharing options...
spencerTL Posted September 24, 2014 Share Posted September 24, 2014 You can overlay and position the html table in its own DIV but not into the Canvas as such. Link to comment Share on other sites More sharing options...
JUL Posted September 24, 2014 Share Posted September 24, 2014 I think it's a terrible idea. And I don't think you really need it, but rather that you're used to use tables, so you want to use those. Take a look at this http://examples.phaser.io/_site/view_full.html?d=text&f=retro+font+1.js&t=retro%20font%201 Link to comment Share on other sites More sharing options...
CinkoNaap Posted September 25, 2014 Share Posted September 25, 2014 Use fixed (data-empty) image based background, then add BitmapText for scores & team names. If you prepare it properly, you will end up with 3 Draw Call's ( first for background, second for team names, third for score, keeping in mind that you want use different fonts ). Also if you can manage some free space in your sprite-sheets, you will be able to end up with 1 DC. Link to comment Share on other sites More sharing options...
Recommended Posts