Coder Social home page Coder Social logo

project_python_mls3's Introduction

Nasa vs Aliens - Spaceship Game

Project Goals

  • The main goal with this project is demonstrate the power of python programing language, and how simple it is to implement a basic application concept.

  • Nasa vs Aliens is a game developed to bring back the nostalgia of the 80s and 90s 2d games. This application target is mostly people that enjoy a good, light old fashioned game to pass the time or simply for the act of socializing.

Features

Existing Features

Health Status

Visible through out each match, shows players the status of their ship. Each player has 10 life points, whenever a player reaches 0 the game is restarted.

Two Player Game

Players can share the same keyboard in order to play a match.

  1. The left player uses the following keys:
  • UP --> W
  • DOWN --> S
  • LEFT --> A
  • RIGHT --> D
  • SHOOT --> SPACE-BAR

  1. The right player uses the following keys:
  • UP --> ARROW UP
  • DOWN --> ARROW DOWN
  • LEFT --> ARROW LEFT
  • RIGHT --> ARROW RIGHT
  • SHOOT --> RIGHT CTRL

5 Bullets Rule

To make the game more exciting, players can only fire 5 bullets at the time. Players are not allowed to fire again until their bullets are either off the screen or have hit the enemy ship.

Winner Text

Each time the opposite side reaches 0 health the winner is announced.

Features Left to Implement

  1. In a near future I would like to implement a intro that presents the game.
  2. Add a menu that let players choose their game character.

Testing

Codeac

Validator Testing

The code for this program was tested using the following:

The PEP8 - validator validator have shown some warnings with the code written, these warnings don't create any problems and were therefore ignored:

PEP8 - Result File containing the results and the code.

Codeac - validator

Deployment

  • The program has been published on Replit.

  • You can also find the files on my Github repository.

Unfixed Bugs

  1. First bug:

I have commented out the code regarding the sound effects on lines 42, 43, 202, 210, 214, 217 on the run.py file on replit. The main reason being replit does not execute the pygame sound library.

  1. Second bug:

When the application executed the following error appears in my command line:

libpng warning: iCCP: known incorrect sRGB profile

  1. Third bug:

When the application is stopped the following error appears in my command line:

pygame.error: video system not initialized

None of the above stops the program from running and executing, which makes me believe that is a problem with some of the pygame libraries.

Credits

Modules

  1. The project was developed using Pygame.

Pygame is a set of Python modules designed for writing video games. Pygame adds functionality on top of the excellent SDL library. This allows you to create fully featured games and multimedia programs in the python language.

Pygame is free. Released under the LGPL licence, you can create open source, freeware, shareware, and commercial games with it. See the licence for full details.

Media

  1. Sound effects obtained from Zapsplat.

  2. The photos used on the home and sign up page are from Pexels.

  3. The spaceship images were obtained from NicePNG.

Special Thanks

  • A big thanks to Alan and the Student Support team for coming up with the deployment idea and of course for their time.

  • Thanks to Spencer my mentor for being so prompt and active when questions arise.

project_python_mls3's People

Contributors

fdasabino avatar jiritichy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.