Ignore:
Timestamp:
09/01/13 15:06:06 (8 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Rebase:
64653134306534303664626663323464396434623235626336396239666236353836613932373734
Message:

Give screens a name and a world.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/area.py

    r35 r37  
    2828class AreaScreen(Screen):
    2929
    30     def setup(self, world):
     30    def setup(self):
    3131        self.keys = ControlKeys()
    32         self.add_walls(world)
    33         self.add_protagonist(world)
     32        self.add_walls()
     33        self.add_protagonist()
    3434
    35     def add_walls(self, world):
     35    def add_walls(self):
    3636        self.walls = []
    3737        body = pymunk.Body()
     
    4444        self.space.add(*self.walls)
    4545
    46     def add_protagonist(self, world):
     46    def add_protagonist(self):
    4747        self.protagonist_body = pymunk.Body(100, 1000)
    4848        self.protagonist_body.position = (400, 300)
Note: See TracChangeset for help on using the changeset viewer.