<commit_before>module Asteroids
  class MissilePhysics < Component

    def initialize(game_object, object_pool)
       super(game_object)
       @object_pool = object_pool
    end

  end
end<commit_msg>Implement the update method for ship physics.<commit_after>module Asteroids
  class MissilePhysics < Component

    def initialize(game_object, object_pool)
       super(game_object)
       @object_pool = object_pool
    end

    def update
      object.x += Gosu::offset_x(object.angle, 10) + object.vel_x
      object.y += Gosu::offset_y(object.angle, 10) + object.vel_y
      object.x %= 800
      object.y %= 600
      object.lifespan -= 0.1
    end

  end
end
{'fraction_non_alphanumeric': 0.08245877061469266, 'fraction_numerical': 0.017991004497751123, 'mean_word_length': 2.9761904761904763, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2876071', 'n_tokens_mistral': 229, 'n_tokens_neox': 209, 'n_words': 50}