Skip to content

Instantly share code, notes, and snippets.

@rupython
Created March 4, 2019 17:34
Show Gist options
  • Save rupython/fb11d3a0ad4bd7a97852430083e6b3eb to your computer and use it in GitHub Desktop.
Save rupython/fb11d3a0ad4bd7a97852430083e6b3eb to your computer and use it in GitHub Desktop.
From: Сергей
import colors
screen_width = 800
screen_height = 600
background_image = 'images/background.jpg'
frame_rate = 90
row_count = 6
brick_width = 60
brick_height = 20
brick_color = colors.RED1
offset_y = brick_height + 10
ball_speed = 6
ball_radius = 8
ball_color = colors.GREEN
paddle_width = 80
paddle_height = 20
paddle_color = colors.ALICEBLUE
paddle_speed = 6
status_offset_y = 5
text_color = colors.YELLOW1
initial_lives = 3
lives_right_offset = 85
lives_offset = screen_width - lives_right_offset
score_offset = 5
font_name = 'Arial'
font_size = 20
effect_duration = 20
sounds_effects = dict(
brick_hit='sound_effects/brick_hit.wav',
effect_done='sound_effects/effect_done.wav',
paddle_hit='sound_effects/paddle_hit.wav',
level_complete='sound_effects/level_complete.wav',
)
message_duration = 2
button_text_color = colors.WHITE,
button_normal_back_color = colors.INDIANRED1
button_hover_back_color = colors.INDIANRED2
button_pressed_back_color = colors.INDIANRED3
menu_offset_x = 20
menu_offset_y = 300
menu_button_w = 80
menu_button_h = 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment