
https://codewith.mu/en/download
Create a window for your game in Pygame Zero by saving the code and running it to display an 800 by 600 window with the origin at the top-left.
Learners will draw circles in Pygame Zero by using screen.draw.circle, specifying the center, radius, and color, then run the code to display a red circle in the window.
Learn to draw shapes in Pygame Zero by filling a circle with color using the screen.draw.filled_circle method, creating a red circle in the window with Mu Editor.
Use the screen.draw.rect method to draw a rectangle by specifying the top-left coordinates, width, height, and color. Run the code to draw a purple rectangle in the window.
Learn to draw text in Pygame Zero using Mu Editor, by calling screen.draw.text to set content, position, color, and font size, then run the code to display hello world.
https://kenney.nl
Draw the alien in a Pygame Zero window with the draw method, loading the image from the images folder and positioning it from the top-left with an anchor point.
Practice moving the alien to the left in Pygame Zero by changing the x axis to a negative value, then run the code to observe leftward motion.
Learn how to move the alien upward in Pygame Zero by setting the y axis to a negative value, and see the effect when you run the code.
Learn how to move an alien downward in Pygame Zero by adjusting the y axis; a positive y value moves the sprite downward, with code you can run.
Set values in both the x and y axes to move the alien diagonally in Pygame Zero. Write and run the code to see the alien move diagonally.
Learn to repeat actions with a for loop, control flow statement that iterates values, to draw eight aliens in a row by increasing x and keeping y constant.
Learn to break a for loop in Python with the break statement, terminating mid-loop, and see a sample that draws three aliens in the window.
Learn to skip part of a for loop in a game loop by using the continue statement to skip an iteration and move to the next one.
Explore creating a game loop with a while loop, repeating commands as long as a condition is true, as eight aliens are drawn in a row.
Learn how to break a while loop in Python using the break statement, terminating the loop and resuming at the next statement, demonstrated with a code example drawing three aliens.
Learn how to skip iterations in a while loop using the continue statement, with a code example that skips when i equals three and draws the fourth alien.
Learn to use the if statement in Python with Pygame Zero to make decisions, handle mouse down events, detect hits with collide point, and change the alien image when clicked.
Master using if-elif-else statements in pygame zero to handle multiple conditions for moving the alien with the keyboard in four directions and updating its image.
Learn to access list items by positive index numbers in Pygame Zero with Mu Editor, using list basics and the drawtext method to display items like apples and bananas.
Access list items from the end with negative indexing in pygame zero. Use minus one for the last item and minus two for second last, then draw mango and kiwi.
Demonstrate how to loop over a list in pygame zero with a for loop to access each item in order and draw all items on the screen.
Learn how to find an item in a list using an if statement in Pygame Zero, drawing text when the banana is found and displaying it after running the code.
Learn how to append an item to a list in Pygame Zero using the append method, adding the orange to the end and rendering the updated list.
Master list manipulation by using the insert method to place a specified item at a chosen position, illustrated by inserting orange as the fourth item in a list.
Learn to remove items from a list in Python using the remove method. It deletes the first matching item, such as the banana, with example code showing the list update.
Use the pop method to remove a list item at a specified index in Python with Pygame Zero and observe how the remaining items draw.
Learn how to sort items in a list in Pygame Zero using the sort method, sorting words in ascending alphabetic order and drawing them in that order in Mu Editor.
Learn to reverse a list to display items in descending order using the reverse method in Python with Pygame Zero, and understand how this code sorts list items.
Learn to change a dictionary value by assigning a new value to an existing key in a Pygame Zero project in Mu Editor.
Introducing our latest video course - Learn Python Programming from Scratch through Game Development!
This exciting course is designed to help you learn Python programming in a fun and engaging way, by developing your very own games from scratch. No prior programming experience is required, as we will guide you through each step of the process, from setting up your development environment to coding your first game.
Using the user-friendly Mu Editor, which is compatible with both Mac and Windows, you will have no trouble following along with the tutorials and exercises. The step-by-step instructions are easy to understand, even for beginners, and you'll quickly gain confidence in your coding abilities as you build simple games.
This comprehensive course will cover a wide range of essential Python topics, including but not limited to:
- An understanding of all datatypes, such as integers, strings, floats, booleans, lists, tuples, and dictionaries.
- Mastering the art of classes and object-oriented programming.
- Comprehensive coverage of inheritance, including both simple and complex concepts.
- Learning to control the flow of your code using conditional statements like if, while, for, and match.
- Understanding the power of functions and how to effectively pass information between them.
By taking this course, you will gain a solid foundation in Python programming and be well-equipped to tackle any programming challenge that comes your way. So why wait? Enroll now and start your journey towards mastering Python!