Beginner's Guide to Game Programming Ep1 Part 3-A Keyboard Input in Allegro 4
Loading...
11,745
Uploader Comments (LusikkaMage)
see all
All Comments (24)
-
Oh, the playlist one is correct, the one in the links is wrong. Sorreh
-
Oh sorry. I'll fix that. That was because the original video had an error that absolutely needed fixing so that one is private, the fixed one is public and I forgot to add it to the list. D:
-
"E1V3B: Keyboard input with SDL" is market private? T.T
or is it just youtube having an error?
Loading...
Is there something that you can do to say for example fire when I release the ctrl key?
cplusplusgamer 6 months ago in playlist Beginner's/Game Programming 1
@cplusplusgamer Yeah, there should be a "key up" like there is a "key down". "Key press" is like key down but I believe only triggers it once, whereas key-down will keep repeating the event over and over.
LusikkaMage 6 months ago
ok so,
if (key[KEY_UP]) player.Move(UP);
this means that if the up arrow is pressed (KEY_UP) the person will just move twards the top of the screen right?
and these are functions on their own right?
MrHankkey93 9 months ago
@MrHankkey93 player.Move is a function that you will have to write.
LusikkaMage 9 months ago
will this this work in other compliers than allegro
stanmarshk 1 year ago
@stanmarshk Allegro is not a compiler, it is a library. Allegro handles graphics, sound, input, and other things. This tutorial covers both Allegro and SDL librarys, so check 3-B if you want to use SDL instead.
As far as IDEs go (Integrated Dev Environments, usually mistaken with Compilers), you can compile your program in any C++ IDE or compiler, you just have to know how to set up the library for it.
LusikkaMage 1 year ago