19 lines
404 B
Python
19 lines
404 B
Python
|
import pygame
|
||
|
from actors import player
|
||
|
|
||
|
class World:
|
||
|
def __init__(self):
|
||
|
self.actors = [player.Player(self)]
|
||
|
|
||
|
def draw(self, screen):
|
||
|
for actor in self.actors:
|
||
|
actor.draw(screen)
|
||
|
|
||
|
def update(self, dt):
|
||
|
for actor in self.actors:
|
||
|
actor.update(dt)
|
||
|
|
||
|
def phy_update(self, dt):
|
||
|
for actor in self.actors:
|
||
|
actor.phy_update(dt)
|