Git Product home page Git Product logo

infinity-game's Introduction

Infinity

Build Status License: GPL v3

Description

Infinity is a game that allows a player to move around in a randomly generated 2D world that infinitely scrolls to the right. The arrow keys control the player (in blue), which can only move on the floor (grass - green, sand - tan, dirt - brown). A mouse click creates or removes walls (in black), while a mouse drag moves walls.

This project was written in C++ using GLUT and OpenGL for an Advanced Programming Class at the University of Vermont. It is free and open source under the GPL-3.0 license.

Note: We are using the filesystem library from the yet unreleased C++17 (as of writing), thus, some platforms require special configuration when building. Please follow the instructions below for your system.


Building

Linux: Install GLUT, OpenGL, and gcc (version 6.3), then run the following in the project directory: g++ -std=c++17 -lGL -lglut main.cpp gameboard.cpp block.cpp player.cpp wall.cpp floor.cpp testing.cpp gameboard_tests.cpp block_tests.cpp player_tests.cpp wall_tests.cpp floor_tests.cpp gui.cpp -o infinity -lstdc++fs

Windows: Use Visual Studio 2017 with GLUT and OpenGL installed. Make sure you add the directories containing GLUT and OpenGL to Visual Studio's library paths.

Mac: As the current version of Clang used by Xcode doesn't seem to support C++17 yet, you need to use Homebrew to install gcc (version 6.3), GLEW, and OpenGL, then run the following in the project directory (with the newly downloaded gcc): g++ -std=c++17 -framework OpenGL -framework GLUT main.cpp gameboard.cpp block.cpp player.cpp wall.cpp floor.cpp testing.cpp gameboard_tests.cpp block_tests.cpp player_tests.cpp wall_tests.cpp floor_tests.cpp gui.cpp -o infinity -lstdc++fs

infinity-game's People

Contributors

josiahwitt avatar snguon avatar

Watchers

James Cloos avatar  avatar

Forkers

snguon

infinity-game's Issues

Setup Travis CI

Setup Travis CI to run the tests for Pull Requests, and require them to pass before merging.

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.