diff options
Diffstat (limited to 'release/scripts/templates/gamelogic.py')
-rw-r--r-- | release/scripts/templates/gamelogic.py | 4 |
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 """ |