My game will need setting bindings. I have question tho about setting them up. Is (in pseudo pascal)
enough or do I need something more complicated?Code:repeat until keypressed; up:=readkey;
My game will need setting bindings. I have question tho about setting them up. Is (in pseudo pascal)
enough or do I need something more complicated?Code:repeat until keypressed; up:=readkey;
Depends on application, and usable input components. You propably want to animate menu graphics while reading the key.
crt has a small buffer for keys (16 bytes, I think), so you don't need to grab the key via readkey() instantly.
Code:repeat sleep(); animateMenu() until keypressed; key := readkey();
Hm, thanks. By the way, you may know me as Rave. But that's just small tip.
Bookmarks