gofmt -s -w -l .

This commit is contained in:
JupiterRider 2023-02-11 16:34:47 +01:00
parent 2243b93c92
commit f3d7d84178
9 changed files with 298 additions and 298 deletions

View file

@ -17,9 +17,9 @@ import (
*
********************************************************************************************/
//------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------
// Program main entry point
//------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------
func main() {
// Initialization
//--------------------------------------------------------------------------------------

View file

@ -31,7 +31,7 @@ func DrawScene() {
rl.DrawPlane(rl.Vector3{0, 0, 0}, rl.Vector2{50, 50}, rl.Beige) // Simple world plane
for x := -float32(count * spacing); x <= count*spacing; x += spacing {
for z :=-float32(count * spacing); z <= count*spacing; z += spacing {
for z := -float32(count * spacing); z <= count*spacing; z += spacing {
rl.DrawCube(rl.Vector3{x, 1.5, z}, 1, 1, 1, rl.Lime)
rl.DrawCube(rl.Vector3{x, 0.5, z}, 0.25, 1, 0.25, rl.Brown)
}
@ -42,9 +42,9 @@ func DrawScene() {
rl.DrawCube(cameraPlayer2.Position, 1, 1, 1, rl.Blue)
}
//------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------
// Program main entry point
//------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------
func main() {
// Initialization
//--------------------------------------------------------------------------------------

View file

@ -14,7 +14,7 @@ func main() {
camera.Position = rl.NewVector3(10.0, 10.0, 10.0) // Camera position
camera.Target = rl.NewVector3(0.0, 0.0, 0.0) // Camera looking at point
camera.Up = rl.NewVector3(0.0, 1.0, 0.0) // Camera up vector (rotation towards target)
camera.Fovy = 45.0 // Camera field-of-view Y
camera.Fovy = 45.0 // Camera field-of-view Y
cubePosition := rl.NewVector3(0.0, 0.0, 0.0)
cubeScreenPosition := rl.Vector2{}