doc = Bulletml.BulletML.FromDocument(open("test.xml", "rU"))
rank = 0.5 # Player difficulty, 0 to 1
params = [] # Initial variable settings, usually empty
- actions = [a(params, rank) for a in doc.top]
+ actions = [a(params, rank) for a in doc.actions]
bullet = Bullet(x, y, target=player, actions=actions, rank=rank)
bullets = [bullet]
...