step
This commit is contained in:
parent
6e21bd54ae
commit
05e7c1f5e7
6 changed files with 10 additions and 9 deletions
|
@ -1,3 +1,5 @@
|
||||||
module example
|
module example
|
||||||
|
|
||||||
go 1.19
|
go 1.19
|
||||||
|
|
||||||
|
require github.com/Konstantin8105/raylib-go/raygui v0.0.0-20221122151443-e8a384ed1346 // indirect
|
||||||
|
|
|
@ -4,7 +4,6 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
rl "github.com/Konstantin8105/raylib-go/raylib"
|
rl "github.com/Konstantin8105/raylib-go/raylib"
|
||||||
gui "github.com/Konstantin8105/raylib-go/raygui"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -19,7 +18,7 @@ func main() {
|
||||||
|
|
||||||
rl.ClearBackground(rl.Black)
|
rl.ClearBackground(rl.Black)
|
||||||
|
|
||||||
button = gui.Button(rl.NewRectangle(50, 150, 100, 40), "Click")
|
button = rl.Button(rl.NewRectangle(50, 150, 100, 40), "Click")
|
||||||
if button {
|
if button {
|
||||||
fmt.Println("Clicked on button")
|
fmt.Println("Clicked on button")
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
module github.com/gen2brain/raylib-go/physics
|
module github.com/Konstantin8105/raylib-go/physics
|
||||||
|
|
||||||
go 1.16
|
go 1.16
|
||||||
|
|
||||||
replace github.com/gen2brain/raylib-go/raylib => ../raylib
|
replace github.com/Konstantin8105/raylib-go/raylib => ../raylib
|
||||||
|
|
||||||
require github.com/gen2brain/raylib-go/raylib v0.0.0-20211111173445-914ca1ffdc4d
|
require github.com/Konstantin8105/raylib-go/raylib v0.0.0-20211111173445-914ca1ffdc4d
|
||||||
|
|
|
@ -2,14 +2,14 @@ module rrem
|
||||||
|
|
||||||
go 1.16
|
go 1.16
|
||||||
|
|
||||||
replace github.com/gen2brain/raylib-go/raylib => ../raylib
|
replace github.com/Konstantin8105/raylib-go/raylib => ../raylib
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/blezek/tga v0.0.0-20150626111426-80720cbc1017
|
github.com/blezek/tga v0.0.0-20150626111426-80720cbc1017
|
||||||
github.com/dsnet/compress v0.0.1 // indirect
|
github.com/dsnet/compress v0.0.1 // indirect
|
||||||
github.com/frankban/quicktest v1.13.0 // indirect
|
github.com/frankban/quicktest v1.13.0 // indirect
|
||||||
github.com/ftrvxmtrx/tga v0.0.0-20150524081124-bd8e8d5be13a // indirect
|
github.com/ftrvxmtrx/tga v0.0.0-20150524081124-bd8e8d5be13a // indirect
|
||||||
github.com/gen2brain/raylib-go v0.0.0-20210714145135-ccae99cbf6dd
|
github.com/Konstantin8105/raylib-go v0.0.0-20210714145135-ccae99cbf6dd
|
||||||
github.com/golang/snappy v0.0.4 // indirect
|
github.com/golang/snappy v0.0.4 // indirect
|
||||||
github.com/jbuchbinder/gopnm v0.0.0-20150223212718-5176c556b9ce
|
github.com/jbuchbinder/gopnm v0.0.0-20150223212718-5176c556b9ce
|
||||||
github.com/jfreymuth/oggvorbis v1.0.3
|
github.com/jfreymuth/oggvorbis v1.0.3
|
||||||
|
|
|
@ -7,7 +7,7 @@ replace github.com/Konstantin8105/raylib-go/raylib => ../raylib
|
||||||
require (
|
require (
|
||||||
github.com/dsnet/compress v0.0.1
|
github.com/dsnet/compress v0.0.1
|
||||||
github.com/frankban/quicktest v1.13.0 // indirect
|
github.com/frankban/quicktest v1.13.0 // indirect
|
||||||
github.com/gen2brain/raylib-go/raylib v0.0.0-20211111173445-914ca1ffdc4d
|
github.com/Konstantin8105/raylib-go/raylib v0.0.0-20211111173445-914ca1ffdc4d
|
||||||
github.com/golang/snappy v0.0.4
|
github.com/golang/snappy v0.0.4
|
||||||
github.com/klauspost/compress v1.13.1
|
github.com/klauspost/compress v1.13.1
|
||||||
github.com/pierrec/lz4 v2.6.1+incompatible
|
github.com/pierrec/lz4 v2.6.1+incompatible
|
||||||
|
|
|
@ -22,7 +22,7 @@ import (
|
||||||
"golang.org/x/crypto/blowfish"
|
"golang.org/x/crypto/blowfish"
|
||||||
"golang.org/x/crypto/xtea"
|
"golang.org/x/crypto/xtea"
|
||||||
|
|
||||||
"github.com/gen2brain/raylib-go/raylib"
|
"github.com/Konstantin8105/raylib-go/raylib"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Data struct {
|
type Data struct {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue