Jump to content

  • Log In with Google      Sign In   
  • Create Account

Calling all IT Pros from Canada and Australia.. we need your help! Support our site by taking a quick sponsored surveyand win a chance at a $50 Amazon gift card. Click here to get started!


Member Since 23 Nov 2011
Offline Last Active Jul 11 2012 03:55 AM

Posts I've Made

In Topic: Good game development books

01 June 2012 - 08:32 AM

Ok thx all for the answers. Ok so I'll go into a bit more detailed explanation of what I'm looking for/what i know. Ok so i've been doing some programming in c++ just for fun really, no super big projects. I did a lot of the problems from ProjectEuler, and also made some games. Started with some console pacman/snake, and then moved into sdl where i developed a tetris game, aswell as a simple Rpg game(kinda like the gameboy version of pokemon). In openGl, I read the nehe tutorials and practiced a bit of what i leaerned.
So i guess i should have expressed myself a little better. I'm looking for books that can help me with the game development, especially like design and organizational structure, but also some good books on the development of a 3d game engine.

In Topic: NPC interaction - need help with Game Design

16 April 2012 - 01:21 AM

First- There's a section called Game Design on the forums, maybe that's a more adequate place. Second, yes, it's too damn big. Also, look up inheritance for that. It pretty much allows you to have a base character class and then have other classes that derive from that class, have all the stuff that one has but MORE too.

In Topic: SDL_Events working in my main function but not in a class

14 April 2012 - 01:07 PM

Events instead of events in the function onEvent.

In Topic: simple c++ project

04 February 2012 - 03:56 PM

I'd recommend this exercices. They go from beginner to "advanced" beginner, so it's good practice. http://www.cplusplus.com/forum/articles/12974/

In Topic: SDL move an image to specific coordinates

04 February 2012 - 11:41 AM

Oh sorry didn't read the last part. So if you want it to follow your mose it's even easier. You jsut need to reasing the position everytime there's a mouse movement.
To do so, you do soemthing like this
if (SDL_PollEvent(&event))
if( event.type == SDL_QUIT)
quit = true;
if( event.type == SDL_MOUSEMOTION)
image.updateEndPosition(event.button.x, event.button.y);
In this scenario there would be a class image containing an x and y position and that method would simply update it to the current one whenever ur mouse moved. If you wanted to do it when you press arrow button just change the type of event to SDL_KEYDOWN and SDLK_UP.
That position would be the desired one to moving. So you need to calculate the direction. Knowing the starting position and the desired end position you should be able to do it with simple maths.