Giter Site home page Giter Site logo

starshipfontana's Introduction

Starship Fontana

This is an example C++ application using the SDL library. It tries to be as nicely C++11 as possible but do keep in mind that SDL is written in C and, at some stage, you have to interface with it.

Story

The evil b’Kuhn has stolen the code to Earth’s defence system. With this code he can, at any time, defeat the entire human race. Only one woman is brave enough to go after b’Kuhn. Will she be Earth’s hero? Puzzle your way though the universe in the company of Commander Fontana in Starship Fontana.

Installation

You will need the SDL development libraries installed on your system.

This installation guide assumes the use of Fedora.

Start by installing the required libraries:

  • Groups:
    • C Development Tools and Libraries
  • Packages:
    • SDL2-devel
    • SDL2_image-devel
    • gcc-c++

You can run the commands below to fetch these libraries:

  $ yum groupinstall "C Development Tools and Libraries"
  $ yum install SDL2-devel SDL2_image-devel gcc-c++

The easiest way to compile is to use a command-line. The commands below will compile the game into an executable file starship in the top-level directory:

  $ g++ -c src/*.cpp
  $ g++ -o starship *.o -l SDL2 -l SDL2_image

To run the compiled game do the following:

  $ ./starship

From the top-level directory, the game will expect to find the assets directory under its current working directory.

  • Repo
    • starship (executable)
    • assets (folder)
    • src (folder)
    • [etc ...]

Issues

  • SDL1 to SDL2 port introduced bounding box collision issues.
  • Coin does not collect properly.

Credits

The sprites in this game come directly from SpriteLib and are used under the terms of the CPL 1.0.

The event system is based on Libsigc++ and is used under the LGPL.

The main game code comes from AidanDelaney/StarshipFontana please check the LICENCE for more information.

starshipfontana's People

Contributors

aidandelaney avatar sjp55 avatar xenowarrior avatar

Watchers

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