Pixel-Composer/objects/Obj_FirebaseFirestore_Collection_Add/Mouse_7.gml
2023-11-14 20:29:11 +07:00

9 lines
226 B
Plaintext

randomize()
var map = ds_map_create()
map[?"value"] = choose("Opera","YoYoGames","GameMaker","Firebase")
map[?"points"] = irandom(999)
var json = json_encode(map)
ds_map_destroy(map)
FirebaseFirestore("Collection").Set(json)