X-Git-Url: https://git.yukkurigames.com/?p=python-bulletml.git;a=blobdiff_plain;f=bulletml%2F__init__.py;h=27faaf03364a52efd3f89b8eb8c3108fe4a1e85e;hp=c87a4425b43ac2889828c0695b97ea6a490579a8;hb=8186eda32d3764ceb7b75fac65bd968f598c4ac8;hpb=29b24c8fc17a3bdcccd1ac853eee5b90c6fd0856 diff --git a/bulletml/__init__.py b/bulletml/__init__.py index c87a442..27faaf0 100644 --- a/bulletml/__init__.py +++ b/bulletml/__init__.py @@ -6,20 +6,20 @@ Gigawing2, G DARIUS, XEVIOUS, ...) This module parses and executes BulletML scripts in Python. All data structures in it are renderer-agnostic. +In addition to the standard BulletML XML format, this module supports +an equivalent YAML format. See bulletml.bulletyaml for more details. + More information is available at the BulletML homepage, http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/index_e.html, or the python-bullet homepage, http://code.google.com/p/python-bulletml/. -If you want to use a YAML-based implementation, check out the -bulletml.bulletyaml module in this package. - Basic Usage: from bulletml import Bullet, BulletML 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] ...