Changeset 279:8d2e4b2a65bf


Ignore:
Timestamp:
04/08/11 17:59:05 (12 years ago)
Author:
Adrianna Pińska <adrianna.pinska@…>
Branch:
default
Phase:
public
Message:

fixed level editor

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripts/level-editor

    r223 r279  
    2020from skaapsteker.widgets.text import Text
    2121from skaapsteker.gamestate import GameState
     22from skaapsteker.sound import SoundSystem
    2223
    2324FRAMERATE = 60
     
    2728    screen_surface = pygame.display.get_surface()
    2829    game = GameState("game.json")
    29     player = Player(game.world)
     30    player = Player(game.world, SoundSystem(False))
    3031    level = DebugLevel(levelname, player)
    3132    level_surface = level.get_surface()
  • skaapsteker/level.py

    r264 r279  
    153153        objects += self.level_data.get('enemies', [])
    154154        objects += self.level_data.get('sprites', [])
    155         if 'pos' in self.level_data['player']:
    156             objects.append(self.level_data['player'])
    157155
    158156        for object_ in objects:
Note: See TracChangeset for help on using the changeset viewer.