X-Git-Url: https://git.yukkurigames.com/?p=python-bulletml.git;a=blobdiff_plain;f=bulletml%2F__init__.py;h=27faaf03364a52efd3f89b8eb8c3108fe4a1e85e;hp=addc0fee1bce133a4c49fdd890b9bb9a6ecfbb63;hb=8186eda32d3764ceb7b75fac65bd968f598c4ac8;hpb=70d25195d561d8b5d3126c6bbac0ecad2a502f06 diff --git a/bulletml/__init__.py b/bulletml/__init__.py index addc0fe..27faaf0 100644 --- a/bulletml/__init__.py +++ b/bulletml/__init__.py @@ -19,7 +19,7 @@ Basic Usage: 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] ...