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