Skip to content

Change rotation direction to clockwise #1624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Mar 19, 2023
Merged

Conversation

einarf
Copy link
Member

@einarf einarf commented Mar 7, 2023

All things in arcade should rotate clockwise. Closes #1088

  • Text is already rotating clockwise

Core stuff

  • Sprite shader rotation change
  • Hit box rotation direction
  • ShapeElementList angle clockwise
  • Pymunk hit boxes clockwise
  • Sprite velocity / angle_change / update method
  • math.rotate_point

Draw commands :

  • draw_arc_filled
  • draw_arc_outline
  • draw_parabola_filled
  • draw_parabola_outline
  • draw_circle_filled
  • draw_circle_outline
  • draw_ellipse_filled
  • draw_ellipse_outline
  • draw_line_strip
  • draw_line
  • draw_lines
  • draw_point
  • draw_points
  • draw_polygon_filled
  • draw_polygon_outline
  • draw_triangle_filled
  • draw_triangle_outline
  • draw_lrtb_rectangle_outline
  • draw_xywh_rectangle_outline
  • draw_rectangle_outline
  • draw_lrtb_rectangle_filled
  • draw_xywh_rectangle_filled
  • draw_rectangle_filled
  • draw_scaled_texture_rectangle
  • draw_texture_rectangle
  • draw_lrwh_rectangle_textured

Shape list create methods

  • create_ellipse
  • create_ellipse_filled
  • create_ellipse_filled_with_colors
  • create_ellipse_outline
  • create_line
  • create_line_generic
  • create_line_generic_with_colors
  • create_line_loop
  • create_line_strip
  • create_lines
  • create_lines_with_colors
  • create_polygon
  • create_rectangle
  • create_rectangle_filled
  • create_rectangle_filled_with_colors
  • create_rectangle_outline
  • create_rectangles_filled_with_colors
  • create_text_sprite
  • create_triangles_filled_with_colors

Examples to update (there are probable more of them)

  • asteroid_smasher.py
  • sprite_rotate_around_point.py
  • sprite_health.py
  • sprite_bullets.py
  • sprite_bullets_random.py
  • sprite_bullets_periodic.py
  • sprite_bullets_enemy_aims.py
  • sprite_rotate_around_tank.py
  • sprite_move_angle.py
  • sprite_explosion_particles.py
  • sprite_explosion_bitmapped.py

@pvcraven pvcraven marked this pull request as ready for review March 19, 2023 19:57
@pvcraven pvcraven merged commit 3489752 into development Mar 19, 2023
@einarf einarf deleted the rotation-direction branch March 20, 2023 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsitent rotation directions
2 participants