Jump to content

Search the Community

Showing results for tags 'phaser.container'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. let width = this.game.config.width; let height = this.game.config.height; let startGameText = this.make.text(findGameButtonText).setOrigin(0.5, 0.5); let startGameButton = this.add.sprite(0, 0, 'ui-spritesheet-blue', 'blue_button00.png'); let startGameContainer = this.add.container(0, 0, [ startGameButton, startGameText ]); startGameContainer.setSize(190, 50).setInteractive(); let optionsText = this.make.text(menuOptionsButtonText).setOrigin(0.5, 0.5); let optionsButton = this.add.sprite(0, 0, 'ui-spritesheet-blue', 'blue_button00.png'); let optionsContainer = this.add.container(0 + 200, 0, [ optionsText, optionsButton ]); optionsContainer.setSize(190, 50).setInteractive(); let mainMenuButtons = this.add.container(width / 2, height / 2 + 200, [ startGameContainer, optionsContainer ]); mainMenuButtons.setSize(width, 50); Options for texts export const menuOptionsButtonText = { x: 0, y: 0, text: 'Options', style: { fontSize: '16px', fontFamily: 'Monospace', color: '#ffffff', align: 'center', shadow: { color: '#000000', fill: true, offsetX: 2, offsetY: 2, blur: 8 } } }; export const findGameButtonText = { x: 0, y: 0, text: 'Start game', style: { fontSize: '16px', fontFamily: 'Monospace', color: '#ffffff', align: 'center', shadow: { color: '#000000', fill: true, offsetX: 2, offsetY: 2, blur: 8 } } } I can not understand why the text "Options" is not displayed
×
×
  • Create New...