Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions 1_snake_game/1_build_screen_moving_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
import pygame
from pygame.locals import *


def draw_block():
surface.fill((110, 110, 5))
surface.blit(block, (block_x, block_y))
pygame.display.flip()

if __name__ == '__main__':

if __name__ == "__main__":
pygame.init()

surface = pygame.display.set_mode((500, 500))
Expand Down Expand Up @@ -44,4 +46,3 @@ def draw_block():

elif event.type == QUIT:
running = False