Update examples
This commit is contained in:
parent
6e090424c5
commit
8e21086fe1
4 changed files with 11 additions and 12 deletions
|
@ -3,7 +3,7 @@ package main
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/gen2brain/raylib-go/raylib"
|
||||
rl "github.com/gen2brain/raylib-go/raylib"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -18,7 +18,7 @@ func main() {
|
|||
rl.SetTargetFPS(60)
|
||||
|
||||
for !rl.WindowShouldClose() {
|
||||
boxPositionY -= rl.GetMouseWheelMove() * scrollSpeed
|
||||
boxPositionY -= int32(rl.GetMouseWheelMove()) * scrollSpeed
|
||||
|
||||
rl.BeginDrawing()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue