A small game using the fogleman/gg library. The current version communicates via command-line interface.
- In the terminal, open the directory where this project is located. Run this project:
go run bille
- Now you can see the starting position of the ball. Open the directory
out
and open the imageout.png
: - Return to your terminal. The game asks you to specify the force of impact (from 1 to 255) and then the direction (from 0 to 360 degrees). Indicate the values that you think are appropriate. This is how the degrees are calculated.
- Now return to the image
out.png
fromout
directory. You can see the trajectory of the ball: If you get in the hole, the effect is as follows: