Update features
This commit is contained in:
@@ -33,10 +33,11 @@ spawner = Spawner("images/Barrier.png") # Initialize spawner
|
|||||||
last_barrier = barriers[0]
|
last_barrier = barriers[0]
|
||||||
|
|
||||||
def get_features(horse):
|
def get_features(horse):
|
||||||
features = [last_barrier.rect.topleft, last_barrier.rect.bottomleft,
|
features = [last_barrier.rect.topleft[0], last_barrier.rect.topleft[1],
|
||||||
last_barrier.rect.bottomright, last_barrier.rect.topright,
|
last_barrier.rect.bottomright[0], last_barrier.rect.bottomright[1],
|
||||||
horse.rect.topleft, horse.rect.bottomleft, horse.rect.bottomright, horse.rect.topright,
|
horse.rect.topleft[0], horse.rect.topleft[1],
|
||||||
HEIGHT]
|
horse.rect.bottomright[0], horse.rect.bottomright[1],
|
||||||
|
HEIGHT, BARRIER_SPEED]
|
||||||
return features
|
return features
|
||||||
|
|
||||||
UI.add_horses(horses) # Add horses to UI
|
UI.add_horses(horses) # Add horses to UI
|
||||||
|
|||||||
Reference in New Issue
Block a user