From 0bec81c656f6480825d691fa214a4b640948697e Mon Sep 17 00:00:00 2001 From: Konstantin8105 Date: Tue, 22 Nov 2022 18:43:41 +0300 Subject: [PATCH] step --- examples/go.mod | 13 ++++++++++--- examples/main.go | 30 ------------------------------ 2 files changed, 10 insertions(+), 33 deletions(-) delete mode 100644 examples/main.go 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() -}