Permalink
Browse files

added basic robots.py

  • Loading branch information...
1 parent 727e38d commit ac26ca53f70130f560dde9111a1c0449011cd59b @jlevey3 committed Apr 5, 2012
Showing with 19 additions and 0 deletions.
  1. BIN files/.swp
  2. +19 −0 files/robots.py
View
Binary file not shown.
View
@@ -0,0 +1,19 @@
+import os, sys
+import pygame
+from pygame.locals import *
+from pygame.sprite import Sprite, Group
+from pygame import Surface
+
+class Robot(Sprite):
+ color = 255,255,0
+ size = 10,20
+
+ def __init__(self,loc):
+ Sprite.__init__(self)
+ self.image = Surface(self.size)
+ self.rect = self.image.get_rect
+ self.rect.right = loc
+ self.image.fill(self.color)
+
+# def update(self):
+

0 comments on commit ac26ca5

Please sign in to comment.