Skip to content

Instantly share code, notes, and snippets.

View crypto-mantra's full-sized avatar
😎
​I am present , recursive and very intuitive

Mr Andrei Ccp Zaharanoff crypto-mantra

😎
​I am present , recursive and very intuitive
View GitHub Profile
@crypto-mantra
crypto-mantra / main.js
Created November 20, 2022 23:58 — forked from kmila/main.js
/*
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,
@crypto-mantra
crypto-mantra / convert-arraybuffer.js
Created March 1, 2022 20:59 — forked from nuclearglow/convert-arraybuffer.js
ArrayBuffer <-> JSON <-> ArrayBuffer
// array buffer to JSON
const dataString JSON.stringify(Array.from(new Uint8Array(arrayBuffer)));
// send around
// JSON to ArrayBuffer
new Uint8Array(JSON.parse(dataString)).buffer