rst bge touch ups: making the title of the examples slightly more noticeable

-  it's still not correct, comparing to the other examples, but at least it looks okish.
-  fixed some small typos
This commit is contained in:
Dalai Felinto
2012-01-23 19:53:23 +00:00
parent 99dc4ec691
commit 5585b3e908
6 changed files with 20 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
"""
Basic Physics Constraint
++++++++++++++++++++++
++++++++++++++++++++++++
Example of how to create a hinge Physics Constraint between two objects.
"""
from bge import logic

View File

@@ -1,6 +1,6 @@
"""
Texture replacement
++++++++++++++++++++++
Texture Replacement
+++++++++++++++++++
Example of how to replace a texture in game with an external image.
createTexture() and removeTexture() are to be called from a module Python
Controller.

View File

@@ -1,6 +1,6 @@
"""
Basic Video Playback
++++++++++++++++++++++
++++++++++++++++++++
Example of how to replace a texture in game with a video. It needs to run everyframe
"""
import bge

View File

@@ -5,6 +5,11 @@ Physics Constraints (bge.constraints)
.. module:: bge.constraints
.. literalinclude:: ../examples/bge.constraints.py
:language: rest
:lines: 2-4
.. literalinclude:: ../examples/bge.constraints.py
:lines: 6-
.. function:: createConstraint(physicsid, physicsid2, constrainttype, [pivotX, pivotY, pivotZ, [axisX, axisY, axisZ, [flag]]]])

View File

@@ -37,8 +37,18 @@ When the texture object is deleted, the new texture is deleted and the old textu
.. module:: bge.texture
.. literalinclude:: ../examples/bge.texture.py
:language: rest
:lines: 2-4
.. literalinclude:: ../examples/bge.texture.py
:lines: 6-
.. literalinclude:: ../examples/bge.texture.1.py
:language: rest
:lines: 2-6
.. literalinclude:: ../examples/bge.texture.1.py
:lines: 8-
.. class:: VideoFFmpeg(file [, capture=-1, rate=25.0, width=0, height=0])

View File

@@ -954,7 +954,7 @@ Game Types (bge.types)
.. deprecated:: use :data:`localPosition` and :data:`worldPosition`.
:type: :class:`mathurils.Vector`
:type: :class:`mathutils.Vector`
.. attribute:: orientation