Skip to content
Advertisement

How to code a menu bar across your Pygame project

I have been struggling with merging my code.

I am creating an arcade game on Python and have a main file where I have an image and clickable assets which link to a game I have imported.

Now I am working on creating constant features in the game, including a menu bar which displays reminders, can change the volume and brightness setting etcetura.

However, I don’t know how to make this on my main project file. Could you help me out?

I am using Python Pygame, Tkinter and Turtle.

Advertisement

Answer

It sounds like you need to think some more about what exactly you want. Your question is rather vague and tkinter has several options that can be presented in various ways to a user for making selections. Below is a quick example of some ideas you may want to explore.tkinter widgets

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement