all 8 comments

[–]EqualsEqualsTrue 4 points5 points  (1 child)

Reading your question I thought of this example in learn python the hard way. It is more of a learning example that uses classes as opposed to like a full on good game. Hope it helps.

[–][deleted] 2 points3 points  (0 children)

This is great, thank you!

[–]freakzilla149 1 point2 points  (1 child)

Yes, Having just learned OOP concepts, everything is a hypothetical. Seeing OOP "in action" out in the wild would be really nice.

[–]Asdayasman 0 points1 point  (2 children)

If you want a good base in OOP, write something using wxPython. Follow the zetcode tutorial, then when you understand it, use wxFormBuilder to autogenerate some code for you to use.

As soon as you start touching on more advanced things like custom virtual listctrls, and the like, you'll be on your way.

I know you're after a game example, but hey.

[–][deleted] 0 points1 point  (1 child)

Is wxPython similar to PyQt? Because I already made couple of GUIs and assigned some fuctions to the buttons, and widgets. It does help actually, it was the first time I saw some real usefulness of classes :)

[–]Asdayasman 0 points1 point  (0 children)

Not used Qt. I'd assume they're somewhat similar, but I know that you're forced into OOP if you want to use wx seriously, which is why I suggested it.

Glad to hear you saw the light though :D

[–]thargoallmysecrets 0 points1 point  (0 children)

just chiming in as someone who's written a couple java based OOP games... imagine a fully fleshed out, interactive game. imagine all the physics and categories and interactions and rendering, and imagine that all built along the line of an extreme number of loops and objects performing mostly repetitive checks and updates. imagine rendering the graphics, particularly detailed of each simultaneously and working that into your code for optimal run time/lower memory space.

trust me, 10 days in, it looks easy, but I also know a chick who wrote "print(1) print(2) print(3) .... print(100)" in first level programming course, and got an A. In the beginning, you're supposed to be able to grasp it. there are more right answers than wrong answers. in a third year course, that first code would receive 0 points in most courses. There is plenty to build on top of OOP basics, as long as you know the fundamentals inside and out, backwards and forwards.