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

View File

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