Qbasicnews.com
September 19, 2019, 03:42:52 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 [2] 3
  Print  
Author Topic: 1 key challenge revisited  (Read 20412 times)
Z!re
*/-\*
*****
Posts: 4599


« Reply #15 on: October 03, 2005, 09:40:10 PM »

Quote from: "urger"
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
Logged
urger
Wandering Guru
***
Posts: 337



« Reply #16 on: October 03, 2005, 09:47:38 PM »

Woohoo Cheesy
Introducing my entry into this compo: Circulousity
In production screenshot:

Select thumbnail to open a fullsize image (warning: very large)
Developed and running under Ubuntu
Logged

his sig left intentionally blank
red_Marvin
Na_th_an
*****
Posts: 1509



WWW
« Reply #17 on: October 08, 2005, 02:40:49 PM »

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)
Logged

/post]
Z!re
*/-\*
*****
Posts: 4599


« Reply #18 on: October 11, 2005, 03:50:01 PM »

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..
Logged
red_Marvin
Na_th_an
*****
Posts: 1509



WWW
« Reply #19 on: October 12, 2005, 04:18:53 AM »

So no gui simulated-single-button based input then... OK
Logged

/post]
d.j.peters
Forum Regular
**
Posts: 147



WWW
« Reply #20 on: October 12, 2005, 07:29:30 AM »

An example of one key onlinegame.
Start your engine

It's not from me.
Joshy
Logged

[size=0]sorry about my english[/size]
rpgfan3233
Ancient Guru
****
Posts: 617



« Reply #21 on: October 12, 2005, 12:31:55 PM »

Quote from: "d.j.peters"
An example of one key onlinegame.
Start your engine

It's not from me.
Joshy

Here's another example (similar to the Pingu Throw/Yeti Sports games, but with some extra twists. . .): http://edamamebeans.com/games/index.php
Logged

974277320612072617420666C61696C21 (Hexadecimal for those who don't know)
urger
Wandering Guru
***
Posts: 337



« Reply #22 on: October 12, 2005, 06:05:08 PM »

Circulosity, an entry into the 1 key challenge revisted
Click screenshot to download
[warning to 56k'ers file is 2.23MB]

*Edit* File rehosted at FileAnchor mow that it is back
*Edit* Re-rehosted back to my own webspace
Logged

his sig left intentionally blank
j2krei08
Guru
**
Posts: 284



WWW
« Reply #23 on: October 18, 2005, 05:57:37 PM »

Here's mine.  It's called Hurdles, because you jump over the hurdles.  No sound, kinda simple.  I made it in about an hour.

No documentation, though.  Press space to jump.  If you jump over 10 hurdles or more, you win.  Any less and you get a lower score.
Logged
speedlemon
I hold this place together
*****
Posts: 874



« Reply #24 on: October 18, 2005, 06:20:35 PM »

Both of these games were elegant gems.

However I would like to make some suggestions for both of you.

Urger-
This game, had a cool idea.  The die sound effect didn't match the rest of the game (In my opinion anyway).  But I like how you thought of the idea for it, and it was coded very elegantly.  The only problem I really had with it, is after a while I got bored with it.

John-
This game was almost unplayable.  Unless it was supposed to go that fast...
I also didn't like when 2 hurdles went so close together.  I thought in hurdles they were spread out evenly.  Other than that, the graphics were elegant. (apart from the 'runner', but I understand that you did make it in 30 minutes.)
Oh, and you might want to do something about the mouse.
try-
Code:
setmouse 0,0,0
'Hint: this only works in FB




Hopefully I'll be getting my entry in soon. :roll:
Logged
urger
Wandering Guru
***
Posts: 337



« Reply #25 on: October 18, 2005, 10:16:20 PM »

Quote
Urger-
This game, had a cool idea. The die sound effect didn't match the rest of the game (In my opinion anyway). But I like how you thought of the idea for it, and it was coded very elegantly. The only problem I really had with it, is after a while I got bored with it.

Thanks Cheesy
I wanted the Die sound to be jarring abit.  I couldn't think of a more jarring sound then of a person empting the air from thier bagpipes so I recorded my friend doing that, however it the recording didn't come out how I had planned, so I went with that sound in the game instead.
As for the boring bit, well, there is only so much you can do with only one key to make it interesting. :-? The game speeds up considerably over time, best I could figure to make it more difficult without over complicating the game.  I'd love to hear other peoples suggestions.
Logged

his sig left intentionally blank
whitetiger0990
__/--\__
*****
Posts: 2964



WWW
« Reply #26 on: October 18, 2005, 10:36:40 PM »

@urger: I can't get it to run on linux =(

I removed all the FMOD stuff.
Logged


[size=10]Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.[/size]
urger
Wandering Guru
***
Posts: 337



« Reply #27 on: October 18, 2005, 11:02:20 PM »

Quote
@urger: I can't get it to run on linux =(

I removed all the FMOD stuff.

Thats weird, since I coded the whole thing in Linux except for the sound.
What is the error you get?
Logged

his sig left intentionally blank
whitetiger0990
__/--\__
*****
Posts: 2964



WWW
« Reply #28 on: October 18, 2005, 11:17:00 PM »

Quote from: "urger"
Quote
@urger: I can't get it to run on linux =(

I removed all the FMOD stuff.

Thats weird, since I coded the whole thing in Linux except for the sound.
What is the error you get?

None. It compiles fine and when I run it it pops up (taking almost the full screen)
here's a screeny

When I click any button the dot rotates to the right (in one of 3 slots)

I can hit escape and then i can't do anything. nothing shows up. After that I hit 'y' and it ends.
Logged


[size=10]Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.[/size]
urger
Wandering Guru
***
Posts: 337



« Reply #29 on: October 18, 2005, 11:21:06 PM »

Could you PM or post your modified code.
I'm going to try it and see if I get the same results.

*edit*
Also you may want to try this code.
http://fileanchor.com/6810-d
I haven't been able to test it yet (not home with my Ubuntu comp right now) but this should be platform independant graphics code.

After taking a look at your screen shot it strikes me that what could be the problem is that timed graphics update code isn't being triggered.  If the code is being triggered you'll be able to see the "circles" move in numeric form.
*edit 2*
Text mode circulosity code
http://fileanchor.com/6826-d
Logged

his sig left intentionally blank
Pages: 1 [2] 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!