Updated Installation (markdown)

Hajime Hoshi 2018-10-04 02:29:55 +09:00
parent 639cd7bc76
commit 8089e96d9a

@ -17,26 +17,21 @@ If you don't want to recompile every time when you run your game, you can instal
go install github.com/hajimehoshi/ebiten/... go install github.com/hajimehoshi/ebiten/...
``` ```
# Modules (Go 1.11 beta 2) # Modules (Go 1.11)
As of Go 1.11, modules are introduced experimentally. You can work with Ebiten without GOPATH environment variable. If you want to use Ebiten with modules, execute these commands with Go 1.11 beta 2: As of Go 1.11, modules are introduced experimentally. You can work with Ebiten without GOPATH environment variable. If you want to use Ebiten with modules, execute these commands with Go 1.11:
``` ```sh
# Create your workspace # Write your game at your favorite directory.
mkdir mygo cd yourgame
cd mygo # ...
go1.11beta2 mod -init -module example.com/m
# The above module name is arbitrary. # Initialize go.mod by `go mod`.
# If you want to make this public on GitHub later, # Use URL for your package like `github.com/yourname/yourgame`.
# name it properly like github.com/yourname/yourgame. # If you are not sure and don't plan to share it so far, `example.com/m` is fine.
go mod init example.com/m
# Get the latest Ebiten (This is optional:
# If you skip this, the latest stable version will be used.) # Run your game.
go1.11beta2 get github.com/hajimehoshi/ebiten@master # `go run` installs related libraries automatically.
go run .
# Write your game
editor main.go
# Run your game
go1.11beta2 run .
``` ```