Projekt_Sztuczna_Inteligencja/event_interpreter.py

31 lines
681 B
Python
Raw Normal View History

import pygame
import minefield as mf
import project_constants as pc
import main as mai
def interpret( event ):
# remove this after adding code
pass
# key press interpretation here
# add calls to sapper object's movement functions
# TODO : key press interpretation goes here
#
# TINY SAMPLE FROM MY PYGAME TEST
# (had trouble with figuring this out)
#
# # this part is true, when you press a key down
# # there's also a KEYUP for letting go
#if event.type == pygame.KEYDOWN:
#
# # this part is true, when a key u pressed down is the left arrow
#if event.key == pygame.K_RIGHT:
# mf.sapper_position[0] += 10
#