go-pong

command module
v0.0.0-...-8e250ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

README

Pong in Go

This project is a simpler version of https://github.com/dstoiko/go-pong-wasm, used as a demonstration of a native app running pong in golang. If working on the pong exercise, you can use the logic in this project as an inspiration.

However, there are crucial differences between this project and the pong exercise:

  • The pong exercise is a online multiplayer pong written using Golang and React. This project is a native app letting two players play locally.
  • The pong exercise expect the client side displaying the game to be written in React, and the server side only maintaining state. This project actually draws the game state using Golang and the Ebiten framework.

Features

  • Works on desktop (Linux, MacOS, Windows)
  • 2-player "VS" mode with same keyboard

Build instructions

First, git clone and cd into this repo.

  1. Run make build to build for native desktop (Linux, MacOS, Windows)
  2. Run make run to start running the game.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL