Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 17 Feb 2012
Offline Last Active Dec 01 2012 07:13 AM

Posts I've Made

In Topic: Doubt regarding SDL programming

22 February 2012 - 03:35 PM

Hi MaxFire,
Thanks for the Information but i have already have a look at them and these things are not there.,but i gained all of knowledge from there.
Can you please suggest some other good SDL programming sites esp related having motion and collision examples.


In Topic: Doubt regarding SDL programming

22 February 2012 - 11:18 AM

Hi Guys,

I am stuck again and need you help on two issues,if some one know any thing about these two things please reply

1)I want to create a negative of an image if say the user enter key 'N'.Now i know the logic of creating an negative ie find RGB value of each pixel on the screen,then subtract the indiviual RGB value from 255 to get the new value.However i do not know how can we take RGB value from each pixel and then write them back on screen.Have anyone tried something like this or do someone have a better idea.Please some reference code if some one has tried anything like this.

2)I am trying to create a camera in SDL by using SDL_rect and then positioning it in the screen by giving some offsets,but what i really want to achieve is that i have created an animation and i would like my camera to move along with it.I mean if my animation is moving to the right ,it should feel like camera is following him.But i am unable to achieve this result.Have anyone tried to emulate a camera in SDL before and if yes assist me.

In Topic: Help Needed in a C++ program

17 February 2012 - 10:58 AM

Hi Cornstalk,

Thanks for the information and more importantly correcting me about how to post effectively on Game dev,Well it was my first post and i think one mistake is fine.:).But will take care next time.:)

Hi BeerNutts,

Using khbit have solve my problem.Thanks a lot...Cheers :)

@ ALL Can i ask one more doubt regarding this program here only or should i start a new thread.

Actually i also want to include a timer in my program..to keep a track of how many correct random alphabets the user enters in say 60 secs..

I can you a variable and assign it value 60.and then decrease it by 1,but how to make sure that after exactly one sec it would get displayed in the screen.
i.e i need to display the counter exactly after 1 sec and this should not affect my other program functioanality .Is this possible, there must be a solution.Guys please provide some pointers/suggestions regarding the same.


In Topic: Help Needed in a C++ program

17 February 2012 - 07:23 AM


Actually i was not sure whether i should post this in beginner or game programming thread.

That why posted there also.