Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 765 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 765 Bytes

Firework

fireworks made with python3 and pygame

9.10.2018 screenshot

screenshot old version

Vectorcalculation for pygame.math.Vector2 if event.key == pygame.K_KP5: mausvector = pygame.math.Vector2(self.mouse1.x, -self.mouse1.y) eckvector = pygame.math.Vector2(self.eck.pos.x, -self.eck.pos.y) diffvector = mausvector - eckvector rechtsvector = pygame.math.Vector2(1,0) angle = rechtsvector.angle_to(diffvector) #self.eck.rotate(m) Flytext(PygView.width/2, PygView.height/2, "angle = {}".format(angle), color=(255,0,0), duration = 3, fontsize=20)