This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Code of "Dark Bleu" game from www.lessmilk.com/10/ | |
| Made with Phaser Javascript framework | |
| Note: the is the main source code. I skiped the boring part (preloading the assets, and the menus) | |
| */ | |
| /* | |
| Programming and art made by www.lessmilk.com | |
| You can freely look at the code below, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // array buffer to JSON | |
| const dataString JSON.stringify(Array.from(new Uint8Array(arrayBuffer))); | |
| // send around | |
| // JSON to ArrayBuffer | |
| new Uint8Array(JSON.parse(dataString)).buffer |