I have done in the past. If you can get Pygame installed then everything should work. A game I created originally ran really slowly on the Pi, which is when I discovered the clock.tick() method that I cover later on.
I've used PyQt a little in the past, and have taught people to use Tkinter too (although it's painful to use). Have you thought about GUI libraries already?
If you use Pygame to do anything but the most basic aspects of GUI stuff (not game stuff per se) then you end up having to implement all of it. So if you want a button, you have to handle the whole way in which the button functions, as opposed to using a dedicated GUI library which handles this for you.
Laura and Martin who work at the Raspberry Pi Foundation have a beginners GUI library based on Tkinter called GUIZero that might be worth looking at: https://lawsie.github.io/guizero/
I have done in the past. If you can get Pygame installed then everything should work. A game I created originally ran really slowly on the Pi, which is when I discovered the
clock.tick()
method that I cover later on.Thanks. I am mostly interested in GUI aspects for the Pi programming I hope to start doing, not actually writing a game.
Posted using Partiko Android
I've used PyQt a little in the past, and have taught people to use Tkinter too (although it's painful to use). Have you thought about GUI libraries already?
If you use Pygame to do anything but the most basic aspects of GUI stuff (not game stuff per se) then you end up having to implement all of it. So if you want a button, you have to handle the whole way in which the button functions, as opposed to using a dedicated GUI library which handles this for you.
Thanks, I have been considering Tkinter as it is included and I am jumping between my Linux PC and a bunch of Raspberry Pi's.
Posted using Partiko Android
Laura and Martin who work at the Raspberry Pi Foundation have a beginners GUI library based on Tkinter called GUIZero that might be worth looking at: https://lawsie.github.io/guizero/
Thanks, I will check it out.
Posted using Partiko Android
Just posted part 2 here: https://steemit.com/python/@amos1969/game-making-with-python-and-pygame-part-2