Giter VIP home page Giter VIP logo

infinitestars's Introduction

InfiniteStars

Basic infinite stars dodging game made in OpenGL using ImGUI, GLFW, GLM, and GLEW.

NOTE: Open the project source .sln file on VS 2019.


INSTRUCTIONS

Press Spacebar to give vertical velocity

If the Settings window disappears, delete the imgui file in the same directory


Executable showing an Infinite Stars game where player has to dodge obstacles generated infinitely Player can opt for a square or a triangle, chosen through ImGui button. Camera follows the player. Player velocity and gravity are simulated. (gravity only on y axis) Player can change the color of their avatar, obstacles, and background. Player also can set the horizontal velocity. Collision detection is implemented using PointInTri function that checks for given vertex in a given triangle. Camera position, rotation and translation implemented. Timestep implemented to make translation independent of fps. Vertex Arrays providing Vertex Buffer with VertexAttrib layout is used along with Index Buffer. Abstraction is done for quick viewing of code. Colored square is projected on the 4:3 window using projection matrix Colored square is translated using mvp matrix (model->transform, view->camera, projection->screen)

GLFW used for console application (draw window) GLEW used for dynamic utilization of OpenGL api to draw triangles using custom shader. GLM used as a maths library to provide mvp matrices Imgui used for dynamic UI integration

infinitestars's People

Contributors

v-archit avatar

Watchers

 avatar

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.