trendbetgiriş

5 Mayıs 2025, 23:14
4
Cemal (İzmir, 5-year veteran) ⭐⭐⭐⭐⭐
10 yıllık kumarbazım, flaş oran düşüşlerini kovalamak sanattır! Dün Fenerbahçe maçında 2.10 → 1.75 ani düşüş yakalayıp 15.000 TL’lik arbitraj yaptım. Sistemde 1 saniyel# 2.8.4 Cycle 4 ## Design ### Objectives In this cycle, I will be working to create the main menu in my game. The main menu will be simple to start with and just include a button to press to start the game. * [x] Create a main menu scene * [x] Make the game start at the main menu * [x] Create a start button * [x] Make the button start the game when pressed ### Usability Features The main menu will make it obvious to the player where to press to start the game - either by having a clearly labeled button or a clear instruction to press a button. ### Key Variables | Variable Name | Use | | button | Stores the start button to be able to check if it has been pressed. | ### Pseudocode ``` when button pressed: start game when game starts: show menu ``` ## Development ### Outcome At the end of this cycle, I have created a main menu with a button that starts the game when pressed. The code for the main menu is very simple as it just includes a button that when pressed sets the current scene to the world scene. ```javascript export class mainMenu extends Phaser.Scene { constructor() { super({ key: 'mainMenu' }) } create() { //create a start button to start the game const button = this.add.text(100, 100, 'Start Game', { fill: '#0f0' }) .setInteractive() .on('pointerdown', () => this.scene.start('world') ); } } ``` ### Challenges The main challenge I had this cycle was getting the world scene to load after the menu is closed. I initially tried using the scene transition in the opposite direction (from world to menu) which didn't work as I didn't have the menu scene set up. Once I had the menu scene set up, the transition worked as intended. ## Testing ### Tests | Test | Instructions | What I expect | What actually happens | Pass/Fail | | 1 | Run code | Game should start in the main menu scene | As expected | Pass | | 2 | Press "start game" button | Game should switch to the world scene | As expected | Pass | | 3 | Check all scenes are in game scene array | The game scene array should include both mainMenu and world scenes in the key | As expected | Pass | ### Evidence 
10 yıllık kumarbazım, flaş oran düşüşlerini kovalamak sanattır! Dün Fenerbahçe maçında 2.10 → 1.75 ani düşüş yakalayıp 15.000 TL’lik arbitraj yaptım. Sistemde 1 saniyel# 2.8.4 Cycle 4 ## Design ### Objectives In this cycle, I will be working to create the main menu in my game. The main menu will be simple to start with and just include a button to press to start the game. * [x] Create a main menu scene * [x] Make the game start at the main menu * [x] Create a start button * [x] Make the button start the game when pressed ### Usability Features The main menu will make it obvious to the player where to press to start the game - either by having a clearly labeled button or a clear instruction to press a button. ### Key Variables | Variable Name | Use | | button | Stores the start button to be able to check if it has been pressed. | ### Pseudocode ``` when button pressed: start game when game starts: show menu ``` ## Development ### Outcome At the end of this cycle, I have created a main menu with a button that starts the game when pressed. The code for the main menu is very simple as it just includes a button that when pressed sets the current scene to the world scene. ```javascript export class mainMenu extends Phaser.Scene { constructor() { super({ key: 'mainMenu' }) } create() { //create a start button to start the game const button = this.add.text(100, 100, 'Start Game', { fill: '#0f0' }) .setInteractive() .on('pointerdown', () => this.scene.start('world') ); } } ``` ### Challenges The main challenge I had this cycle was getting the world scene to load after the menu is closed. I initially tried using the scene transition in the opposite direction (from world to menu) which didn't work as I didn't have the menu scene set up. Once I had the menu scene set up, the transition worked as intended. ## Testing ### Tests | Test | Instructions | What I expect | What actually happens | Pass/Fail | | 1 | Run code | Game should start in the main menu scene | As expected | Pass | | 2 | Press "start game" button | Game should switch to the world scene | As expected | Pass | | 3 | Check all scenes are in game scene array | The game scene array should include both mainMenu and world scenes in the key | As expected | Pass | ### Evidence 