|
@@ -1,24 +1,29 @@
|
1
|
|
- #shuvit.org
|
|
1
|
+#shuvit.org
|
2
|
2
|
|
3
|
|
- # control script
|
|
3
|
+# control script
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+import bge
|
|
7
|
+import GameLogic
|
|
8
|
+import ctypes
|
|
9
|
+import math
|
|
10
|
+from sys import platform
|
|
11
|
+from mathutils import Vector
|
|
12
|
+
|
4
|
13
|
def main():
|
5
|
14
|
#scale = .3
|
6
|
15
|
#action layers
|
7
|
16
|
#0-14 rolling
|
8
|
17
|
#fliplay = 500
|
9
|
18
|
#grindlay = 700
|
10
|
|
- os = 'Windows'
|
11
|
|
- from sys import platform
|
12
|
|
- if platform != "win32":
|
13
|
|
- os = 'Linux'
|
14
|
|
- def onWindows():
|
15
|
|
- return os == 'Windows'
|
16
|
|
- from mathutils import Vector
|
|
19
|
+# os = 'Windows'
|
|
20
|
+#
|
|
21
|
+# if platform != "win32":
|
|
22
|
+# os = 'Linux'
|
|
23
|
+# def onWindows():
|
|
24
|
+# return os == 'Windows'
|
|
25
|
+
|
17
|
26
|
|
18
|
|
- import bge
|
19
|
|
- import GameLogic
|
20
|
|
- import ctypes
|
21
|
|
- import math
|
22
|
27
|
|
23
|
28
|
scene = bge.logic.getCurrentScene()
|
24
|
29
|
try:
|
|
@@ -26,13 +31,13 @@ def main():
|
26
|
31
|
init=1
|
27
|
32
|
except:
|
28
|
33
|
init=0
|
29
|
|
- if init:
|
30
|
|
- cont.GameLogic.getCurrentController()
|
31
|
|
- own = cont.getOwner()
|
32
|
|
- name = own.getName()
|
33
|
|
- if not GameLogic.DictObjects.has_key(name):
|
34
|
|
- GameLogic.DictObjects[name]=cont
|
35
|
|
- own.init=0
|
|
34
|
+# if init:
|
|
35
|
+# cont.GameLogic.getCurrentController()
|
|
36
|
+# own = cont.getOwner()
|
|
37
|
+# name = own.getName()
|
|
38
|
+# if not GameLogic.DictObjects.has_key(name):
|
|
39
|
+# GameLogic.DictObjects[name]=cont
|
|
40
|
+# own.init=0
|
36
|
41
|
#reduction = 400000
|
37
|
42
|
#axisTh = 0.03
|
38
|
43
|
|