Skip to content

This is a programming university assignment that aims to develop a game similar to Space Invaders.

License

Notifications You must be signed in to change notification settings

VitorgsRuffo/Galaxy-Defenders

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Galaxy Defenders

This is a programming university assignment that aims to develop a game similar to Space Invaders.

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact

About The Project

menu-screenshot

This is a programming college assignment that aims to develop a game similar to Space Invaders. That was my first big project and it took me and my college fellows three months to finish it. We had to work hard to get it working before the deadline. At the time we started it I didn't have much programming experience, thus besides helping my friends build the game I had to learn the C language. We used a library called Allegro 5 that helped us a lot in the process, you can check its documentation on this link.


in-game-screenshot

All the magic behind this game relies on moving images on the screen at very specific moments. Any point on the game screen has an X and Y coordinates that locate it. For instance, the player ship image is located at a specific part of the screen when the game starts, if one press the right arrow (->) of the keyboard it is going to added 10 units to the ship image X coordinate moving it to the right. The thing is, the program checks if the location of any image on the screen needs to change because some event just happened then it redraws all images on the screen at their current location. That happens 60 times per second, that's why our game (a program that redraws images on the screen very quickly) seems to be very fluid. Examples of events can be the act of pressing a key (space bar, for example), or just time passing.

Getting Started

Now, let's see how you can get a local copy of this game and run it.

Obs: the final version of this game is only available for windows. But, one could transform all the code into an executable to run on linux or other operating systems.

Installation

  1. Clone the repo:
    git clone https://github.com/VitorgsRuffo/Galaxy-Defenders.git
  2. Go to the repo's exe directory and extract the "Galaxy_Defenders_exe.rar" file:
    cd /path/to/repo/Galaxy-Defenders/exe
    unrar e Galaxy_Defenders_exe.rar

Usage

  1. Double click the GalaxyDefenders.exe file and enjoy the game!

  2. You can check out some nice game screenshots.

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GPL-3.0 License. See LICENSE for more information.

Contact

Olavo Nascimento - olavo.nascimento4@gmail.com

Vitor G. S. Ruffo - LinkedIn - vitor.gs.ruffo@gmail.com

Wellinton Piassa - LinkedIn - wellintonpiassa@hotmail.com

About

This is a programming university assignment that aims to develop a game similar to Space Invaders.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 98.9%
  • Makefile 1.1%