mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Move example files
This commit is contained in:
parent
00a7cb1bac
commit
d25d5f39b0
@ -19,7 +19,7 @@ package main
|
||||
import (
|
||||
"flag"
|
||||
"github.com/hajimehoshi/ebiten"
|
||||
"github.com/hajimehoshi/ebiten/example/blocks"
|
||||
"github.com/hajimehoshi/ebiten/example/blocks/blocks"
|
||||
"log"
|
||||
"os"
|
||||
"runtime"
|
@ -22,15 +22,15 @@ changed easily.
|
||||
## How to execute the example
|
||||
|
||||
```
|
||||
:; cd $GOHOME/src/github.com/hajimehoshi/ebiten/example/blocks
|
||||
:; go run blocks.go
|
||||
:; cd $GOHOME/src/github.com/hajimehoshi/ebiten/example
|
||||
:; go run blocks/main.go
|
||||
```
|
||||
|
||||
### How to benchmark the example
|
||||
|
||||
```
|
||||
:; cd $GOHOME/src/github.com/hajimehoshi/ebiten/example/blocks
|
||||
:; go build -o=example blocks.go
|
||||
:; cd $GOHOME/src/github.com/hajimehoshi/ebiten/example
|
||||
:; go build -o=example blocks/main.go
|
||||
:; ./example -cpuprofile=cpu.out
|
||||
:; go tool pprof ./example cpu.out
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user