Loading article...
Loading article...
Stream/Area:
-
Subject:
-
Paper ID:
10.55041/IJSREM22773
Volume:
7 |
6 |
Jun 2023
Pages:
Publication Frequency:
Monthly (12 issues per year)
License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.
We use the pygame library to make games with attractive graphics, suitable animation sound and it provides a wide range of features, making it an ideal choice for beginners and professionals alike. Endless Rush is a simple game project created using python programming language and pygame library. Pygame is a set of python modules designed for writing video games. The code also uses various pygame modules, such as image module, which is used to load images of the players, enemy and score blocks. The players movement is controlled using the arrow keys and the camera follows the players movement to keep them in the center if the screen. The collision detection between the player and the enemy/score block is done using a distance formula. If the distance between the player and a block is less than 50 pixels, the collision is detected. The code demonstrates how to create a 2D game using pygame in python. The game loop is implemented using a while loop that runs until the game is over or the player wins. The pygame clock module is used to control the speed of the game loop and to update the game at a fixed time interval.
KEYWORDS
Publication Date
7/5/2023
Peer Review Type
Double-Blind Peer Review
Review Rounds: 2
Documents
Article Views
0
Total views since publication
PDF Downloads
1
Total downloads since publication
Geographic Reach
5
Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.
Plagiarism Screening
This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.
Conflict of Interest
The authors declare no conflict of interest related to this research work.
Funding Information
No funding information available for this research.
Related research in the same subject area
Loading similar articles...