[Doc] `getting-started/world` havs a few oversights

I found two bugs in the Getting Started/world section.

  1. ->moving-the-pillars
    system/pillar.modifier The automatically generated files do not include pre-imported Transform and Frame.

    There is no indication in the following code for the reader.

    tick(delta: Num) {
      each {|entity: Entity, pillar: Data|
    
        var x_now = Transform.get_pos_x(entity) - pillar.speed * delta
        Transform.set_pos_x(entity, x_now)
    
        if(x_now < -256) {
          Frame.end { Entity.destroy(entity) }
        }
    
      } //each
    } //tick
    
  2. ->polishing
    The parameter changed from dist to overlap_dist without a highlight reminder, causing a conflict with the redefinition of the dist variable in the following code.

    Arcade.add_collision_callback(player) {|entity_a, entity_b, state, normal, overlap_dist|
     if(state != CollisionEvent.begin) return
    
     var dot = Math.dot2D(normal, [0,1,0])
    
     var scale = Transform.get_scale_world(entity_b)
     var height = Arcade.get_height(entity_b) * scale.y
     var top = Transform.get_pos_y_world(entity_b) + (height * 0.5)
     var dist = (top - (Transform.get_pos_y_world(player) - 32))
    
     if(dot.abs < 0.8 && dist > 32) {
       World.set_rate(world, 0)
     }
    
     if(Tags.has_tag(entity_b, "flower")) {
       Anim.play(entity_b, "anim/bounce")
     }
    
    } //collision callback
    

Thanks, that’s good to catch.

Added to the list!

(Throwing out that the source for the documentation is available, if anyone has an interest in fixing that kinda thing it’s an option).