GoLang game engine Ebiten - 설치

korvald·2020년 8월 19일
0

ebiten

목록 보기
1/1

실행 환경

환경설정은 다음과 같습니다.

// in macOS ~/.bash_profile
export GOROOT="/usr/local/go"
export GOBIN=$PATH:$GOROOT/bin
export GOPATH="/Users/kim/Dev/golang"
export PATH=$PATH:$GOBIN

이 환경에서의 패키징 상황은 이러합니다

/Users/kim/go
ㄴ src
   ㄴ github.com
      ㄴ mygithubid
ㄴ pkg

ebiten 설치

go get github.com/hajimehoshi/ebiten

// 에비텐 라이브러리가 제대로 설치되었는지를 검증하기 위해, rotate exmaple을 실행합니다
go run -tags=example github.com/hajimehoshi/ebiten/examples/rotate

실행 결과

위의 이미지가 계속 빙글 도는 것을 보실 수 있습니다.

profile
내가 Go라니

0개의 댓글