#The Citadel: http://www.mobygames.com/game/citadel__

BasicGame square_size=40 key_handler=Pulse
    SpriteSet
        background > Immovable img=oryx/backLBrown hidden=True
        squarehole   > Immovable color=DARKBLUE img=newset/hole5
        roundhole   > Immovable color=DARKBLUE img=newset/hole4
        avatar > MovingAvatar img=oryx/spelunky_0
        goal > Immovable img=oryx/door2
        crate    > Passive img=oryx/wall2 shrinkfactor=0.8
        boulder    > Passive img=oryx/barrel1 shrinkfactor=0.8
        wall > Immovable img=oryx/dirtwall autotiling=true
    LevelMapping
        0 > background roundhole
        1 > background squarehole
        b > background boulder
        c > background crate
        g > background goal
        . > background
        A > background avatar
        w > wall
    InteractionSet


        avatar wall squarehole roundhole > stepBack

        boulder avatar  > bounceForward
        boulder boulder crate wall goal > undoAll

        boulder roundhole > killBoth scoreChange=1
        boulder squarehole > killSprite

        crate avatar  > bounceForward
        crate crate  > bounceForward repeat=10

        crate wall boulder goal roundhole > undoAll

        crate squarehole > killBoth scoreChange=1
        goal avatar > killSprite scoreChange=5


    TerminationSet
        SpriteCounter stype=goal limit=0 win=True
        SpriteCounter stype=avatar limit=0 win=False