Pixel-Composer/objects/Obj_FirebaseFirestore_Collection_Add/Mouse_7.gml

9 lines
226 B
Text
Raw Normal View History

2023-11-14 14:29:11 +01:00
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)