Showing only posts tagged mineshooter. Show all posts.

Mineshooter

Yeah, I re­al­ly liked minecraft back in the day. For some rea­son I want­ed to make a minecraft in­spired shoot­er, though.

If I re­call cor­rect­ly this idea orig­i­nat­ed on a Gym­na­si­um (think high­school) or­ches­tra re­treat that I (kind of se­cret­ly) brought my note­book to. I used ev­ery free minute to code those minecraft graph­ics. What a pas­sion­ate mu­si­cian I was!

High­ly am­bi­tious project, since I want­ed to make it mul­ti­play­er and what not, but ac­tu­al­ly just want­ed to fo­cus on OpenGL de­vel­op­ment, which was su­per fun. I al­ways liked the idea of work­ing on some­thing that may not go to waste (apart from the learned skills), on­ly rarely a project got fin­ished back in those days.

Rendering Text!

I some­how feel hap­py about fi­nal­ly be­ing able to ren­der Text ;)image0

I’m us­ing the Freetype Li­brary and OpenGL. I thought about us­ing SDL TTF, but some­how I end­ed up de­cid­ing on this :)

This post was im …

back-face culling

I re­cent­ly found a tu­to­ri­al on back-face culling. It means telling OpenGL not to draw in­vis­i­ble faces (faces on the back side ;) ) of a mesh, which does speed up the ren­der­ing a lot.

I was look­ing for some­thing …

Mouselook and SDL - Code

Okay, here is some code for mouselook with SDL

struct {
              int x, y;
              //In this case: the position where the mouse is held at
              bool trap; //flag for holding mouse at one place
          } mouse;

          void MouseMotion(){
              /* Set x and y to the current mouse position */
              int x, y;
              SDL_GetMouseState(&x …

Mineshooter with SDL…

Al­most done with rewrit­ing Mi­neshoot­er to work with the Sim­ple Di­rect­Me­dia Lay­er Li­brary. Still have a few prob­lems with the mouselook, but I should be able to work out a so­lu­tion very soon.

SDL is quite sim …

page 1 | older articles »