Using The Python Library to Create Simple Game Animations
DOI:
https://doi.org/10.35870/ijmsit.v2i2.699Keywords:
Game developer, Game engine, Library, Python, Pygame, SpriteAbstract
The development of the game world which has recently been growing rapidly, has aroused the interest of some young people, to become a Maker Game (Game Developer), why this job is in great demand because it looks very cool. Maybe it has crossed our minds when playing games on PC or Mobile how they can make this game.
As for Python, it is not only used for programming using Machine Learning models, but also for making games, even the well-known game engines that are commonly used to create complex 2D/3D games such as Unity use Python as a programming language other than C# or C++.
Python is the most popular programming language or it would not hurt to say that it is the next generation programming language. In every emerging field in computer science, Python is actively present. Python has an extensive library for various fields such as Artificial intelligence (Pytorch, TensorFlow), Machine Learning (Numpy, Pandas, Matplotlib) and Game development (Pygame,Pyglet).
In this opportunity, we will know a little about creating a simple game using the Pygame library (Python library). Pygame is a Python module that is designed for game application development. Pygame is one of the most used libraries/modules. This advantage of pygame allows us to create a game with complete features. Pygame is portable, can run on almost all operating systems. To note, Pygame has been downloaded more than a million times, and millions of visits to the official website. Pygame is released by the GNU General Public License (GPL) so that we can make a game application that is free, open source, shareware, freeware and commercial games.
Learning python, of course, must be done gradually and focus on areas of learning that are of interest because of the large number of python modules or libraries with their functions and uses. To become a game developer, we must know the basics of making games, one of which is how to create animations on a game object.
Making this game animation only revolves around how to make an object consisting of sprites or several images into animation and use the up, down, left and right arrow keys to move the object. The objects in the game consist of objects commonly called player and opposite.
Downloads
References
Ridwan Fadjar , 2013. Learn Basic Python Programming , West Java, Indonesia
Belajarpython , Python . viewed August 12, 2021, https:// learningp ython.com/tutorial/apa-itu-python
Hendri, 2003, Quickly Proficient in Python , IlmuKomputer.com.
Pythonindo, 2019, Object Oriented Programming in Python. viewed August 18, 2021, https://www.pythonindo.com/pemrograman-orientasi-objek-di-python/
WebApp, 2021, List of 10 Best Python IDEs and Code Editors of the Year . viewed August 10, 2021 , https://appkey.id/pembuatan-application/mobile-programming/python-ide
Youtube, 2021, Learn Python by Building Five Games - Full Course . view: 01 August 2021, https://appkey.id/pembuatan-application/mobile-programming/python-ide
Askpython, 2021, Easy Games in Python, viewed 05 July 2021, https://askpython.com/python/examples/easy-games-in-python
Pygame, 2021, GettingStarted , viewed August 10, 2021, https://pyga me.org/
Codepolitan, 2021, Learn How to Make 2D Games with Python and Arcade, viewed June 14, 2021, https://www.codepolitan.com/learning-how-to-make-game-2d-with-python-dan-arcade-5adff78d1db9b/
Abdul Kadir, 2019, Easy Steps to OpenCV & Python Programming, Jakarta, Elex Media Komputindo
Romzi, Muhammad & Kurniawan, Budi 2020, 'Python Programming Learning With Algorithmic Logic Approach', Journal of Informatics Engineering Mahakarya , vol. 3, no. 2, hh. 37-44.
Ramsari, Nopi & Ramadhan, Gilang 2018, 'The Naila's Survival 2d Side Scrolling Game Based on Android', FIKI Journal of Information and Communication Technology, vol. 8, no. 2.
Kevin & Amelia Ananda 2017, 'Macromedia Flash-based English Game Application using the waterfall method', Indonesia: Simki-Techsain , Vol 01 No 07.
Martono & Teguh, Kurniawan 2015, 'Game Development Using Game Engine Game Maker', Indonesia: Journal of Computer Systems (JSISKOM), vol 5 No 1.
Mahardhika & Putra, Alfian. 2015, 'Developing 2D Adventure Android Game MR Potato Using Unity' . Indonesia: Go Infotech Scientific Journal, Volume 21 No.2.
Mestadi, Walid et al, 2018, 'An Assessment of Serious Games Technology: Toward an Architecture for Serious Games Design' . Morocco: Hindawi, International Journal of Computer Game Technology, Volume 2018, Articel ID 9834565.
Adi, Munadi 2014, 'Development of an Educational Game Knowing the Heroes of the Indonesian Nation's Heroes'. Indonesia: Scientific and Computer Journal (KOMPUTA), ISSN 2089-9033.
Putri, Bellia Dwi Cahya 2016, 'Design of Flash-Based Gobak Sodor Multiplayer Game Applications in Local Networks. Journal of Technology and Computer Systems (JTSiskom), Vol 4 No.2.
Soleh, Rachmat 2018.' User Experience Analysis of Multiplayer Online Battle Arena (Moba) Game Using Game Experience Questionnaire (GEQ) on Game DOTA 2', Journal of Information Technology and Computer Science Development, Vol 2 No.9 ISSN:3067-3076.
Utami, Reny, Purnama Bambang Eka & Sukadi, 'Creating a Multiplayer Dakon Traditional Game using Java', Indonesian Journal on Computer Science (IJCSS), ISSN: 1979-9390.
Downloads
Published
Issue
Section
License

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Authors who publish with this journal agree to the following terms:
1. Copyright Retention and Open Access License
Authors retain copyright of their work and grant the journal non-exclusive right of first publication under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
This license allows unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
2. Rights Granted Under CC BY 4.0
Under this license, readers are free to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material for any purpose, including commercial use
- No additional restrictions — the licensor cannot revoke these freedoms as long as license terms are followed
3. Attribution Requirements
All uses must include:
- Proper citation of the original work
- Link to the Creative Commons license
- Indication if changes were made to the original work
- No suggestion that the licensor endorses the user or their use
4. Additional Distribution Rights
Authors may:
- Deposit the published version in institutional repositories
- Share through academic social networks
- Include in books, monographs, or other publications
- Post on personal or institutional websites
Requirement: All additional distributions must maintain the CC BY 4.0 license and proper attribution.
5. Self-Archiving and Pre-Print Sharing
Authors are encouraged to:
- Share pre-prints and post-prints online
- Deposit in subject-specific repositories (e.g., arXiv, bioRxiv)
- Engage in scholarly communication throughout the publication process
6. Open Access Commitment
This journal provides immediate open access to all content, supporting the global exchange of knowledge without financial, legal, or technical barriers.
