GithubHelp home page GithubHelp logo

tony-redekop / cpp-tetris Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 4.45 MB

Tetris clone written in modern C++ with OpenGL

License: Other

CMake 0.19% C 29.67% C++ 68.45% Objective-C 1.67% GLSL 0.02%
cpp opengl cmake gamedev

cpp-tetris's Introduction

cpp-tetris

Tetris clone written in modern C++ with OpenGL.


Goals

  • Utilize modern C++11 (except shared_ptr/unique_ptr) and the standard libary
  • Avoid use of Singleton pattern in favor of DI (dependency injection) where applicable
  • Learn manual memory management through the use of new & delete
  • Implement collision detection using bitwise manipulation (bitmask)
  • Utilize googletest for unit testing and creation of test fixtures
  • Gain experience debugging with gdb
  • Use a minimal amount of textures

Screenshot

screenshot

Dependencies

  • cmake minimum 3.14
  • opengl minimum 3.3
  • glfw3 minimum 3.2

Instructions

Linux

  1. Download & install dependencies
  2. $ git clone https://github.com/tony-redekop/cpp-tetris.git
  3. $ cd cpp-tetris
  4. $ mkdir build
  5. $ cd build
  6. $ cmake -G "Unix Makefiles" ..
  7. $ make
  8. $ ./test/demo

Windows

Note: The project has not been tested on Windows.

Credit

Credit to Joey de Vries of learnopengl.com for providing the best resource on modern OpenGL on the internet and for providing a lot of the OpenGL boilerplate.

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.