Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-01-26 10:54:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-01-26 10:54:27 +0300
commit1f5cec709c8f79ff706eca4399583696853a3aec (patch)
treea5b8283383b7151c506ecccea3cfc7a39d90b24b /release/scripts/templates/gamelogic.py
parent7a231938119f97bde0f78bd939a55274806cf1f5 (diff)
update to background_job template to use --factory-startup option.
make all templates pep8 compliant.
Diffstat (limited to 'release/scripts/templates/gamelogic.py')
-rw-r--r--release/scripts/templates/gamelogic.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/release/scripts/templates/gamelogic.py b/release/scripts/templates/gamelogic.py
index 0a419955b81..c6d15850a4e 100644
--- a/release/scripts/templates/gamelogic.py
+++ b/release/scripts/templates/gamelogic.py
@@ -9,6 +9,7 @@ import bge
# for functions like getWindowWidth(), getWindowHeight()
# import Rasterizer
+
def main():
cont = bge.logic.getCurrentController()
@@ -18,7 +19,6 @@ def main():
# for scripts that deal with spacial logic
own_pos = own.worldPosition
-
# Some example functions, remove to write your own script.
# check for a positive sensor, will run on any object without errors.
print('Logic info for KX_GameObject', own.name)
@@ -52,14 +52,12 @@ def main():
# sens_key = cont.sensors['key_sensor']
# actu_motion = cont.actuators['motion']
-
# Loop through all other objects in the scene
sce = bge.logic.getCurrentScene()
print('Scene Objects:', sce.name)
for ob in sce.objects:
print(' ', ob.name, ob.worldPosition)
-
# Example where collision objects are checked for their properties
# adding to our objects "life" property
"""