code refactor

This commit is contained in:
2019-10-22 11:13:31 +02:00
parent 979f0c3032
commit 65808e4c62
5 changed files with 148 additions and 151 deletions

View File

@@ -1,3 +1,4 @@
import pygame
from pygame.locals import HWSURFACE, DOUBLEBUF
FLAGS = HWSURFACE | DOUBLEBUF #| FULLSCREEN
@@ -5,7 +6,11 @@ FLAGS = HWSURFACE | DOUBLEBUF #| FULLSCREEN
GX = 1000
GY = 1000
CELL_COLOR = (80,80,80)
CAR_SIZE=25
CAR_SIZE=20
VISION_LENGTH = 50
VISION_SPAN = 25 # degrees
THROTTLE_POWER = 3
THROTTLE_POWER = 3
pygame.init()
screen = pygame.display.set_mode((GX, GY), FLAGS)
screen.set_alpha(None)