示例#1
0
文件: units.py 项目: jameydeorio/GGJ
  def __init__(self):
    super(Home, self).__init__()

    self.ent = Home.Ent(self)
    self.angle = 0.0
    self.angle_mult = 1.0
    self.angle_delta = 5.0 
    self.mass = params.home.initial_mass
    self.maxmass = 100.0

    screen = pygame.display.get_surface()
    self.image = Media.media.home
    self.rect = self.image.get_rect()
    self.bg = Media.media.back
    self.bgr = self.bg.get_rect() 
    self.pos = vec(0,0)
    self.body = physics.home_body(self.radius)
示例#2
0
文件: units.py 项目: jameydeorio/GGJ
 def update(self):
   self.ent.update()
   world.DestroyBody(self.body)
   self.body = physics.home_body(self.radius)