Merge pull request #64 from stanim/patch-1
Fix package name in documentation
This commit is contained in:
commit
adf3401c3c
1 changed files with 8 additions and 8 deletions
|
@ -14,21 +14,21 @@ Example:
|
||||||
import "github.com/gen2brain/raylib-go/raylib"
|
import "github.com/gen2brain/raylib-go/raylib"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
raylib.InitWindow(800, 450, "raylib [core] example - basic window")
|
rl.InitWindow(800, 450, "raylib [core] example - basic window")
|
||||||
|
|
||||||
raylib.SetTargetFPS(60)
|
rl.SetTargetFPS(60)
|
||||||
|
|
||||||
for !raylib.WindowShouldClose() {
|
for !rl.WindowShouldClose() {
|
||||||
raylib.BeginDrawing()
|
rl.BeginDrawing()
|
||||||
|
|
||||||
raylib.ClearBackground(raylib.RayWhite)
|
rl.ClearBackground(rl.RayWhite)
|
||||||
|
|
||||||
raylib.DrawText("Congrats! You created your first window!", 190, 200, 20, raylib.LightGray)
|
rl.DrawText("Congrats! You created your first window!", 190, 200, 20, rl.LightGray)
|
||||||
|
|
||||||
raylib.EndDrawing()
|
rl.EndDrawing()
|
||||||
}
|
}
|
||||||
|
|
||||||
raylib.CloseWindow()
|
rl.CloseWindow()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue