Skip to content

mroobit/tiny-pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny Pong

Go License

Tiny Pong for micro:bit-v2. There is a code walkthrough on my website.

tinypong-preview

Flash Tiny Pong to the micro:bit-v2

To flash Tiny Tetris to your micro:bit-v2, type the following from inside the directory:

tinygo build -o=/run/media/{USERNAME}/MICROBIT/flash.hex -target=microbit-v2 main.go

Status

Currently the game is a human player against a naive computer opponent.

  • Human player starts with the ball, whoever scores a point gets to launch the ball next
  • Computer paddle bounds from side to side without consideration for ball location
  • Game ends when either player accumulates 5 points, and point counts are displayed one row out from each player's paddle

Possible Enhancements

  • Computer strategy (follow ball trajectory, anticipate human location when launching ball)
  • Allow human player to change direction with button input
  • Mode for 2 human players (with menu to select 1 or 2 human players)
  • Increase update speed over time
  • Opening splash animation
  • Option to play again? (maintain win count across games?)

About

Tiny Pong for micro:bit-v2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages