Code Monkey home page Code Monkey logo

space_invaders's People

Contributors

grieverheart avatar hecko avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

space_invaders's Issues

Sakemake

Just wanted to say that space_invaders builds great with sakemake, right out of the box, no build-configuration needed. :)

error after compiling on linux

This works fine:

g++ -std=c++11 -o main -lglfw -lGLEW -lGL main.cpp

but running the following throws an error:

geoff@ubuntu:~/work/interview$ ./main 
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
Error: GLX: Failed to create context: GLXBadFBConfig

Doesn't build on linux

diff --git a/make.sh b/make.sh
index 4f626e8..c935c9f 100755
--- a/make.sh
+++ b/make.sh
@@ -1,2 +1,2 @@
 #!/bin/bash
-g++ -Wall -std=c++11 -O0 -g -o main -lglfw -lglew -framework OpenGL main.cpp
+g++ -Wall -std=c++11 -O0 -g -o main main.cpp -lglfw -lGLEW -lGL

glGenVertexArrays causing segmentation fault

Running on Linux, I was experiencing the application crashing with a segmentation fault.

This would occur when executing the call: glGenVertexArrays(1, &fullscreen_triangle_vao);

To fix this, I needed to set the global switch glewExperimental to GL_TRUE before initialising glew, eg:

glewExperimental = GL_TRUE;
GLenum err = glewInit();

Which license?

I made a fork of the space invaders code here, but I am unsure if this is okay, since a license i missing.

What is the license for this project?

Possible mistake on your blog post

In your 1st blog post, you write that the command to compile the code is

g++ -std=c++11 -o main -lglfw -lglew -framework OpenGL main.cpp

But, for me, on the latest Fedora release, it was the command you suggested for Mac OS X that worked

g++ -std=c++11 -o main -lglfw -lGLEW -lGL main.cpp

Is this a mistake on your end, or just Fedora being weird ? (Very cool tutorials by the way)

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.