Ignore:
Timestamp:
09/07/13 12:26:28 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Message:

Replace menu and death screen with the starting level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/protagonist.py

    r416 r437  
    1212from nagslang.game_object import (
    1313    GameObject, Physicser, Result, Bullet, ClawAttack, make_body)
     14from nagslang.level import Level
    1415from nagslang.mutators import FLIP_H
    1516from nagslang.resources import resources
     
    341342        self.world.load()
    342343        self.world.deaths += 1
    343         ScreenChange.post('dead')
     344        level, pos = Level.game_starting_point()
     345        self.set_position(pos)
     346        ScreenChange.post(level)
    344347
    345348    def lose_health(self, amount):
Note: See TracChangeset for help on using the changeset viewer.