<commit_before>class Player

  attr_reader :bombs
  def initialize
    @t_size       = Processor::TileSize
    @sprites      = Gosu::Image.load_tiles(Processor.window, "resources/images/temp_char.png", @t_size, @t_size, false)
    @index        = Processor.has_at_least_one_player? ? 1 : 0
    @bombs        = []
    @move_control = {[Gosu::Button::KbLeft,  Gosu::Button::KbA] => [[-1, 0],[0, 0, 0, 43]],
                    [Gosu::Button::KbRight, Gosu::Button::KbD] => [[1, 0], [43, 0, 43, 43]],
                    [Gosu::Button::KbUp,    Gosu::Button::KbW] => [[0, -1],[43, 0, 0, 0]],
                    [Gosu::Button::KbDown,  Gosu::Button::KbS] => [[0, 1],[43, 43, 0, 43 ]]}
    @bomb_control = [Gosu::Button::KbSpace, Gosu::Button::KbRightAlt]
    start_coords = [@t_size * 1 + 1, @t_size * 14 + 1]
    @x = @y = start_coords[@index]
  end

  def draw
    @sprites.first.draw(@x, @y, 1)
  end

  def update
    movement!
    bombs!
  end

  def no_collision?(target)
    !Processor.window.map.solid_at?(@x+target[0]+target[2], @y+target[1]+target[3])
  end

private
  def movement!<commit_msg>give player higher z index<commit_after>class Player

  attr_reader :bombs
  def initialize
    @t_size       = Processor::TileSize
    @sprites      = Gosu::Image.load_tiles(Processor.window, "resources/images/temp_char.png", @t_size, @t_size, false)
    @index        = Processor.has_at_least_one_player? ? 1 : 0
    @bombs        = []
    @move_control = {[Gosu::Button::KbLeft,  Gosu::Button::KbA] => [[-1, 0],[0, 0, 0, 43]],
                    [Gosu::Button::KbRight, Gosu::Button::KbD] => [[1, 0], [43, 0, 43, 43]],
                    [Gosu::Button::KbUp,    Gosu::Button::KbW] => [[0, -1],[43, 0, 0, 0]],
                    [Gosu::Button::KbDown,  Gosu::Button::KbS] => [[0, 1],[43, 43, 0, 43 ]]}
    @bomb_control = [Gosu::Button::KbSpace, Gosu::Button::KbRightAlt]
    start_coords = [@t_size * 1 + 1, @t_size * 14 + 1]
    @x = @y = start_coords[@index]
  end

  def draw
    @sprites.first.draw(@x, @y, 2)
  end

  def update
    movement!
    bombs!
  end

  def no_collision?(target)
    !Processor.window.map.solid_at?(@x+target[0]+target[2], @y+target[1]+target[3])
  end

private
  def movement!
{'fraction_non_alphanumeric': 0.1887133182844244, 'fraction_numerical': 0.03972911963882619, 'mean_word_length': 2.950089126559715, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '52754', 'n_tokens_mistral': 976, 'n_tokens_neox': 890, 'n_words': 167}