Skip to content

Commit

Permalink
Merge branch 'gen2brain:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
unklnik authored Oct 17, 2023
2 parents 3e96c7e + 429cdff commit 6f0f7a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/games/life/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"math/rand"
"time"

"github.com/gen2brain/raylib-go/raylib"
rl "github.com/gen2brain/raylib-go/raylib"
)

const (
Expand Down Expand Up @@ -32,7 +32,7 @@ type Game struct {
}

func main() {
rand.Seed(time.Now().UnixNano())
rand.New(rand.NewSource(time.Now().UnixNano()))

game := Game{}
game.Init(false)
Expand Down
3 changes: 3 additions & 0 deletions raylib/raylib.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ const (
// Set to try enabling interlaced video format (for V3D)
FlagInterlacedHint = 0x00010000

// KeyNull is used for no key pressed
KeyNull = 0

// Keyboard Function Keys
KeySpace = 32
KeyEscape = 256
Expand Down

0 comments on commit 6f0f7a0

Please sign in to comment.