set background to black, increase visibility of static
This commit is contained in:
parent
a309096c38
commit
159372bd96
2
config
2
config
|
@ -17,7 +17,7 @@ score-font-path = font/Titan-One.ttf
|
||||||
title-font-path = font/Oxygen.ttf
|
title-font-path = font/Oxygen.ttf
|
||||||
scoreboard-font-path = font/terminus/Terminus.ttf
|
scoreboard-font-path = font/terminus/Terminus.ttf
|
||||||
initials-font = font/terminus/Terminus-Bold.ttf
|
initials-font = font/terminus/Terminus-Bold.ttf
|
||||||
show-framerate = yes
|
show-framerate = no
|
||||||
rotate = no
|
rotate = no
|
||||||
|
|
||||||
[mouse]
|
[mouse]
|
||||||
|
|
|
@ -63,7 +63,8 @@ class ElectricSieve(Game):
|
||||||
|
|
||||||
# Create a purple background
|
# Create a purple background
|
||||||
self.background = Surface(self.display.screen.get_size())
|
self.background = Surface(self.display.screen.get_size())
|
||||||
self.background.fill((255, 80, 190))
|
# self.background.fill((255, 80, 190))
|
||||||
|
self.background.fill((0, 0, 0))
|
||||||
|
|
||||||
# Start the title screen
|
# Start the title screen
|
||||||
self.title.activate()
|
self.title.activate()
|
||||||
|
@ -156,12 +157,14 @@ class Title(GameChild):
|
||||||
GameChild.__init__(self, parent)
|
GameChild.__init__(self, parent)
|
||||||
self.display_surface = self.get_display_surface()
|
self.display_surface = self.get_display_surface()
|
||||||
self.delegate = self.parent.delegate
|
self.delegate = self.parent.delegate
|
||||||
bg_color = (255, 222, 173)
|
# bg_color = (255, 222, 173)
|
||||||
|
# bg_color = (220, 220, 148)
|
||||||
|
bg_color = 180, 152, 111
|
||||||
self.background = surface = Surface(self.display_surface.get_size())
|
self.background = surface = Surface(self.display_surface.get_size())
|
||||||
tile = Surface((2, 2))
|
tile = Surface((2, 2))
|
||||||
tile.fill(bg_color)
|
tile.fill(bg_color)
|
||||||
tile.set_at(Vector(0, 1), (220, 119, 41))
|
# tile.set_at(Vector(0, 1), (220, 119, 41))
|
||||||
tile.set_at(Vector(1, 0), (220, 119, 41))
|
# tile.set_at(Vector(0, 0), (220, 119, 41))
|
||||||
for y in range(0, surface.get_height(), 2):
|
for y in range(0, surface.get_height(), 2):
|
||||||
for x in range(0, surface.get_width(), 2):
|
for x in range(0, surface.get_width(), 2):
|
||||||
surface.blit(self.get_game().orient(tile), (x, y))
|
surface.blit(self.get_game().orient(tile), (x, y))
|
||||||
|
@ -220,8 +223,8 @@ class Strip(Sprite):
|
||||||
|
|
||||||
LEFT, RIGHT = range(2)
|
LEFT, RIGHT = range(2)
|
||||||
|
|
||||||
def __init__(self, parent):
|
def __init__(self, parent, interval):
|
||||||
Sprite.__init__(self, parent)
|
Sprite.__init__(self, parent, interval)
|
||||||
self.deactivate()
|
self.deactivate()
|
||||||
self.display_surface = self.get_display_surface()
|
self.display_surface = self.get_display_surface()
|
||||||
self.delegate = self.get_game().delegate
|
self.delegate = self.get_game().delegate
|
||||||
|
@ -380,7 +383,7 @@ class Sieve(Strip):
|
||||||
UP, DOWN = range(2)
|
UP, DOWN = range(2)
|
||||||
|
|
||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
Strip.__init__(self, parent)
|
Strip.__init__(self, parent, 400)
|
||||||
self.delegate = self.get_game().delegate
|
self.delegate = self.get_game().delegate
|
||||||
self.electric = Electric(self)
|
self.electric = Electric(self)
|
||||||
if not self.get_game().rotated:
|
if not self.get_game().rotated:
|
||||||
|
@ -470,12 +473,13 @@ class Electric(Sprite):
|
||||||
else:
|
else:
|
||||||
surface = Surface((self.display_surface.get_height(), self.parent.location.w - 10))
|
surface = Surface((self.display_surface.get_height(), self.parent.location.w - 10))
|
||||||
frames = surface, surface.copy()
|
frames = surface, surface.copy()
|
||||||
colors = (255, 255, 0), (100, 89, 213)
|
# colors = (255, 255, 0), (100, 89, 213)
|
||||||
|
colors = (180, 152, 111), (180, 152, 111)
|
||||||
pixel_arrays = PixelArray(frames[0]), PixelArray(frames[1])
|
pixel_arrays = PixelArray(frames[0]), PixelArray(frames[1])
|
||||||
for x in range(len(pixel_arrays[0])):
|
for x in range(len(pixel_arrays[0])):
|
||||||
for y in range( len(pixel_arrays[0][0])):
|
for y in range( len(pixel_arrays[0][0])):
|
||||||
pixel_arrays[0][x][y] = colors[(y + x) % 2]
|
pixel_arrays[0][x][y] = colors[(y + x) // 5 % 2]
|
||||||
pixel_arrays[1][x][y] = colors[(y + x + 1) % 2]
|
pixel_arrays[1][x][y] = colors[(y + x + 1) // 5 % 2]
|
||||||
for pixels in pixel_arrays:
|
for pixels in pixel_arrays:
|
||||||
del pixels
|
del pixels
|
||||||
for frame in frames:
|
for frame in frames:
|
||||||
|
@ -741,7 +745,7 @@ class Static(Sprite):
|
||||||
self.end.play(-1, 0, 4000)
|
self.end.play(-1, 0, 4000)
|
||||||
self.total.load()
|
self.total.load()
|
||||||
elif not self.complete:
|
elif not self.complete:
|
||||||
self.set_alpha(int(self.intensity * 255))
|
self.set_alpha(min(185, int(self.intensity * 1.4 * 255)))
|
||||||
if self.intensity > 0:
|
if self.intensity > 0:
|
||||||
self.intensity *= .998
|
self.intensity *= .998
|
||||||
self.increaser.update()
|
self.increaser.update()
|
||||||
|
|
|
@ -132,19 +132,3 @@
|
||||||
1670816639.158178 146 ---
|
1670816639.158178 146 ---
|
||||||
1670817307.1141152 53 ---
|
1670817307.1141152 53 ---
|
||||||
1670819531.720299 203 FLA
|
1670819531.720299 203 FLA
|
||||||
1670819619.775536 96 ---
|
|
||||||
1670989457.377776 0 ---
|
|
||||||
1671076263.7870994 4 ---
|
|
||||||
1671076281.177432 0 ---
|
|
||||||
1671076361.7916923 20 ---
|
|
||||||
1671076398.698485 4 ---
|
|
||||||
1671076453.8790646 43 ---
|
|
||||||
1671076466.5137062 0 ---
|
|
||||||
1671076561.3319085 52 ---
|
|
||||||
1671086208.2518148 135 ---
|
|
||||||
1671161829.4724848 14 ---
|
|
||||||
1671168164.8205705 0 ---
|
|
||||||
1671206866.9558506 39 ---
|
|
||||||
1671215305.8678455 25 ---
|
|
||||||
1671224984.921691 13 ---
|
|
||||||
1671225084.4043906 3 ---
|
|
||||||
|
|
Loading…
Reference in New Issue