Make sure you scale it to fit the entire window. Then use the image provided for the background and place it at (0,0). Start by making the current code into a function and calling it menu. This is where one needs to create a menu function. After following the steps in the video, you will get the blank Pygame window as shown below. You can follow the video below to see how this is done. Here we need to create a blank Pygame window of size 640 x 480. Making the side scroller game using Python and PyGame This project will be done in VS Code but one can do it in any other Python editor. Next you can get the assets for this project by visiting these links:Ī Pygame cheat sheet will also come in handy, especially when you need to use different operations provided by Pygame. You can refer to this blog post to install Pygame on your Mac: Īnd this blog post for installing Pygame on your Windows PC: This includes a laptop that has Python3 and Pygame already installed. To begin with, let’s make sure we have all the requirements for the project. PyGame, meanwhile, refers to a cross-platform set of modules - including computer graphics and sound libraries - designed for writing video games in Python. What is a side scroller game? A side-scrolling game or side-scroller is a video game where the gameplay action is seen from a side-view camera angle, and as the player’s character moves left or right, the screen scrolls with them. In this blog, we shall take a look at how one can create a side scroller game using Python and PyGame.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |