Wstepny pomysl interakcji pomiedzy paletkami a uzytkownikami
This commit is contained in:
parent
a2f5eeee4f
commit
42f84de695
12
Pong.go
12
Pong.go
@ -12,7 +12,8 @@ var Player2 [10]string
|
||||
var Ball [10][30]string
|
||||
var BallDirection [10][30]string
|
||||
var BallSpeed int
|
||||
|
||||
var GameOver bool
|
||||
var LastPressedKey byte
|
||||
func main() {
|
||||
fmt.Println("hello world!")
|
||||
CreateBoard()
|
||||
@ -68,3 +69,12 @@ func TestingGit() {
|
||||
fmt.Print("Sprawdzam")
|
||||
}
|
||||
|
||||
func Loop() {
|
||||
GameOver = false
|
||||
for GameOver = false {
|
||||
if _,err:= fmt.Scan(&LastPressedKey);
|
||||
if LastPressedKey == "w"
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user