Giter VIP home page Giter VIP logo

battlecity's Introduction

BattleCity

Проект канала SimpleCoding для обучения создания простого 2Д игрового движка на OpenGL

Сборка

Проект планируется быть кроссплатформенным, в настоящее время протестирован на Windows, Linux и Mac. Для сборки необходимы только Git, CMake и компилятор

git clone https://github.com/simple-coding-channel/BattleCity.git
cd BattleCity
mkdir build
cmake ..
cmake --build .

Под Ubuntu возможно нужно будет еще установить следующую зависимость:

sudo apt-get install xorg-dev libglu1-mesa-dev

battlecity's People

Contributors

animery avatar simple-coding-channel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

battlecity's Issues

building on a Linux

Attempt to build project on a Linux with cmake . && cmake --build .:

Scanning dependencies of target BattleCity
[ 66%] Building CXX object CMakeFiles/BattleCity.dir/src/main.cpp.o
In file included from /home/eax/BattleCity/src/main.cpp:8:
/home/eax/BattleCity/src/Game/Game.h:28:10: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
   28 |     std::unique_ptr<Tank> m_pTank;
      |          ^~~~~~~~~~
/home/eax/BattleCity/src/Game/Game.h:5:1: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
    4 | #include <array>
  +++ |+#include <memory>
    5 | 
make[2]: *** [CMakeFiles/BattleCity.dir/build.make:63: CMakeFiles/BattleCity.dir/src/main.cpp.o] Ошибка 1
make[1]: *** [CMakeFiles/Makefile2:74: CMakeFiles/BattleCity.dir/all] Ошибка 2

appending #include <memory> really helps to avoid this problem

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.