![Birthday wheel google](https://cdn3.cdnme.se/5447227/9-3/1_64e61dfaddf2b33c615a3cd3.png)
the wheel will spin round from 2 to 4 times. waiting for your input, then calling "spin" function the game has just started = we can spin the wheel setting pin registration point in its center Var pin = (game.width / 2, game.width / 2, "pin") adding the pin in the middle of the canvas setting wheel registration point in its center Wheel = (game.width / 2, game.width / 2, "wheel") adding the wheel in the middle of the canvas funtion to be executed when the state is created function to be executed once the state preloads Game = new Phaser.Game(458, 488, Phaser.AUTO, "")
![birthday wheel google birthday wheel google](https://i.etsystatic.com/9080099/r/il/3aaa12/2244101338/il_1140xN.2244101338_1k36.jpg)
"pendant, so you will never get out of fashion.",
![birthday wheel google birthday wheel google](https://images.squarespace-cdn.com/content/v1/547e892ae4b09a87486fa898/1458159800545-NGO1KB2WS9X5SYXV99MT/ke17ZwdGBToddI8pDm48kKlFAS_y5TSm-1_eN_ojZbN7gQa3H78H3Y0txjaiv_0fDoOvxcdMmMKkDsyUqMSsMWxHk725yiiHCCLfrh8O1z5QPOohDIaIeljMHgDF5CVlOqpeNLcJ80NK65_fV7S1UYljpU9CEG1VcpR5pCbbuJUJo6y7lUkNw-LHZUMDH6l9S8zRQrg41Uku5u4fA-6t2Q/le+ssskratch-14.jpg)
"choice, you can choose your own gift !", "Personal Diary, to save your beautiful memories.", "set of Earrings,a perfect match for your fashion.", prize names, starting from 12 o'clock going clockwise I'm creating a spin wheel for my friend at her birthday, and I want to submit the p.innerHTML, where p is the prize won after spinning to my email by clicking the button which appears after the spin is completed.Įrror : game.js:118 Uncaught TypeError: is not a function.
![Birthday wheel google](https://cdn3.cdnme.se/5447227/9-3/1_64e61dfaddf2b33c615a3cd3.png)