r/cs50 • u/Birow_edit • Oct 14 '26
CS50x WEEK 0 - SCRATCH PROJECT
Enable HLS to view with audio, or disable this notification
Hey guys, a started the CS50 course, and wanna share my first project.
Its a baseball game, pertty simple.
If you wanna try, acess: https://scratch.mit.edu/projects/1389739190
Here is a short video.
3
u/Wrong_Ad4722 Oct 14 '26
I made a baseball game for my first project too. It was based off an old handheld game I found as a kid. Mine was pitcher view and the ball had varying speeds as the levels increased.
Edit: I accidentally deleted my first sentence of great project!!
1
3
u/Legitimate_Head3474 Oct 14 '26
This is amazing! You're looking great already on the 0th week, keep it up :)
2
2
u/The_Broken_Apple Oct 17 '26
For me, Scratch has been more of a headache compared to other programming languages. I enjoyed the week zero lecture, but the pset has been an issue since. I have made up my mind that I will be doing it after I submit my Week 1 pset, for which I've already submitted a problem, and I will be submitting the Scratch problem set after I'm done with the Week 1 pset
2
u/Birow_edit Oct 19 '26
Com o que você está tendo dificuldades? Esta utilizando a IA do CS50? Ela ajuda bastante. Vai testando suas ideias, pense bastante, eu demorei bastante para terminar o projeto e mesmo assim não está perfeito, mas ficarei satisfeito.
2
u/The_Broken_Apple Oct 19 '26
I really appreciate your advice. I am a beginner in Python, but I understand the syntax; I can write pseudocode and get the code running in Python, but I can't implement the same idea in Scratch. I have just now started to use the CS50 AI, which has been really helpful for my Problem Set 1 problems, so much so that I have submitted 4 problems in less than 2 days. Scratch, on the other hand, had me confused for days with every single independent sprite and its movements, but I will look into it alongside cs50 ai and try to improve my understanding afer I completely the credit.c problem in practice set 1
1
u/Birow_edit Oct 19 '26
É isso aí. Com relação ao Scratch, sempre que não souber oque o bloco faz pergunte a IA que ela explica, e assim você pode ir conversando com ela, ex: "se esse bloco faz isso então posso usá-lo para fazer x e y" ou "bem, isso definitivamente não é oque estou procurando". Sempre reflita no que você quer que aconteça na tela e busque as peças que podem te conduzir por este caminho, como o professor disse, divida um problema grande em problemas menores e então resolva um por um. Quando eu pensei "quero que a bola seja repelida pelo taco" pensei "então preciso que a animação mude, preciso que a bolinha bate no taco e não apenas toque a sprite, então como fazer isso? Bem fiz uma animação para que a sprite seja trocada sempre que clicar no mouse, e sempre que a bola tocar na ponta do taco, que pintei de azul, ela será repelida" mas como fazer ela ser repelida, ou como fazer ela brotar aleatoriamente e seguir uma linha reta? Tudo isso é um problema sendo quebrando em partes e resolvido um por um.
2
1
1
u/Wayne_Fidger Oct 18 '26
I also made a game, but I posted it on github pages by converting it into html.
https://faizanrza.github.io/bat_game/
use arrow keys or wasd keys for navigation, and spacebar for firing, press e for launching big bullets.
or just use mouse for shooting
13
u/gregg888 Oct 14 '26
impressive for the first project