Skip to content

Commit

Permalink
enable shake.
Browse files Browse the repository at this point in the history
  • Loading branch information
setanarut committed Dec 1, 2024
1 parent d36ac1a commit 754bb24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/director/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ func (g *Game) Layout(width, height int) (int, int) {

func main() {
cam.Smoothing = kamera.SmoothDamp
cam.ShakeEnabled = true
img, _, err := image.Decode(bytes.NewReader(images.Smoke_png))
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 754bb24

Please sign in to comment.