What makes games fun? Game mechanics. What makes learning a new programming language fun? Creating games with it. This course allows you to do both. If you've ever wanted to take your programming skills further and get into Python, then this is your opportunity. If you already know Python but want to know how to use it to create games, then this course is also for you.
Designed for
You will learn about:
What makes games fun? Game mechanics. What makes learning a new programming language fun? Creating games with it. This course allows you to do both. If you've ever wanted to take your programming skills further and get into Python, then this is your opportunity. If you already know Python but want to know how to use it to create games, then this course is also for you.
Designed for
You will learn about:
The Pycharm Development Environment.
The Pygame API, which is an interface for OpenGL and DirectX.
The use of screen coordinates to place, size, move, animate, and restrict game characters.
Constructing a main game loop.
Working with Static and Animated Sprites.
Sprite Collision Detection.
What people are saying about Penny's courses:
Dr. Penny is a wonderful person and a true expert. All of her courses I've taken have been top notch and in my opinion there is no better teacher out there.
Allow me to say how hugely important this is for a person who is interested in certain types of game design. Creating games where you can create AI behaviors that support emergent situations.
I honestly love Holistic's teaching approach and I've never learned so much within a few hours about coding effectively with such detailed explanations.
This course focuses on providing students with hands-on experience coding game mechanics, while also providing an easy introduction to Python for the intermediate programmer.
In this lecture Penny will welcome students to the course and give an overview of the content.
H3D has a bustling online student community. Here's how to get involved.
How to contact us
Description: Important Reading on Common Issues students have and how to ask for help.
In this lecture students will learn about some differing types of game mechanics and how they are used in games to create gameplay.
In this lecture students will learn how to download and install Python and Pycharm.
In this lecture students will learn how to construct a simple main game loop to keep the graphics window open until the player clicks on quit.
In this lecture students will learn how to display an align a sprite inside a window.
In this lecture students will learn how to resize a sprite and also dynamically adjust the position of it on the screen.
In this lecture students will learn how to move a sprite around on the screen with the arrow keys.
In this lecture students will learn how to control the frames per second a loop runs at as well as how to clear a frame of previous drawings.
In this lecture students will learn how to restrict the movement of a sprite by calculating where the sprite will hit the edge of the screen.
In this lecture students will learn how to use the mouse to move sprites around on the screen.
In this lecture students will learn how to draw a rectangle on the screen to use as a button.
In this lecture students will learn to position text on the button and program it to quit the window when clicked on.
In this lecture students will learn how to program the button to change colours on a mouse over.
In this lecture students will begin setting up the window and resources for a brick breaking game.
In this lecture students will learn how to dynamically place bricks into a grid based on the window size.
In this lecture students will be challenged to integrate previously acquired knowledge to move the bat back and forth across with screen with the arrow keys.
In this lecture students will add a ball to the game that bounces off the edges of the screen.
In this lecture students will learn how to determine when the ball collides with the bat and get the ball to change direction.
In this lecture students will learn how to determine when the ball hits a brick, how to remove the brick from the screen and how to make the ball change direction when it hits a brick.
In this lecture students will setup the basic window and a grid for a game of Tetris and learn how to draw rectangles with borders and create functions in python.
In this lecture students will learn how to create and store the data for different block types.
In this lecture students will learn how to display a block over the top of the grid and align it with the grid size.
In this lecture students will learn how to make a block drop down the grid and how to stop it when it hits the bottom.
In this lecture students will learn how to move the block from side to side and restrict it's movement when it reaches the side of the screen.
In this lecture students will learn how to create a game board to store all the blocks as they hit the bottom of the screen.
In this lecture students will learn how to use the python random library to set random starting positions for blocks as well as block types.
In this lecture students will learn how to rotate a shape as well as test if the shape can be rotated without going off the grid.
In this lecture students will learn how to test for a wide range of block collisions in the one function and then integrate it with the rest of the code.
In this lecture students will learn how to give the blocks random colours.
In this lecture students will learn how to remove any lines that contain all blocks and keep score.
In this lecture students will learn how to display a score on the screen using fonts and text.
In this lecture students will add game over text to the screen when the grid fills up with blocks.
In this lecture students will begin a new asteroid game project and put together the basic elements of the window and display a ship and asteroid.
In this lecture students will learn how to program the space ship player character to move about on the screen.
In this lecture students will learn how to move the asteroids and rebound them from the edges of the screen.
In this lecture students will learn how to create a bullet class and link it to the rotation of the ship so the bullets emanate from the ship and travel in the direction the ship is facing.
In this lecture students will learn how to create a timed cool down period that can stop the player taking actions.
In this lecture students will learn how to add momentum to the movement of the ship so that it continues to drift across the screen even when the player isn't moving it.
In this lecture students will learn how to wrap the position of the ship and asteroid around the edges of the screen so that an object going off one side appears back on the opposite side.
In this lecture students will learn how to determine when a bullet hits an asteroid by writing a simple collision detection function.
In this lecture students will learn how to destroy the ship when it hits an asteroid.
In this lecture students will learn how to add sound effects into their game.
In this lecture students will learn how to setup messages for the winning and losing conditions.
In this lecture students will learn how to split the asteroids into smaller parts when they are hit by a bullet.
In this lecture students will learn how to make modules in python and link them up to call functions between them.
In this lecture students will learn how to make a scene that is being shown on the screen something that is passed to a main scene generating class.
In this lecture students will create the basic game play scene with a back button that will return them to the main menu.
In this lecture students will construct the class to contain the player character and program it to move the player icon left and right across the screen.
In this lecture students will add the first alien character to the screen from the sprite sheet.
In this lecture students will learn how to place a grid of aliens on the screen and offset the grid from the top left hand corner.
In this lecture students will learn how to move the grid of aliens back and forth across the screen and move them down each time and edge is reached.
In this lecture students will learn how to change the frame being drawn for a sprite in order to animated it.
In this lecture students will be challenged to add the bullets so the player can shoot at the aliens.
In this lecture students will learn how to use a sprite collider to determine when bullets hit the aliens.
In this lecture students will learn how to add an animated sprite sheet to their game to show an explosions when alien's are destroyed.
In this lecture students will learn how to add extra bullets for the aliens to shoot and how to keep track of the number of lives a player has left.
In this lecture students will learn how to determine the game over scenarios and reset the game for new game play.
In this lecture Penny gives you some final words about the content.
Description: This link provides further information on the courses you can look at taking based on your interests and skill level.
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.