Made the stand and the main wheel still need to do some calculations to place the pegs
Made the stand and the main wheel still need to do some calculations to place the pegs
final fixes - added flappy bird to the menu and added an score indicator im ready for shipping now.
I mad eflappy bird today. I made the entire game on my own, but i used ai for the pixel art. It didnt do a good job so ill have to fix that later and make ym own pixel art. Ill still have to add the score and integrate it to my tkinter menu, but i need to take a break, my brain is fried.
I added the simon says game to the tkinter menu. I added a function that stops the game after 11 points in pong. I added a text that displays your score after you lose in simon says. I aslo added basic sounds to pong but the only one that works is the background song. Im going to fix that tommorow.
So i made the second minigame simon says. Its pretty ruff now so im going straight into polishing both of the current games: Simon says and pong im going to add sounds difficulty levels and add “the button feel” to the simon says game. Also i need to create menus and score to both of the games. I used a bit of AI in the simonsays game cuz i couldnt for the life of me figure oyt how to switch from simon to the player. Turns out it was pretty easy.
So i finally got the singleplayer working. Its actually quite easy i just added the functions that checks the position of the ball relative to the position of the player and if its higher the player moves higher and vice versa. The thing that took me the most amout of time was, a problem i had with a function. I wanted to speed up the ball everytime somebody hits it but i couldnt figure out how to get it to reset after every round. Turns out i just placed this function if lx < 0 or lx > 800: lx_speed = 5into an another function which caused it to break. Next im going to add sound effects and multiple difficulties
I created the first minigame… well kinda. The first minigame is pong but it is for 2 players, but this projects is all about singleplayer games, so during the next devlog im hopefully going to make a bot, that can play against you and you can pick the difficulty. Also i created an ugly starter menu in tkinter, definetely gonna change that.
I added an animation function using a clever tool called .after(). It basically updates something after a given amount if time. I just converted the locations given to me from the eval() function to pixel locations and created circles that update every millisecond and that creates an effect of an animation. I also added an ‘‘clear’’ button because i can’t just reset the animations as i can with the normal plot function.
So i added a minimum nd aximum functions for both equations. If you press the corresponding button it creates a dashed line through the global maximum/minimum of the function. Here’s how it works: First apoint gets selected. Than it checks if the point is bigger than an another point that is a pixel away from that point. If the next point is bigger, the next point becomes the fiirst point essentially. The code does that until the next point is smaller than the current point and it stores that point as max_y. Than it continues until it finds yet another point whose next point is smaller than the point. The code than chcecks if this point’s bigger than max_y and if it is than this point becomes max_y. And so on till it checks the entire function.
Ive added a second equation therefore a 2nd graph. After yuo plot the graph you can find the intercept of the 2 graphs. This took a lot of a shorter time to make and i happy about that. It shoes that im getting more accustomed to tkinter and programming in general. Also i think the code to find the intercpet is pretty neat so im going to paste it in for pixel_x in range(450): x = (pixel_x - 450/2) / k try: y1 = eval(rovnica1) y2 = eval(rovnica2) rozdiel = abs(y1-y2) if rozdiel < najmensi_rozdiel: najmensi_rozdiel = rozdiel priesecnik_x = pixel_x priesecnik_y = 225 - (y1 * k) except: continue
Before thisi worked on the project for an another hour but it didnt get allocated to my project. Im working with support to get that fixed. During these @ hours or so i finished the model UI im going to add a lot more functions and buttons also i moght add an anmiation.
After a lot of vibe coding i managed to connect my other mini TV project to this one. Also i transferred the translation from morse code to the latin alphabet from python back to arduino ide and all the code is in one text file. I’m still going to use python but for a different reason. I want to use the morse code reader to write Whatsapp messages, hopefully i can get that to work. Also the mini Tv is still not finished and i’m still wainting for my morse code reader to get printed. The print should come in tomorrow. I have to admit i used a lot of AI in this stage of the project and i must start learning the c++ syntax. Today i’m going to finish the mini TV get all the wiring done and i might even create a PCB for this project.
Update- i finished the hardware part of the syncing process between the mini Tv and the morse code reader. Took me about an hour but i cant log it.
I finally started with the CAD design for my morse code reader. I wanted it to look like the morse code sender things form the 19th century and i think i did a good job for my skill level. It’s nowhere close to being finished but i think its a good start. Also i recently switched from Fusion to Onshape and i’m finding designing much easier therefore i recommend you should also start using Onshape. It hasn’t crashed on me once. The hole in the design is where the button will be.
I made a long recording before this but it didnt save:(.During these 15 minutes i drew a sketch of the reader. But i did the more important things during the recording which has been deleted. I started over with the python code and i go tit working, but it was kinda shaky, long and slow. In short i wrote all numbers and added the morse code translations in 27 if functions. It was really slow and ugly and that encouraged me to learn dictionaries in python. After quite a lot of thinking i realised i had to convert the letters in morse alphabet to bits(morse_signal = data.decode(‘utf-8’).strip()). I finally got it working after that change
i am trying to send data from the serial monitor to python because its easier for me to work there.