forked from YungGinger22/SREM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.py
55 lines (38 loc) · 1.01 KB
/
tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import constants
import iso
import assets
from main import Game
from vectors import vec3
class Test:
# Abstract method that is run upon initialization of the test:
def run(self):
pass
class TestIso(Test):
pass
class TestGame(Test):
def run(self):
game = Game(600, 800)
game.player.funds = 100000
game.loop()
class TestAbandonment(Test):
def run(self):
game = Game(600, 800)
game.world.building.set_contentment(0)
for _ in range(0,8):
game.world.building.upgrade()
game.loop()
class TestHelipad(Test):
def run(self):
game = Game(600,800)
game.player.funds = 1000000
for _ in range(0,11):
game.world.building.upgrade()
game.world.building.make_helipad()
game.loop()
if __name__ == "__main__":
# assets.images_dir = "pixel"
#test = TestAbandonment()
#test = TestHelipad()
# constants.Gameplay.MILLIS_PER_DAY = 20
test = TestGame()
test.run()