Project Description
Project description
The way the program operates is as follows:
• The user is prompted by the program to enter the level's name and difficulty. It can be easy, normal, hard, harder, or insanely challenging. After that, the application generates a file with the level's name and difficulty.
• Using the Pydub module, the application creates a random music track for the level. Various sound effects, including piano, synth, bass, and drums, make up the music track. The level file and the music track are stored in the same location as a WAV file.
• Using the Pygame module, the application creates a random level for the level. There are several game types on this level, including cube, ship, ball, UFO, and wave. In addition, the level features a variety of obstacles, including blocks, sawblades, spikes, gravity pads, jump pads, and portals. In addition, the level features a variety of hues, including white, black, red, green, blue, and yellow. There are various speeds available at this level, including regular, slow, rapid, and extremely fast. The level file and its PNG file are saved in the same folder.
• The Pygame module is used by the program to display the level on the screen. Using the Pydub module, the software also uses the music track to play in the background. The user can utilize the mouse or keyboard to play the level thanks to the program. To jump, fly, or flip, the user can hit the left mouse button or the space bar. To halt or end the game, the player can alternatively press the escape key or the right mouse button.
• Using the Pygame module, the application displays the user's progress and score. The amount of difficulties the user has overcome determines their score. The percentage of the level that the user has finished determines their advancement. The Pygame module is used by the software to display the user's best progress and score. Using the Pickle module, the application stores the user's highest score and progress in the level file.
• If the user uses the Pygame module to finish the level, the software congratulates them. Using the Pygame module, the application additionally displays the user's progress and final score. Additionally, the application asks the user if they would want to use the Pygame module to build a new level or replay the current one. To replay a level, click the Y key or the left mouse button. To make a new level, press the N key or the right mouse button.
Users of the entertaining and imaginative Geometry Dash Level Generator project can make and play their own Geometry Dash levels. The project serves as an example of using many Python modules, including Random, Pickle, Pygame, and Pydub. Additionally, the project shows how to use programming concepts like lists, loops, functions, and variables. Additional elements, including new game modes, obstacles, colors, speeds, sound effects, and choices, can be added to the project to make it better and more customized. By utilizing programs like PyInstaller or cx_Freeze to package the project as an executable file, it may also be shared and distributed.