Code Monkey home page Code Monkey logo

shooter's Introduction

shooter

A simple FPS game written with C++ and OpenGL.

Run

A binary excutable file is provided, and it may run on your Linux if you have compatible OpenGL and GLFW3.
$ ./shooter
Then you may see the scene in the following picture:

You can press arrow keys (W, A, S, D) to move around and/or move your mouse to adjust the direction of crosshair.
Press ESC to quit.

Compile

$ make

Dependencies

OpenGL

version >= 3.3, core profile

GLFW3

Tested with version 3.2.

GLM

Tested with version 0.9.8 and 0.9.9.

GLAD (Optional)

This lib is optional, as it's contained in this repo, but you can modify it to your prefer.
GLAD should choose OpenGL >= 3.3 and core profile if you choose to use your own version.
OpenGL 4.0 core can be found in https://glad.dav1d.de/
Setting up method:
https://learnopengl.com/Getting-started/Creating-a-window

Reference

shooter's People

Contributors

sparkecho avatar

Watchers

 avatar

shooter's Issues

Failed to create GLFW window.

Linux yourhead 4.9.0-8-686-pae #1 SMP Debian 4.9.130-2 (2018-10-27) i686 GNU/Linux
Package: libglfw3-dev
Version: 3.2.1-1
Package: libglm-dev
Version: 0.9.8.3-3

__libc_start_main(0x425e30, 1, 0xbf92b794, 0x441fc0 <unfinished ...> _ZNSt8ios_base4InitC1Ev(0x44d570, 128, 4, 0x426f02) = 0xb7475d2c __cxa_atexit(0xb73805c0, 0x44d570, 0x44d164, 0x426f02) = 0 cos(0x51000000, 0xbff921fb, 0xb74721d0, 0x427626) = 0x51000000 cos(0, 0, 0xb74721d0, 0x427626) = 0 sin(0, 0, 0xb74721d0, 0x427626) = 0 sin(0x51000000, 0xbff921fb, 0xb74721d0, 0x427626) = 0 cos(0, 0, 0xb74721d0, 0x427626) = 0 sqrtf(0x3f800000, 0x252ab369, 0, 0x427013) = 0x44d000 sqrtf(0x3f800000, 0x3f800000, 0, 0x427013) = 0x44d000 sqrtf(0x3f800000, 0, 0x3f800000, 0x427013) = 0x44d000 _ZNSt8ios_base4InitC1Ev(0x44d571, 0, 0, 0x428c9d) = 2 __cxa_atexit(0xb73805c0, 0x44d571, 0x44d164, 0x428c9d) = 0 _ZNSt8ios_base4InitC1Ev(0x44d572, 0x44d571, 0x44d164, 0x428fcc) = 3 __cxa_atexit(0xb73805c0, 0x44d572, 0x44d164, 0x428fcc) = 0 _ZNSt8ios_base4InitC1Ev(0x44d5a4, 0x44d572, 0x44d164, 0x429af8) = 4 __cxa_atexit(0xb73805c0, 0x44d5a4, 0x44d164, 0x429af8) = 0 __cxa_atexit(0x42c824, 0x44d574, 0x44d164, 0x429af8) = 0 __cxa_atexit(0x42c846, 0x44d58c, 0x44d164, 0x429af8) = 0 glfwInit(0xb7740659, 0, 0xb775bad8, 0xbf92b448) = 1 glfwWindowHint(0x22002, 3, 0xb7284000, 0x425e59) = 0xb7716040 glfwWindowHint(0x22003, 3, 0xb7284000, 0x425e59) = 0xb7716040 glfwWindowHint(0x22008, 0x32001, 0xb7284000, 0x425e59) = 0xb7716040 glfwCreateWindow(800, 600, 0x442084, 0) = 0 _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(0xb74748c0, 0x442088, 0xb7284000, 0x425e59) = 0xb74748c0 _ZNSolsEPFRSoS_E(0xb74748c0, 0xb73f4da0, 0xb7284000, 0x425e59Failed to create GLFW window. ) = 0xb74748c0 glfwTerminate(0xb7740659, 0, 0xb775bad8, 0xbf92b448) = 0 +++ exited (status 255) +++

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.