mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-31 13:04:29 +01:00
Updated Installation (markdown)
parent
e3a4c54b3d
commit
7ccedf367a
@ -16,3 +16,25 @@ If you don't want to recompile every time when you run your game, you can instal
|
|||||||
```sh
|
```sh
|
||||||
go install github.com/hajimehoshi/ebiten/...
|
go install github.com/hajimehoshi/ebiten/...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Modules
|
||||||
|
|
||||||
|
As of Go 1.11, modules are introduced experimentally. If you want to use Ebiten with modules, execute these commands with Go 1.11 beta 2:
|
||||||
|
|
||||||
|
```
|
||||||
|
# Create your workspace
|
||||||
|
mkdir mygo
|
||||||
|
cd mygo
|
||||||
|
go1.11beta2 mod -init -module example.com/m
|
||||||
|
# The above module name is arbitrary. If you want to make this public on GitHub later,
|
||||||
|
# name it properly like github.com/yourname/yourgame.
|
||||||
|
|
||||||
|
# Get the latest Ebiten (This is optional: If you skip this, the latest stable version will be used)
|
||||||
|
go1.11beta2 get github.com/hajimehoshi/ebiten@master
|
||||||
|
|
||||||
|
# Write your game
|
||||||
|
editor main.go
|
||||||
|
|
||||||
|
# Run your game
|
||||||
|
go1.11beta2 run .
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user