From: Joe Wreschnig Date: Thu, 18 Mar 2010 05:57:08 +0000 (-0700) Subject: Patter editing. X-Git-Url: https://git.yukkurigames.com/?a=commitdiff_plain;h=566db5262d961975a4aa4c5896d99773f9d3dd37;p=python-bulletml.git Patter editing. --- diff --git a/README.txt b/README.txt index d491ba5..cd2a6d4 100644 --- a/README.txt +++ b/README.txt @@ -1,17 +1,20 @@ python-bulletml - BulletML for Python ------------------------------------- -This module parses and runs BulletML scripts. BulletML is a markup -language for describing complex bullet patterns in shooting games. -More information is available at the BulletML homepage, -http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/index_e.html. +BulletML is the Bullet Markup Language. BulletML can describe the +barrage of bullets in shooting games. (For example Progear, Psyvariar, +Gigawing2, G DARIUS, XEVIOUS, ...) This module parses and executes +BulletML scripts in Python. All data structures in it are +renderer-agnostic. A sample renderer for Pygame is included. -The module code is renderer-agnostic. A sample renderer for Pygame is -included. +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/. $ ./bulletml-runner examples/*/*.xml -Use Page Up and Page Down to switch between bullet definitions. +Use Page Up and Page Down to switch between bullet definitions, S to +respawn the bullet pattern, and Enter to restart it. Installing @@ -23,6 +26,8 @@ $ sudo ./setup.py install License ------- +The BulletML specification is the work of Kenta Cho. + All example BulletML files in the examples folder are released into the public domain. Everything else is covered by the following license: diff --git a/bulletml/__init__.py b/bulletml/__init__.py index d41422f..1e1dbcd 100644 --- a/bulletml/__init__.py +++ b/bulletml/__init__.py @@ -1,9 +1,14 @@ """BulletML parser. -This module parses and runs BulletML scripts. BulletML is a markup -language for describing complex bullet patterns in shooting games. +BulletML is the Bullet Markup Language. BulletML can describe the +barrage of bullets in shooting games. (For example Progear, Psyvariar, +Gigawing2, G DARIUS, XEVIOUS, ...) This module parses and executes +BulletML scripts in Python. All data structures in it are +renderer-agnostic. + More information is available at the BulletML homepage, -http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/index_e.html. +http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/index_e.html, or the +python-bullet homepage, http://code.google.com/p/python-bulletml/. Basic Usage: @@ -20,7 +25,7 @@ Basic Usage: ... -For drawing, you're on your own, but Bullet has a number of +For drawing, you're on your own, but Bullet instances have a number of attributes that can be used to influence it. """ diff --git a/bulletml/parser.py b/bulletml/parser.py index 62f00d4..5e73069 100644 --- a/bulletml/parser.py +++ b/bulletml/parser.py @@ -21,6 +21,8 @@ except ImportError: from bulletml.errors import Error from bulletml.expr import NumberDef, INumberDef +__all_ = ["ParseError", "BulletML"] + class ParseError(Error): """Raised when an error occurs parsing the XML structure.""" pass diff --git a/setup.py b/setup.py index 2d32e72..17213c2 100755 --- a/setup.py +++ b/setup.py @@ -46,12 +46,14 @@ if __name__ == "__main__": data_files=glob.glob("examples/*/*.xml") + ["examples/template.xml"], scripts=["bulletml-runner"], long_description="""\ -This module parses and runs BulletML scripts. BulletML is a markup -language for describing complex bullet patterns in shooting games. -More information is available at the BulletML homepage, -http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/index_e.html. +BulletML is the Bullet Markup Language. BulletML can describe the +barrage of bullets in shooting games. (For example Progear, Psyvariar, +Gigawing2, G DARIUS, XEVIOUS, ...) This module parses and executes +BulletML scripts in Python. All data structures in it are +renderer-agnostic. A sample renderer for Pygame is included. -The module code is renderer-agnostic. A sample renderer for Pygame is -included. +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/. """ )