This repository has been archived on 2025-05-08. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
SmartDots/level.py

16 lines
537 B
Python

from typing import List
from game import Game
from obstacle import Obstacle
from vector import Point
class Level:
def __init__(self, start: Point, goal: Point, obstacles: List[Obstacle], checkpoints: List[Point]):
self.start: Point = start
self.goal: Point = goal
self.obstacles: List[Obstacle] = obstacles
self.checkpoints: List[Point] = checkpoints
def make_game(self, width: float, height: float):
return Game(width, height, self.start, self.goal, self.obstacles, self.checkpoints)