Skip to main content

Posts

Showing posts from August, 2021

SPACE WAR - GAME

  This game is my second game and is owned by me. In this game you have to save our planet Earth by killing the enemies who are coming towards us.  HOW TO PLAY GAME USING THIS CODE :-  1. Download any Python Running IDE and run this code. 2. If you want to run this code as Executable then you can use pyinstaller to convert this python file to executable. 3. You can simply click on  👉   Download   to get required files or you can use the exe. also (NOTE: you have to extract this folder) THE CODE OF THE GAME IS :- # IMPORTING REQUIRED MODULES. import pygame import math import os pygame.init() pygame.mixer.init() pygame.font.init() # MUSIC RELATED VARIABLES. music_1 = "default music.mp3" music_2 = "Shaamein.mp3" music_3 = "Gumshuda.mp3" play_music = music_1 bulletshoot_sound = pygame.mixer.Sound( "bullet shot sound.wav" ) gameover_sound = pygame.mixer.Sound( "gameoversound.mp3" ) gamestart_sound = pygame.mixer.Sound( "start_game.wav...