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:
@@ -1,6 +1,6 @@
|
||||
"""
|
||||
Basic Physics Constraint
|
||||
++++++++++++++++++++++
|
||||
++++++++++++++++++++++++
|
||||
Example of how to create a hinge Physics Constraint between two objects.
|
||||
"""
|
||||
from bge import logic
|
||||
|
@@ -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.
|
||||
|
@@ -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
|
||||
|
@@ -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]]]])
|
||||
|
||||
|
@@ -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])
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user