diff --git a/examples/go.mod b/examples/go.mod index 2fc250b..466bea3 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -1,5 +1,12 @@ -module example +module examples -go 1.19 +go 1.16 -require github.com/Konstantin8105/raylib-go/raylib v0.0.0-20221122153952-2f5d9114177b // indirect +require ( + github.com/gen2brain/raylib-go/easings v0.0.0-20220827153754-6e090424c541 + github.com/gen2brain/raylib-go/physics v0.0.0-20220827153754-6e090424c541 + github.com/gen2brain/raylib-go/raygui v0.0.0-20220827153754-6e090424c541 + github.com/gen2brain/raylib-go/raylib v0.0.0-20220827153754-6e090424c541 + github.com/jakecoffman/cp v1.2.1 + github.com/neguse/go-box2d-lite v0.0.0-20170921151050-5d8ed9b7272b +) diff --git a/examples/main.go b/examples/main.go deleted file mode 100644 index c461680..0000000 --- a/examples/main.go +++ /dev/null @@ -1,30 +0,0 @@ -package main - -import ( - "fmt" - - rl "github.com/Konstantin8105/raylib-go/raylib" -) - -func main() { - rl.InitWindow(800, 450, "raylib [physics] example - box2d") - - rl.SetTargetFPS(60) - - var button bool - - for !rl.WindowShouldClose() { - rl.BeginDrawing() - - rl.ClearBackground(rl.Black) - - button = rl.Button(rl.NewRectangle(50, 150, 100, 40), "Click") - if button { - fmt.Println("Clicked on button") - } - - rl.EndDrawing() - } - - rl.CloseWindow() -}