Skip to content

Commit 58af577

Browse files
committed
tomerge
1 parent a3b42d5 commit 58af577

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Gravity.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@
33

44
import pygame
55
import math
6+
import pyrebase
67
import random
78
from tkinter import *
89
from Body import Body
910
from Seed import Seed
11+
import json
1012

13+
firebaseConfig = json.load(open('firebaseConfig.json'))
14+
15+
firebase = pyrebase.initialize_app(firebaseConfig)
16+
db = firebase.database()
1117
pygame.init()
1218

1319
root = Tk()

firebaseConfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"apiKey": "AIzaSyC2tRFAgjRVcsgDUSKdOptKQ_Aiw2QGKxQ",
3+
"authDomain": "gravity-sim-seeds.firebaseapp.com",
4+
"databaseURL": "https://gravity-sim-seeds-default-rtdb.firebaseio.com",
5+
"projectId": "gravity-sim-seeds",
6+
"storageBucket": "gravity-sim-seeds.appspot.com",
7+
"messagingSenderId": "738256469892",
8+
"appId": "1:738256469892:web:fb99a5060db0c4da67a7d1"
9+
}

0 commit comments

Comments
 (0)