Giter VIP home page Giter VIP logo

breakout's Introduction

C++/OpenGL Breakout

My first attempt to create a game in C++. This project is heavily influenced by this awesome tutorial written by Joey de Vries. It's not a blind copy/past replica though - I rather took main concepts and ideas and implemented them as I saw fit.

Gameplay example:

Gameplay example

Game assets

Build

All dependencies are presented as git submodules so you can simply download them and build the project. Tested on Visual C++ 14 and MinGW-w64 g++ compilers. Adjust AssetsLoader::OFFSET if needed. If you are a Windows user you can just download prebuilt game (commit 801d2c69900cbdc78cd19693414196a888308ab5).

breakout's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

breakout's Issues

Unable to open files in resouces folder with Debug mode

after compile breakout target, I copied resources folder to folder which holds exe file. If I run exe directly, it works. When I run it from Visual Studio 2017, it failed as follows.

image

image

3.3.0 Win32 WGL EGL VisualC
Unable to open text file ./resources/shaders/sprite/shader.frag
Unable to open text file ./resources/shaders/sprite/shader.vert
Shader program linkage failed
Vertex info
-----------
(0) : error C5145: must write to gl_Position

Unable to open text file ./resources/shaders/textrendering/shader.frag
Unable to open text file ./resources/shaders/textrendering/shader.vert
Shader program linkage failed
Vertex info
-----------
(0) : error C5145: must write to gl_Position

Unable to open text file ./resources/shaders/particle/shader.frag
Unable to open text file ./resources/shaders/particle/shader.vert
Shader program linkage failed
Vertex info
-----------
(0) : error C5145: must write to gl_Position

Unable to open text file ./resources/shaders/postprocessing/shader.frag
Unable to open text file ./resources/shaders/postprocessing/shader.vert
Shader program linkage failed
Vertex info
-----------
(0) : error C5145: must write to gl_Position

Unable to find uniform projection. It is either not declared or not used.
Unable to find uniform sprite. It is either not declared or not used.
Unable to find uniform projection. It is either not declared or not used.
Unable to open font file ./resources/fonts/PixelScreen.ttf

C:\src\breakout22\build\Debug\breakout.exe (process 147972) exited with code 3.
Press any key to close this window . . .

Unknown arguments: -D_WIN32_WINNT=0x0502

CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/CheckIncludeFiles.cmake:63 (message):
Unknown arguments:

-D_WIN32_WINNT=0x0502

Call Stack (most recent call first):
externals/openal-soft/CMakeLists.txt:944 (CHECK_INCLUDE_FILES)

-- Configuring incomplete, errors occurred!
See also "C:/src/breakout22/build/CMakeFiles/CMakeOutput.log".
See also "C:/src/breakout22/build/CMakeFiles/CMakeError.log".

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.