Integrating procedural generation into the game
This commit is contained in:
parent
302017222d
commit
45120d0c2b
@ -6,6 +6,7 @@ from .enums import GameMode, KeyValues, DisplayActions
|
||||
from .interfaces import Map
|
||||
from .settings import Settings
|
||||
from . import menus
|
||||
from .mapgeneration import randomwalk
|
||||
from typing import Callable
|
||||
|
||||
|
||||
@ -31,8 +32,7 @@ class Game:
|
||||
"""
|
||||
Create a new game on the screen.
|
||||
"""
|
||||
# TODO generate a new map procedurally
|
||||
self.map = Map.load("resources/example_map_2.txt")
|
||||
self.map = randomwalk.Generator().run()
|
||||
self.player = Player()
|
||||
self.map.add_entity(self.player)
|
||||
self.player.move(self.map.start_y, self.map.start_x)
|
||||
|
Loading…
Reference in New Issue
Block a user