Skip to content

sea-kg/yourCityIsInvadedByAliens

Repository files navigation

Game: Your City Is Invaded By Aliens

Github Stars Github Stars Github Forks

Game 2D with open source code based on cross platform graphical library SDL2.

blog in vk

Alt text

Installing

TODO

Building

Ubuntu

$ sudo apt install cmake g++
$ sudo apt install libsdl2-dev
$ sudo apt install libsdl2-image-dev
$ sudo apt install libsdl2-mixer-dev

MacOS

% brew install cmake
% brew install sdl2
% brew install sdl2_image
% brew install sdl2_mixer

Build:

% ./build_simple.sh

Run:

% ./yourCityIsInvadedByAliens

Windows (msvc2015 x86):

Virtual machines for developers: https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/

Requirements:

  • Visual Studio 2015 (x86)
  • CMake
  • powershell

Just run a script for download SDL2 libraries and build project:

> msvc2015x86_build_simple.bat

Target controls

  • keyboard for desctops - Done
  • joystick for desctops - Yet not
  • touchscreen for mobiles - Yet not

Keyboard:

  • Moving arrow's keys or W A S D
  • Shooting: Space

Target platforms

  • linux (Ubuntu 20.04) - Compiled
  • windows - Need check
  • mac - Need check again
  • android - Not configured yet
  • ios - Not configured yet
  • apple tv - Not configured yet

Structure of directory res

  • ./res/app - contains basic configuration / textures for panels, buttons and etc...
  • ./res/default - contains default map / textures / sprites and etc
  • ./res/asset-factories-bootscreen - contains all resources needed for bootscreen
  • ./res/asset-factories - contains all resources needed for game

Other instruments

  • cmake - for compiling project
  • Visual Studio Code - for editing code
  • Gimp - for design sprites/textures and etc.

useful links

Interesting projects