File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -165,12 +165,23 @@ Effect packages can be run by using the ``runeffect`` command::
165
165
166
166
python manage.py runeffect <python.path.to.package>
167
167
168
+ # Example
169
+ python manage.py runeffect examples.cubes
170
+
168
171
This will currently look for the first effect class with the ``runnable `` attribute set to ``True ``,
169
172
make an instance of that effect and call its ``draw `` method every frame. The effect package
170
173
dependencies are also handled. (All handled by ``DefaultProject `` class)
171
174
172
175
The runnable effect is resposible for instantiating other effects it depends on and call them
173
176
directly.
174
177
178
+ Optionally you can also specify the exact effect to run in the effect package
179
+ by adding the class name to the path::
180
+
181
+ python manage.py runeffect <python.path.to.package>.<effect class name>
182
+
183
+ # Example
184
+ python manage.py runeffect examples.cubes.Cubes
185
+
175
186
If you need a more complex setup where multiple runnable effects are involved, you need
176
187
to create a proper project config using ``project.py `` and instead use the ``run `` command.
You can’t perform that action at this time.
0 commit comments