Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] ROLL function
#4
This shows the main list of why sentdex structure is bad. The main reason is the the nested while loops as the issue in which creates spaghetti code later as the game increases in size. It also shows and example of sentdex along with a customization of how it should be for those that use sentdex to hae a comparison of what they know.
https://python-forum.io/Thread-PyGame-wa...-tutorials

Im not really going to try to decipher the workings of how sentdex structure works. The way its coded needs to be completely reworked.

Unfortunately there are not a lot of tutorials for pygame, especially youtube videos. My suggestion would be to go slow and do numerous tutorials from different sources. In this way you obtain different information and different methods, while still getting (if you want it) the youtube experience.

There are various tasks used as an example on mekires repos. However they are examples, not tutorials. They use a good structure and OOP. You can find varying examples from simple mouse movement to full games, etc.
https://github.com/Mekire?tab=repositories

Kids can code tutorial videos. They arent just for kids though.
https://www.youtube.com/watch?v=VO8rTszc...rw&index=1
Recommended Tutorials:
Reply


Messages In This Thread
ROLL function - by Zman350x - Jul-31-2017, 08:14 PM
RE: ROLL function - by metulburr - Jul-31-2017, 10:43 PM
RE: ROLL function - by Zman350x - Aug-01-2017, 11:40 AM
RE: ROLL function - by metulburr - Aug-01-2017, 12:27 PM
RE: ROLL function - by Zman350x - Aug-03-2017, 02:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyGame] another dice roll! mzmingle 3 4,572 Nov-28-2017, 04:47 PM
Last Post: Windspar
  [PyGame] dice roll? mzmingle 1 7,242 Nov-27-2017, 11:58 AM
Last Post: Mekire

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020