
Create a pygame display surface as the game window, initialize pygame, set window size constants, and implement a main game loop with event handling.
Define colors as rgb tuples and fill the display surface to draw lines, circles, and rectangles with pygame.draw and update the display with pygame.display.update.
Learn to load images as surfaces, obtain their rects, and blit them onto the display surface in Pygame, with the main loop updating the screen.
Learn to display text in pygame by rendering text with both system and custom fonts, creating text surfaces, positioning them with rects, blitting to the display, and updating the screen.
Learn to add sound effects and background music in Pygame by loading audio assets, controlling playback with the mixer, setting volumes, and looping music for immersive gameplay.
Move a dragon on screen with discrete movement using pygame by handling key down events, updating a velocity-based rect position, and redrawing each frame.
Learn to move a dragon sprite with the mouse in pygame by handling mouse button down and mouse motion events, including centering on click and left button drag.
Learn to implement continuous keyboard movement in Pygame by holding arrows to move a dragon, using key.get_pressed, a velocity setting, and a clock to cap frames per second at 60.
Enforce movement bounds by checking the dragon's rect: allow left, right, up, and down moves only when the sprite stays within screen edges.
Explore collision detection in pygame by using rect collision to detect when the dragon overlaps a coin, then move the coin to a new random position.
Access a preview of the full python and pygame game development course and bonus lecture, with links to the full course and a discount coupon.
Have you learned the fundamentals of Python and then asked yourself; what's next?
If so, consider taking this course which will start you on your journey to making your own playable, fun, and rather addicting video games using Python and the Pygame library.
So often, when students ask for advice they are told to, "Go build something" or "Get involved on a project" but have no idea what projects to build or get involved in.
This course will set you on your way! In this course I will walk you though, step by step, the fundamentals of video game design with Python and Pgyame. We will cover all of the basics including:
Concepts of the main game loop, frames per second, and a clock.
Creating a surface and drawing to it.
Blitting (copying) images and rendering text to a surface.
Adding sound effects and music.
Handling keyboard and mouse input for player movement and control.
Basic collision detection methods
By the end of this course, I hope for two things:
You will want to continue learning and consider about Pygame and Python and enroll in the full course!
Have the confidence and knowledge to begin making your own basic arcade style games with Python!
Good luck and I hope to see you in our next video!