Wstepny pomysl interakcji pomiedzy paletkami a uzytkownikami

This commit is contained in:
knmarcin 2018-11-14 17:18:33 +01:00
parent a2f5eeee4f
commit 42f84de695

12
Pong.go
View File

@ -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"
}
}