Ankit Kothari

  • Content Count

  • Joined

  • Last visited

About Ankit Kothari

  • Rank

Contact Methods

  • Twitter

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. var config = { type: Phaser.WEBGL, parent: 'phaser-example', scene: { preload: preload, create: create, update: update } }; var game = new Phaser.Game(config); var dynamic = null; var value = 0; function preload() { this.load.bitmapFont('desyrel', 'assets/fonts/bitmap/desyrel.png', 'assets/fonts/bitmap/desyrel.xml'); this.load.bitmapFont('desyrel-pink', 'assets/fonts/bitmap/desyrel-pink.png', 'assets/fonts/bitmap/desyrel-pink.xml'); this.load.bitmapFont('shortStack', 'assets/fonts/bitmap/shortStack.png', 'assets/fonts/bitmap/shortStack.xml'); } function create() { dynamic = this.add.bitmapText(0, 500, 'desyrel', ''); dynamic.setFixedSize(10,10) } function update() { dynamic.text = 'value: ' + value.toFixed(2); value += 0.01; }
  2. i tried out all the methods and properties but it didnt apply i dont know why.
  3. I tried out multiple methods and property from the this both link for the phaser3 but not able to set the width of the perticular text i also try to apply font using css but it also not working for me. Thanks in advance.
  4. Yeah i am looking something like this. Can you please help me out more if you have refrence for similiar documentation or examples I created one :
  5. HI, DylanD, I need to create 2d stage with fullscreen and responsive of the stage. Auto resize the stag and fit to the screeen. I am looking for this option. In this ineed the ground fit to the screen and resize accordingly when change the screen size.
  6. wn voFolks, I am currently using phaser js but now i am try to implement babylonjs, I need to create stage 720*480 static stage that will not transferred into 3D. Stage should be STILL. An it is responsive based on the aspect ratio of the browser or the screen. I tried various option but i didnt get any success. Thank in ADVANCED