项目作者: aleksandertabor

项目描述 :
War of spaceships
高级语言: C++
项目地址: git://github.com/aleksandertabor/SpaceShips.git
创建时间: 2017-04-03T17:08:57Z
项目社区:https://github.com/aleksandertabor/SpaceShips

开源协议:

下载


SpaceShips - multiplatform game



🆕 Available on:
Get it on Google Play






General
Screens
Compilation
Authors

General






SpaceShips game written in C++ language, using SFML library.

The project was created in Microsoft Visual Studio 2017.

Multiplatform game for Windows, Linux and Android.

The game is in the process of creating.

Screens

alt text

alt text

alt text

alt text

alt text

Compilation

Windows

  1. 1.Install C++ in Visual Studio 2017.
  2. 2.Download SFML 2.5.1 for Visual C++ 15 (2017) - 32-bit.
  3. https://www.sfml-dev.org/download/sfml/2.5.1/
  4. 3.Save files in "C:\SFML-2.5.1\"
  5. 4.Set x86 compile in VS Projects.
  6. 5.Configure SFML on Visual Studio 2017.
  7. https://www.sfml-dev.org/tutorials/2.5/start-vc.php
  8. 6.Compile and run project



Linux (Ubuntu)

  1. sudo apt-get install g++
  2. sudo apt-get install libsfml-dev
  3. git clone https://github.com/aleksandertabor/SpaceShips/
  4. cd SpaceShips
  5. g++ -std=c++11 -o SpaceShips main.cpp Bullet.cpp Collision.cpp CsvFiles.cpp Enemy.cpp Game.cpp Gift.cpp Player.cpp -lsfml-graphics -lsfml-window -lsfml-system
  6. ./SpaceShips

Android

  1. 1.Build SFML for Android with tutorial.
  2. https://github.com/SFML/SFML/wiki/Tutorial:-Building-SFML-for-Android
  3. 2.Extract all content from repository in non-ASCII characters path (characters like space or dashes -_ don't work).
  4. Note: If you run project in Android Studio it will throw an error about non-ASCII:
  5. "Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory."
  6. Working: C:\SpaceShips\
  7. Not working: C:\SpaceShips - 2019\
  8. 3.You can debug project with Gradle commands or open in Android Studio.
  9. Note: Android Port required all files from repository. DON'T extract only /android-port/ folder.
  10. Source files and assets (SpaceShips folder) are mutual for all platforms.
  11. 4.Open project in Android Studio by choosing only build.gradle file in explorer directly from /android-port/ directory.
  12. 5.Before debbuging remember about changing your paths for SDK and NDK in android-port\local.properties.
  13. Android Studio automatically will be scanning for source files and assets from /SpaceShips/ folder - Android.mk and Application.mk are there.
  14. Java code is in android-port\app\src\main\java directory.



Authors

Aleksander Tabor Tomasz Zurek
Aleksander Tabor Tomasz Zurek



The game was written by Aleksander Tabor and Tomasz Zurek