Scratch Coordinate System

Поделиться
HTML-код
  • Опубликовано: 16 сен 2024
  • Link to Scratch Coordinate Project
    scratch.mit.ed...
    Scratch determines where to display sprites through a coordinate system, or a mathematical grid of infinite values. It uses the Cartesian coordinate system in which on a two-dimensional plane, a point has two values to locate or reference its exact position.
    cratch's coordinate system uses 2 coordinates, "X position" and "Y position", to determine the location of a sprite on the stage. The "X position" value determines the horizontal location of the sprite and the "Y position" value determines the vertical location or height. The screen is a 480x360 rectangle with the origin in the center, such that the X position can range from 240 to -240, where 240 is the rightmost a sprite can be and -240 is the leftmost, and the Y position can range from 180 to -180, where 180 is the highest it can be and -180 is the lowest it can be.
    Coordinates are, by convention, written as a pair (X, Y): for example, the center of the screen is (0, 0).
    Link to Scratch Coordinate Project
    scratch.mit.ed...

Комментарии • 3