Code Monkey home page Code Monkey logo

gravity's Introduction

Gravity

An Orbital survival game

Project page: http://amhndu.github.io/Projects/gravity.html

Gravity is a survial game set in space, you are in a space station orbiting Earth but things have gone awry and you have a situation with broken satellites, how long can you survie ? (Yes, the premise is very similar to that Hollywood movie of the same name). Programmed in C++11 with the SFML library for graphics. I made this is as my final project in school. This is a clone of the HTML5 game Orbital Debris.

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4

Gameplay video

(Note that this video is a bit outdated since the game now supports saving/loading, apart from the new buttons this video remains precise) Youtube video

Compiling

You need a C++11 compliant compiler and SFML 2.0+ to compile Gravity. After you've downloaded the source and dependencies, you can use cmake to compile Gravity. On any Linux distribution, these are the typical steps :

$ git clone https://github.com/amhndu/gravity
$ cd gravity
$ cmake .
$ make

If you don't have cmake and don't wish to install it either, then you can simply compile Gravity by compiling all the cpp files and then linking them with SFML using your IDE/compiler. e.g. With g++, you can enter this command :

$ g++ -o gravity *.cpp -std=c++11 -lsfml-graphics -lsfml-window -lsfml-system

Note : To compile on windows, you also need to link the sfml-main component.

License

The following images have been taken from here

  • assets/satellite<n>.png where n = {0,1,2,3}
  • assets/junk<n>.png where n = {0,1,2}
  • assets/Earth.png
  • assets/bg.png
  • assets/station.png

For code, see LICENSE

Contact me

Email : amhndu --at-- gmail --period-- com

gravity's People

Contributors

amhndu 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.