A downloadable game

Coding and Big Data

(Project Report)

 

 

Group  :

  • AISYAH SYAFIRA IZZATI    001202000144
  • Al-Aqsa Reto Wijaya                 001202000121
  • FARIS SATRIO ADININGRAT    001202000102
  • HARIS ADI NUGROHO           001202000168
  • REZA FEBRAN PAHLEVI       001202000176

 


Game Description & Features


Initial State

In this game the initial state is that there is an airplane at the bottom of the screen that can be moved by the player. There will appear enemies coming from the top, the enemy is an alien and an enemy plane that can shoot.

The player must not be shot or come into contact with aliens or enemy aircraft, if shot or touched then the game is over and can restart the game again. In this   game, enemies appear in alternating waves  

If the player shoots an alien will proceed to the next stage and the next level.

Structure (Python version, library use and explanation for running)

In this game we use python version 3.9 and for the library we use:

pygame = import pygame

This syntax or this library to declare that in a program that we create this there is a pygame library to create a game.

os.path = import  os

This syntax is to import or trigger each module contained modules (os.path.join(**)) and When Python starts, it loads many modules into it sys.modules. They're not tied to any names in your script, but you can access modules already created when you import them in a certain way.

Time = import time

This syntax is to customize modules related to time and here, we use these libraries or modules to customize the appearance of aliens as enemies.

Random =  import random

This library serves to retrieve   strings and generate random a string in a pygame and here   is given to give random appearance to aliens and me randomize aliens that appear and to randomize alien shots.

Mixer = from pygame import mixer

This library or modules serves to import mixers or songs for pygame and provide audio to games that have been created.

pygame.mixer.init()
pygame.font.init()

To initialize mixer and font modules

from some of the libraries   above  then  made  some code and flow  running this space shooter game  where  players  have to  shoot  or  make  dead  another  plane   or  alien.


Instructions

  • Install Python 3.9.X and pygame
  • Extract and open the folder with your preferred IDE
  • Open "main.py"
  • Run compile/run the code
  • Play the game

Controls: 

W KEY to go forward, A KEY to move left, D KEY to move right, S KEY to go backward and SPACE to shoot.

Download

Download
Space Shooters.zip 4.1 MB

Comments

Log in with itch.io to leave a comment.

Show post...

You are just a copy kid. Yes i know the youtube tutorial and you just copied the code bruuhh... Do your own things kid.