|
@@ -9,6 +9,7 @@
|
9
|
9
|
|
10
|
10
|
camp_pink = (251, 72, 196)
|
11
|
11
|
camp_green = (63, 255, 33)
|
|
12
|
+pause = 2.0
|
12
|
13
|
|
13
|
14
|
from splash import SplashScreen
|
14
|
15
|
from scroll import ScrollText
|
|
@@ -22,7 +23,6 @@ from gamepad import InputWrapper
|
22
|
23
|
from manager import Manager
|
23
|
24
|
from tetris import Tetris
|
24
|
25
|
from breakout import Breakout
|
25
|
|
-from weather import WeatherScreen
|
26
|
26
|
from config import Config
|
27
|
27
|
import util
|
28
|
28
|
|
|
@@ -37,31 +37,43 @@ t.loop_start()
|
37
|
37
|
splash.draw()
|
38
|
38
|
t.loop_end()
|
39
|
39
|
|
40
|
|
-m = Manager(t, i)
|
|
40
|
+m = Manager(t, i, 2, True)
|
41
|
41
|
|
42
|
|
-m.add(ImageScreen(t, "cann.png"))
|
43
|
|
-m.add(Solid(t, 1.0))
|
44
|
|
-
|
45
|
|
-m.add(WeatherScreen(t, i, Config.weather_latlon))
|
46
|
|
-m.add(Solid(t, 1.0))
|
|
42
|
+if not util.isPi():
|
|
43
|
+ # TODO weather does not run on Pi yet unfortunately :(
|
|
44
|
+ from weather import WeatherScreen
|
|
45
|
+ m.add(WeatherScreen(t, i, Config.weather_latlon))
|
|
46
|
+ m.add(Solid(t, pause))
|
47
|
47
|
|
48
|
48
|
m.add(GameOfLife(t, 20, (0, 255, 0), (0, 0, 0), None, 2.0))
|
49
|
|
-m.add(Solid(t, 1.0))
|
|
49
|
+m.add(Solid(t, pause))
|
|
50
|
+
|
|
51
|
+m.add(ImageScreen(t, "32_earth.gif", 0.2, 2))
|
|
52
|
+m.add(Solid(t, pause))
|
|
53
|
+
|
|
54
|
+m.add(ImageScreen(t, "cann.png", 0.2, 1, 10.0))
|
|
55
|
+m.add(Solid(t, pause))
|
|
56
|
+
|
|
57
|
+m.add(ImageScreen(t, "cann2.png", 0.2, 1, 10.0))
|
|
58
|
+m.add(Solid(t, pause))
|
|
59
|
+
|
|
60
|
+m.add(ImageScreen(t, "64_cloud.gif", 0.2, 1, 5.0, (0, 0, 0)))
|
|
61
|
+m.add(Solid(t, pause))
|
50
|
62
|
|
51
|
|
-m.add(ImageScreen(t, "cann2.png"))
|
52
|
|
-m.add(Solid(t, 1.0))
|
|
63
|
+m.add(ImageScreen(t, "64_sephiroth.gif", 0.2, 4, 5.0, (0, 0, 0)))
|
|
64
|
+m.add(Solid(t, pause))
|
53
|
65
|
|
54
|
|
-m.add(ImageScreen(t, "earth.gif"))
|
55
|
|
-m.add(Solid(t, 1.0))
|
|
66
|
+m.add(ImageScreen(t, "64_nlogospin.gif", 0.2, 2))
|
|
67
|
+m.add(Solid(t, pause))
|
56
|
68
|
|
57
|
|
-#m.add(Breakout(t, i))
|
58
|
|
-#m.add(Solid(t, 1.0))
|
|
69
|
+m.add(Breakout(t, i))
|
|
70
|
+m.add(Solid(t, pause))
|
59
|
71
|
|
60
|
|
-#m.add(Tetris(t, i,))
|
61
|
|
-#m.add(Solid(t, 1.0))
|
|
72
|
+m.add(Tetris(t, i,))
|
|
73
|
+m.add(Solid(t, pause))
|
62
|
74
|
|
63
|
|
-#m.add(Snake(t, i, camp_pink, camp_green))
|
64
|
|
-#m.add(Solid(t, 1.0))
|
|
75
|
+m.add(Snake(t, i, camp_pink, camp_green))
|
|
76
|
+m.add(Solid(t, pause))
|
65
|
77
|
|
66
|
78
|
m.restart()
|
67
|
79
|
util.loop(t, m.draw)
|