James's blog |
I have now tested my table football so it can sense a goal for both teams and have done the display in Pygame. The next step is to install it on the table.
I found it hard to run it using .bashrc (allows you to run a program when you boot up) because you need to make a way of exiting other than the usual quit button. I rescued it using remote access through puTTY on a PC. In the code on the Electronics page, you can see I added buttons into the Pygame window to exit and reset.
0 Comments
I have finished Space Invaders, which uses lots of classes and is my first Pygame program using sound. The code is on the Arcade Games page.
I've finally found out how to do collision detection for my new game Flappy Bird.
We would do a similar thing for flappy bird (including updating using self.rect = Rect (...) and store it in the bird object and then call these lines
My new pygame program is flappy bird. At first I zipped along until I had done the moving of flappy and the pipes. My first problem was that I couldn't get the collision detection to work. It was easy in scratch, if touching flappybird, but in pygame it looked like I had to try again but then I looked up how to do it and found some promising results.
AIY Projects is a voice projects powered by google(at aiyprojects.withgoogle.com/voice#project-overview). I got the kit free with the MagPi magazine. I've got it to detect words and say something in response (I say"My name is James" and it says"Hello, I hear you have a blog"). I have considered a few projects e.g. a program were the computer sings (la, laaaa) and you have to sing the right pitch back (it is very hard to detect the pitch though).
|
Advert:
AuthorI am doing lots of projects every projects all the time and I can't put them all on the website so I've made a blog. Archives
August 2022
Categories
|