Move example files

This commit is contained in:
Hajime Hoshi 2014-12-14 23:15:18 +09:00
parent 00a7cb1bac
commit d25d5f39b0
12 changed files with 5 additions and 5 deletions

View File

@ -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"

View File

@ -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
```