A functional acoustic guitar in standard tuning made in Pygame
All you need to run this project is -
(1) Make sure Python is installed in your device
(2) Make sure Pygame is installed in your device (you can simply do a 'pip install pygame')
(3) Make sure all the files provided here are in the same directory
(4) Open your terminal, cd to the directory with the files, and run myguitar.py
The convention of the strings is as follows -
e(low) - played using '1' or 'A'
a - played using '2' or 'S'
d - played using '3' or 'D'
g - played using '4' or 'F'
b - played using '5' or 'G'
e(high) - played using '6' or 'H'
The strings are basically playable using keyboard keys from 1 to 6, or from characters 'A' to 'H', you could also simply left click on the strings using your mouse.
https://github.com/surajiyer26/Pygame-Guitar/assets/114157491/351f1e39-b446-427e-8bb0-4182f3088e99
You can see an instance of the project in action in above video
I made this small project on my very first day of learning Pygame. Implemented it just by learning how to paste and move images, and how to play sounds, and with a little bit of programming experience.