Backend development in progress ๐Ÿ‘ฉโ€๐Ÿ’ป | Building in public ๐Ÿ› ๏ธ | Documenting the work and lessons

Joined May 2019
81 Photos and videos
Honestly I wish I could say I am learning but my birthday is coming up and Iโ€™m just a girl ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚
2
8
Day 68 of learning #Python ๐Ÿ๐Ÿš— Today I drew a car using the Turtle module! โœ… Used a for loop with forward() & left() to draw the car body โœ… Used .goto() coordinates to draw roof shape โœ… Fill each shape with random RGB colors โœ… Used .circle() to draw both wheels #CodeNewbi
6
1
53
This is how the pong project looked like when i was done
2
16
Itโ€™s 2:30โ€ฆ I canโ€™t sleep so I am do research on what project to do next ๐Ÿ“š๐Ÿ“
1
19
Day 67 of learning #Python ๐Ÿ๐Ÿ“ Letโ€™s see how it all comes together. โœ… Used class inheritance to extends Turtle directly โœ… Called super().init() to inherit. โœ… Used global variables to mutate โœ… Used *= -1 to reverse ball direction โœ… Used *= 0.9 to increase speed
4
88
Hereโ€™s the roadmap for my Pong game: โœ… Set up the game screen โœ… Create a scoreboard class โœ… Create reusable paddles โœ… Create the ball โœ… Add paddle controls โœ… Make the ball move โœ… Handle collisions โœ… Reset when a point is scored โœ… Run the game loop
3
84
Iโ€™m currently building a roadmap for my Pong project. One of my main goals is to create both the left & right paddles using a single function, so I donโ€™t repeat code. I also plan to create functions to handle moving the paddles up and down. Keeping things simple and reusable.
2
52
Of course, thereโ€™s no Pong without the ball. By the end of this project, I want to create a ball that moves and bounces off both the paddles and the walls. I also plan to display the score on the screen as the game progresses. Thatโ€™s when it really starts to feel like a game.
2
54
For todayโ€™s project in #BuildingInPublic, Iโ€™m building a small Pong game. It follows a similar coding concept to the Snake game, but I like to think of them as two projects that are similar yet different at the same time. Wish me luck ๐Ÿ€
3
103
Day 66 of learning #Python ๐Ÿ โœ… Used screen.onkey() to bind arrow keys to movement โœ… Used .distance() to detect food collision โœ… Speed increases on every food eaten โœ… Used if name == "main" to run the game safely From Snake class โ†’ Food โ†’ Scoreboard โ†’ Game ๐Ÿ™Œ
5
69
Today I am finally finishing the Snake project after a lot of confusion, I even got stuck for a while. When I got stuck, I broke all the classes in my code apart and then put them back together, and I think that really helped me understand the project better.
1
4
194
Day 66 of learning #Python ๐Ÿ Scoreboard class for my Snake โœ… Used .hideturtle() to display text without showing the cursor โœ… Used .clear() & .write() to refresh the score on screen โœ… Prefixed _display() to signal it's a private method โœ… Increments score by 5 per food
3
24
Just finished the Scoreboard class for my Snake game today... One more class and the Snake game is complete! ๐Ÿ‘€
2
34
Happy new week techie, I really wish i am starting this new week with a new project but unfortunately ๐Ÿ˜ฅI have to finish the snake ๐Ÿ˜‚โ€ฆโ€ฆ Looking forward to finish the snake game project today. Wish me luck ๐Ÿ€
5
67
Day 65 of learning #Python ๐Ÿ๐ŸŽจ โœ… Reused the RGB colors extracted for my Hirst painting project โœ… Used random.choice() to pick a new color on each refresh โœ… Used random.randint() to spawn food at random coordinates โœ… The snake changes color to match the food it eats ๐ŸŒˆ
4
42
Building the Food class for my Snake today! ๐Ÿ๐Ÿฒ I created this using colors from the Hirst painting project. I decided to make the food different colors & have the snake change color to match whatever it eats. It was fun since I was able to adapt the code from my Day 61 project
7
113
Day 64 of learning #Python ๐Ÿ๐ŸŽฎ โœ… Used constants for directions โœ… Stored snake segments as a list of Turtle objects โœ… Built move() by shifting each segment to the position ahead โœ… Prevented reverse movement with heading checks โœ… Added collision detection
1
6
61
Finally, its the end of the day. I have ben able to successfully build only the snake class, i still have to build the food class and then the body that would contain the main code ๐Ÿ˜ฎโ€๐Ÿ’จ
2
28
While I was planning this project, I had no idea what I was signing up for ๐Ÿ˜ฅโ€ฆ.. itโ€™s safe to say I have learnt a lot from this project.
Good morning Techie ๐Ÿง‘โ€๐Ÿ’ป, Today project on learning #Python is a snake game The snake will be a rectangle The snake will eat circle placed randomly around the screen to grow The circle balls will be different colors The snake will change color as it feeds
2
39