samples/03_rendering_sprites/04_color_and_rotation/app/main.rb
# Sets definition of destination_rect (used to define the car sprite)
Sets definition of destination_rect (used to define the car sprite)
Sets definition of destination_rect ( used to define the car sprite )
def destination_rect state
  [state.x, state.y,
  state.sprite.width  * state.sprite.scale, 
  state.sprite.height * state.sprite.scale]
end
def destination_rect state [ state . x , state . y , state . sprite . width * state . sprite . scale , state . sprite . height * state . sprite . scale ] end
Sets definition of destination_rect (used to define the car sprite)
Sets definition of destination_rect ( used to define the car sprite )
# multiplies by 4 to set size
state