def touched_dont_touch(self):
    "Detect collision on Don't Touch layer. Reset player if collision."
    if arcade.check_for_collision_with_list(self.player_sprite, self.scene[LAYER_NAME_DONT_TOUCH]):
        self.game_over()
Detect collision on Don't Touch layer. Reset player if collision.
def touched_dont_touch(self):
    
    if arcade.check_for_collision_with_list(self.player_sprite, self.scene[LAYER_NAME_DONT_TOUCH]):
        self.game_over()