게임 객체 (Rect)
: 크기 정보 + 좌표 정보 가지고 있음

 

girl_image = pygame.image.load('girl.png')
girl = girl_image.get_rect()
girl.left = 300 - girl_image.get_width() // 2
girl.top = 800 - girl_image.get_height()


girl = girl_image.get_rect(centerx=300,bottom=800 )

 

const a= [
{id:"foo", name: "yk", memo:"200"},
{id:"bar", name: "bbb", memo:"900"},
{id:"help", name: "we", memo:"xxx"}
]

a.map(function(인자1,인자2,인자3){
	console.log(인자1,인자2,인자3)
})
map의 콜백함수 인자는 순서에 따라 값이 정해지고 이름은 정하기 나름이다.
첫번째 인자 : 배열의 요소(오브젝트이면 오브젝트)
두번째 인자 : 배열의 index
세번째 인자 : 배열 자체(여기서는 a)


화살표함수로 표현하면 이렇게..
a.map((i,j,k) => console.log(i,j,k))