-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pygame Tutorial - Tech w/ Tim #22
Comments
Co-Authored-By: Liam Arbuckle <[email protected]>
Will do more Unity, just want to do more EH stuff and python stuff first; I have udemy tutorials & I WILL do it soon 👽 Co-Authored-By: Liam Arbuckle <[email protected]>
@IrisDroidology I am going to add my own images in later for the sprites/animations, I could possibly incorporate the Unity sprites Additions to code: 1. Removed the ability for the player to go up or down - you need to jump to do that now: ```py if keys[pygame.K_UP] and y < vel: y -= vel if keys[pygame.K_DOWN] and y > screenHeight - height - vel: y += vel ``` 2. Loaded the images in 3. Changed size of the character to reflect the img sizes 4. Moved the drawing/refreshing to a function 5. Changed the bg to an image More changes in `pygame1.py` I might also go over some of his other Python tutorials :) https://www.youtube.com/watch?v=UdsNBIzsmlI&list=PLzMcBGfZo4-lp3jAExUCewBfMx3UZFkh5&index=3 https://www.youtube.com/playlist?list=PLzMcBGfZo4-lp3jAExUCewBfMx3UZFkh5 Got an issue regarding the imgs not loading, but everything else is good :) Co-Authored-By: Liam Arbuckle <[email protected]>
Description: > "In this video I explain the importance of optimizing your games and why using classes to organize your objects such as characters a blocks is very important. I show how to create a class called player where we will then store all of the attributes of the character. We also clean up our redrawGameWindow function by transferring most of that code into the players .draw method. All of this is done using Python 3 and a module called pygame." Created character instance & switched to object-oriented approach Co-Authored-By: Liam Arbuckle <[email protected]>
https: //www.youtube.com/watch?v=PVY46hUp2EM Co-Authored-By: Liam Arbuckle <[email protected]>
Fix errors (mainly syntax) Add more comments for proof of knowledge
https://stackoverflow.com/questions/37366461/load-png-images-from-a-different-directory-python-pygame |
I'm going back to the fourth tutorial in the intro to pygame series (may have to catch up on Python as well soon). The reason for that is simple: I don't fully understand/remember the reasons for going OO (object oriented /programming) and what we do to do so, and how it works. I'll send my notes in here. We can also see commits in https://github.com/Gizmotronn/python-learning/tree/master/Applets/TWT that reference Gizmotronn#22 Plenty of stuff to do! And I'm enjoying & LEARNING! Co-Authored-By: Liam Arbuckle <[email protected]>
#3 Gizmotronn#22 Once we get this out of the way, will go into the Pygame tutorial, once that's finished Django REALPYTHON --> will be continued Co-Authored-By: Liam Arbuckle <[email protected]>
Practising without the tutorials, and analyzing pygame stuff --> #22 start
Once I get through the OOP tutorials with TWT, I'll continue with the pygame tutorials. While the stuff may not work because of the images, I can always get help, and I'm still learning, which will prove useful for the next set of pygame tutorials and games. I'm/@IrisDroidology going to reference this in a commit soon
|
Gizmotronn#22 (comment) https: //github.com/acord-robotics/python-learning Co-Authored-By: Liam Arbuckle <[email protected]>
https://ac0rd-software.tribe.so/post/5ea453b78c7c596b484f1eca
The text was updated successfully, but these errors were encountered: