hide mouse, changed dial speed
This commit is contained in:
parent
3e5c5cc896
commit
8e72231332
@ -64,10 +64,10 @@ def main(windowed_mode):
|
||||
prev_mouse_pos = (0, 0)
|
||||
mouse_pos = (0, 0)
|
||||
get_mouse_speed = False
|
||||
pygame.mouse.set_visible(False)
|
||||
|
||||
while running:
|
||||
clock.tick(FPS)
|
||||
|
||||
# pygame.mouse.set_visible(False)
|
||||
prev_mouse_pos = mouse_pos
|
||||
mouse_pos = pygame.mouse.get_pos()
|
||||
|
||||
@ -90,7 +90,7 @@ def main(windowed_mode):
|
||||
diff_angle = math.atan2(mouse_diff[0], mouse_diff[1])
|
||||
speed_coeff = math.cos((mouse_angle - (0.5 * PI)) - diff_angle)
|
||||
final_speed = movement_speed * speed_coeff
|
||||
dial.move_dial(final_speed / -5000.0)
|
||||
dial.move_dial(final_speed / -3000.0)
|
||||
|
||||
|
||||
pygame.quit()
|
||||
|
Loading…
Reference in New Issue
Block a user