Beginner's Guide to Game Programming Ep1 Part 3-B Keyboard Input in SDL
Uploader Comments (LusikkaMage)
Top Comments
-
I don't play my games, I watch them!
All Comments (25)
-
wonderful tutorials . very professional
-
@steff385 C++ is a language. DevC++, Visual Studio, and Code::Blocks are all IDEs and have no affect on the language itself (in general); it doesn't matter what you decide to use.
-
Can i use Dev-C++? Answer quickly please.
-
When you said "You want to play your games, not watch them. Heres how you do it:" My video crashed :(
-
@LusikkaMage only 38 pages!! Man! I have to read this 800 page java book in 3D gameing,good luck to both of us, nvm you posted this 1 year ago . . . .
-
whats the code to make the player move , how do i change the x,y cordinates of this image SDL_BlitSurface(image,NULL,scr
een,NULL); -
TY so much for the key array info. So helpful.
-
Beginner's Guide To Game Programming: A Problem Solving Approach: The Pocket Guide
^Title xD^
A little side note... have you noticed that pocket references hardly ever fit in pockets? Why the hell call them a pocket reference if they aren't for your pocket...
Rachel, you should search for a job in my school honestly spoken, so all of us could learn this! :D
Zilva86 1 year ago
@Zilva86 If you're going to college, I'd have to get a masters to teach. D:
I might sooner or later.
LusikkaMage 1 year ago
Rachel, you should write a book! These tutorials are great!
XianForce 2 years ago 14
Lulz. Where there is a pdf version on the site that's 38 pages long (though I need to finish it). @_@
LusikkaMage 2 years ago
hmm, just a quick doubt .. i am new to SDL yet,
but, shouldn't you call the SDL_PumpEvents() function before calling SDL_GetKeyState() ?
as i said i am new to SDL, i just brought a book about SDL (Focus on SDL) and i was reading the event handling chapter a few days ago, and i read that.
Kenshin1666 2 years ago
I think that might be if you're using the events.keysym.whatever stuffs, instead of actual key states (the integer), but I'll check on it when I get home.
If it helps at all, I don't see it being used in LazyFoo's input stuff.
LusikkaMage 2 years ago