3 ms·
I've been trying to learn go by building Pong in my terminal. Here is part One where I create a bouncing ball.
by jalletto 4y ago
I've been trying to learn go by building Pong in my terminal. Here is part One where I create a bouncing ball.
- pantulis 4y agoI remember a pretty similar program that was included in the Vic-20 users guide circa 40 years ago. I miss the simplicity of learning by coding something that finally ends up like a game!
- adamgordonbell 4y agoWell now we have a program that says “Hi!” until you press escape. For the loneliest among us, that may be enough. But we came here to build a game, so we’ll need some kind of animation. Love the humor
- boalberto 4y agoThanks! Was great fun following along. Noticed a small typo in the first code segment, `screen` becomes `s` when calling s.Init(). Looking forward to part 2! func main() { screen, err := tcell.NewScreen() if err != nil { log.Fatalf("%+v", err) } if err := s.Init(); err != nil { log.Fatalf("%+v", err) } }
- jalletto 4y agoThank you! I noticed a few grammar errors as well so I’ll be sure to update this.