Skip to content

Commit

Permalink
opencv does not want to cooperate, theatre mode on by default
Browse files Browse the repository at this point in the history
  • Loading branch information
quasar098 committed Feb 18, 2024
1 parent 4eb6e39 commit c793654
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ class Config:
"hallway": pygame.Color(40, 44, 52),
"background": pygame.Color(24, 26, 30),
"square": [
pygame.Color(0, 0, 0), # not used
pygame.Color(224, 26, 79),
pygame.Color(173, 247, 182),
pygame.Color(249, 194, 46),
pygame.Color(83, 179, 203)
]
},

Expand Down Expand Up @@ -143,7 +146,7 @@ class Config:
music_offset: Optional[int] = 0
direction_change_chance: Optional[int] = 30
hp_drain_rate = 10
theatre_mode = False
theatre_mode = True
particle_trail = True
shader_file_name = "none.glsl"
do_color_bounce_pegs = False
Expand Down
7 changes: 5 additions & 2 deletions square.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from glowing import make_glowy2
try:
from glowing import make_glowy2
except ImportError:
make_glowy2 = None
from utils import *
import pygame
from pygame import Color
Expand Down Expand Up @@ -94,7 +97,7 @@ def draw(self, screen: pygame.Surface, sqrect: pygame.Rect):
square_color_index = round((self.dir_x + 1) / 2 + self.dir_y + 1)
self.register_past_color(get_colors()["square"][square_color_index % len(get_colors()["square"])])

if Config.theme == "dark_modern":
if Config.theme == "dark_modern" and make_glowy2 is not None:
self.draw_glowing3(screen, sqrect)
else:
pygame.draw.rect(screen, (0, 0, 0), sqrect)
Expand Down

0 comments on commit c793654

Please sign in to comment.