changeset 133:6cfedf4dc1b7

demo
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Sun, 13 Jul 2014 15:54:07 +0000
parents afaac497dfe7
children 2607d82685d2
files creep.py demo.py
diffstat 2 files changed, 19 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/creep.py	Sat Jul 12 12:02:13 2014 +0000
+++ b/creep.py	Sun Jul 13 15:54:07 2014 +0000
@@ -1,13 +1,13 @@
 import kubik
 
-STRIDE = 42
-SPEED = 3
+STRIDE = 36
+SPEED = 2
 SWING = 24
 SWING_SPEED = 4
 SPREAD = 35
 HEIGHT = -35
 STEP = -5
-OVERLAP = 1
+OVERLAP = 0
 FPS = 36
 
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/demo.py	Sun Jul 13 15:54:07 2014 +0000
@@ -0,0 +1,16 @@
+import kubik
+from creep import creep
+from rotate import rotate
+from wave import wave
+
+FPS = 36
+
+
+if __name__ == '__main__':
+    robot = kubik.Robot()
+    robot.home()
+    robot.run_animations(creep(robot, 6) , FPS)
+    robot.run_animations(rotate(robot, 4), FPS)
+    robot.run_animations(creep(robot, 6) , FPS)
+    robot.run_animations(rotate(robot, 2), FPS)
+    robot.run_animations([wave(robot)], FPS)