Qbasicnews.com

Full Version: 1 key challenge revisited
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Quote:
rpgfan3233 Wrote:
Rattrapmax6 Wrote:
Cha0s Wrote:
Code:
screen 13, , , 1

That game sucks.... :lol:

j/k (I know you was showing Dio full screen mode...) :rotfl:
What are you talking about!? You can make up whatever imaginary game you want from a blank screen! :-P
It doesent use a key for input, it's dissqualified!

:lol: [yoda]Only one key there is, no more, no less.[/yoda]
Simple solution
Code:
screen 13, , , 1
do:loop until inkey$="g"



Hehe I'll think of a game. I was going to enter the old one but didn't
Quote:I was going to enter the old one but didn't

Me too :) I had an awesome game called the running man, where you had to make a man jump over obstacles while running. Pretty tricky, but fun none the less :D
Rules question:
Could mouse clicks be used as the "one key" if only the status of the mouses buttons were monitored? Positioning of the mouse wouldn't matter, only the fact that it was clicked.
Couldn't you easily replace that with a keyboard key?
Quote:Rules question:
Could mouse clicks be used as the "one key" if only the status of the mouses buttons were monitored? Positioning of the mouse wouldn't matter, only the fact that it was clicked.
If only ONE if the mouse buttons count ya..

Well, as long as they dont do different things, if you want you can trap all keys, and all mouse movement and input.. as long as it only ends up doing one thing.

Code:
if inkey$ = "q" or inkey$ = "w" or [...] or mouseBTN <> 0 or mouseX [...] then
Do one thing
end if
Woohoo Big Grin
Introducing my entry into this compo: Circulousity
In production screenshot:
[Image: 4558-t.png]
Select thumbnail to open a fullsize image (warning: very large)
Developed and running under Ubuntu
Must the key be a physical key on the keyboard/mouse/etc or can
it be a key/button in a gui?

-> if you click at area A you choose new game, B=exit, C=help ...
Z=The gameplay input method.

It will still be a binary way of inputting (on or off) and the only way to
act in the game (the other buttons in the gui is for menu's and stuff)
You can do whatever you want for menus etc..
you can have a clickable button to bring up a menu, to pause or to quit..

The GAME, has to be driven by a single key, or mouse button...


Menus, pause, or other such things, do NOT count as game keys..
So no gui simulated-single-button based input then... OK
Pages: 1 2 3 4