m |
|||
| Line 14: | Line 14: | ||
You can find them at scripts/python/tutorial* with cs standard distribution. | You can find them at scripts/python/tutorial* with cs standard distribution. | ||
| + | |||
| + | * <b>tutorial0.py</b>: minimal pure-Python script to setup Crystal Space from Python. | ||
| + | * <b>tutorial1.py</b>: Creates a room and allows moving around. | ||
| + | * <b>tutorial2.py</b>: Creates a room and some object. | ||
| + | * <b>tutorial3.py</b>: Loads a whole world. | ||
== Celstart Tutorial apps == | == Celstart Tutorial apps == | ||
Revision as of 14:37, 26 June 2007
Contents |
Python Bindings for Cel and CrystalSpace
CrystalSpace and Cel both have their own scripting bindings. The modules are pretty extensive and should give you access to most of the c++ api.
The CrystalSpace python module is called cspace, and the cel counterpart is blcelc. Also, a slightly higher level module is available in cel for entity behaviours, called pycel.
Additionally there exists a module called pycscegui in standard cs distribution that wraps the cegui-cs connector, plus the pycsextra module in CSExtra repository wrapping some additional plugins there, notably the cs-qt connector.
Python Prerequesites Getting python to work with cs
Introduction to the Python Bindings General remarks
cspace Tutorial apps
You can find them at scripts/python/tutorial* with cs standard distribution.
- tutorial0.py: minimal pure-Python script to setup Crystal Space from Python.
- tutorial1.py: Creates a room and allows moving around.
- tutorial2.py: Creates a room and some object.
- tutorial3.py: Loads a whole world.
Celstart Tutorial apps
Some simple celstart applications to get you started.
http://b2cs.delcorp.org/celstart/
Note all of these examples are generated from .blend sources using blender2crystal.
Links
Python section at the cel manual
Python section at the cs manual
Creating celstart-python games using blender2crystal
Projects using CrystalSpace and Python
Do Let Us Know at the mailing list or irc channel if you want your project listed here.
| Ecksdee, a futuristic Race & Destroy game |
