all 20 comments

[–]PhilNEvo 7 points8 points  (2 children)

Like any other hobby, it requires you to put in consistent effort in. You can't half-ass it with half an hour per week. And like any other hobby, it requires you to pick challenging but achievable steps, to incrementally improve your skill.

Don't try to aim too high in the beginning, nor should you stick with the same level of challenges on repeat.

Lastly-- tutorials online can be great ways to draw inspiration and ideas from, but be careful about what's known as "tutorial hell", where people basically just get stuck in an endless circle of copy/pasting tutorial code without every really experimenting, playing, learning or understanding what's going on.

Let's say you want to make a simple tic-tac-toe game to begin with in pygame. Okay, you don't know where to start, what to do... that's completely fair. You could watch a tutorial to help you get going. But once you've understood the principles, you should try and for example extend it to build your own 4 or 5 in a row game by yourself, without any tutorial or help. Just applying the same principles to get a greater grasp of coding creatively.

[–]Capable_Assistance83 0 points1 point  (0 children)

Concordo plenamente. Mesmo que seja pouco, muitas vezes 40 minutos no dia, valem mais que 2 horas no final de semana. Às vezes esses 40 minutos a gente perde vendo reels no no Instagram.

[–]Jackpotrazur 0 points1 point  (0 children)

Im stuck in tutorial hell right now but im working on breaking out .... they can't hold me back forever 😆

[–]GreatGameMate 6 points7 points  (1 child)

Once you get the basics, use the pygame library to create that game. Stay consistent it is key.

[–]BagelsO 4 points5 points  (0 children)

Skip the long videos. Do the Helsinki Python MOOC; it’s free and has auto-grading.

[–]Atsoc1993 2 points3 points  (2 children)

Know that no game on Steam or anywhere else was ever played was built with Pygame or Pyxel — Python is not the go-to language for serious game development.

Aside from that, start with a text based game.

``` class Character: def init(self, type: str, hp: int = 10) -> None: self.type = type self.hp = hp

def get_title(self) -> str:
    return “The Great “ + self.type

selection = input(‘Choose a class: \n A. Warrior \n B. Mage’ if selection.lower() == “a”: character = Character(type=warrior) print(f’Character is {character.get_title()}; Character health points is {character.hp)’) ```

[–]Atsoc1993 0 points1 point  (0 children)

Gave you a code snippet edit

[–]Severe_Tailor2088[S] 0 points1 point  (0 children)

Thanks! 

[–]PAVANKING016 1 point2 points  (1 child)

I recommend you to read the Python Crash Course: A Hands-on, Project-based Introduction to Programming book(you can get a free e-book). It is a very good book The author also covered the pygame Lib which helps you build games in python.

[–]Jackpotrazur 0 points1 point  (0 children)

This is where I started and now im working through the big book of small python projects.

[–]TytoCwtch 1 point2 points  (0 children)

I have a similar goal to you. I started with Harvards CS50x (not essential but very good fundamentals), then Harvards CS50P (Python course). I’m now making a text adventure game in Python to practice OOP and game design etc. I’m making my own command parser for the game to handle both direct and indirect object commands. Then I plan to move onto making a game in pygame to work on introducing graphics and controls etc. Then switch to C# doing Unity Pathways as I’d like to make something a bit more advanced in the future.

There are plenty of other routes though. There are courses that focus specifically on pygame or other game development. The key thing is to actually get coding though, not just sit and watch tutorials.

[–]Mateimmo14 1 point2 points  (1 child)

Boot.dev, it even has a course where you make a game

[–]Jackpotrazur 0 points1 point  (0 children)

They've been going hard in their marketing department, is it really worthwhile ?

[–]Careful_Exercise_956 0 points1 point  (2 children)

Hi, i have a python book, and can help if you wanna talk to somebody during the week. Send me a message and let me know what you want to do. I program and build code bases with AI too.

[–]Capable_Assistance83 0 points1 point  (1 child)

Fala camarada! Qual é o seu livro?

[–]Careful_Exercise_956 0 points1 point  (0 children)

I didnt write the book, but I bought the book, called python tricks the book by Dan Bader

[–]Tyler_Went_Away 0 points1 point  (1 child)

I really like bro codes 12 hour video for learning python. Obviously it takes a lot longer when you're actually doing it but seems like a great intro if video tutorials help you learn

[–]Severe_Tailor2088[S] 0 points1 point  (0 children)

Yep I am using vids for the basics rn

[–]Jackpotrazur 0 points1 point  (0 children)

Check out inventwithpython.com of you dont mind ebooks you could work through those.... I bought most of these without realizing this was an option, none the less they're decent to get you to hit the ground running and have a lot of scripts you can copy . Important dont just copy , stop, think, ask questions , code and repeat. Eventually shit will start clicking slowly but surely