Skip to content

AlmasB/StarshipFontana

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starship Fontana

This is an example C++ application using the SDL2 library.

Installation

On Fedora (64bit) you can install the SDL2 library as follows:

$ sudo dnf install SDL2-devel.x86_64 SDL2_image-devel.x86_64 SDL2.x86_64 SDL2_image.x86_64

The easiest way to compile is to use a command-line (tested using g++ (GCC) 6.3.1 20161221 (Red Hat 6.3.1-1))

$ g++ -c src/*.cpp -I /usr/include/SDL2/
$ g++ -o starship *.o -lSDL2 -lSDL2_image

which will produce an executable file called "starship" in the top-level directory. To execute this file do the following

$ ./starship

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

Credits

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

About

A demonstration 2d game in C++ using SDL2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 99.5%
  • Makefile 0.5%