2023-03-09 19:44:02 +01:00
|
|
|
import pygame
|
2023-03-12 16:08:54 +01:00
|
|
|
from gameContext import GameContext
|
2023-03-09 19:44:02 +01:00
|
|
|
|
2023-03-12 16:08:54 +01:00
|
|
|
def handle_game_event(event, game_context: GameContext):
|
|
|
|
update_canvas(game_context)
|
|
|
|
return
|
|
|
|
|
|
|
|
def update_canvas(game_context: GameContext):
|
|
|
|
game_context.canvas.blit(game_context.stick_man_pygame, (game_context.dust_car_position_x, game_context.dust_car_position_y))
|