Page 1 of 2

Space Warp INKEY$ VS Space Warp Mouse!!

Posted: Tue Jan 25, 2005 5:44 pm
by Rattrapmax6
:) I've recently released a demo of my Seek'n'Destroy A.I.. Quickly Mit made the suggestion to make it mouse controlled. I took his advice, and some help, and now I have a Mouse Beta, or demo.

I'm holding a comparo on what the other QBers think, altho I'm really liking this mouse one.. I'm courious which one is better in a wide stand point.

Download the INKEY$ one:
http://members.aol.com/rattrapmax6/QBFiles/SWDEMO.ZIP

Download the Mouse one:
http://members.aol.com/rattrapmax6/QBFiles/SWBETA.ZIP

Then vote on the poll!

Posted: Tue Jan 25, 2005 6:07 pm
by Mitth'raw'nuruodo
Oooo...I CAN'T Wait!!!! :D :D :D

So lets see here....

Posted: Tue Jan 25, 2005 6:18 pm
by Mitth'raw'nuruodo
Ok...I like it....much better... :D

But if I may make a suggestion, or two (oh on another one lol)

1. Put Up/Down back in.
2. Also when mouse goes to the right, It "sticks" because the limites of the mouse are not same with the limits of the ship. (you can change this with another mouse function)

Need any help on either of these just ask... :wink:

Posted: Tue Jan 25, 2005 6:18 pm
by Rattrapmax6
Mitth'raw'nuruodo wrote: Oooo...I CAN'T Wait!!!!

So lets see here....
:lol: I know that already, it was your idea. lol :wink:

Posted: Tue Jan 25, 2005 6:29 pm
by Mitth'raw'nuruodo
I did vote, try, and suggest. But we replied at the same time so you didn't see it. hmmm.... :)

Posted: Tue Jan 25, 2005 6:30 pm
by Rattrapmax6
Mitth'raw'nuruodo wrote: 1. Put Up/Down back in.
2. Also when mouse goes to the right, It "sticks" because the limites of the mouse are not same with the limits of the ship. (you can change this with another mouse function)
1. Up & Down,. I was leaving this out because of arc movment. The mouse naturaly moves in a arc. I didn't try it, but I'll give it a swing..

2. Ok,. your a month old to ASM,. I'm new.. course I could ratio the Mouse X Y the my limit X Y, but is there a ASM that will do that for me?? I noticed that little stick myself.. :wink: , was letting it go at the present, it a Beta ne way, lol..

Glad you liked it, :D , I did too!!! :D :D

Posted: Tue Jan 25, 2005 7:00 pm
by Mitth'raw'nuruodo
Ok, here I go:

1. Since the Mouse moves in an arc(I didn't know that) there is a way to get around this. Every other LOOP you update ship.x, and every other LOOP (not while doing ship.x), you update ship.y. See how simple that is?
Instead of an Arc, it will be a boxy movement (if that's what you want).

2. Yes ther is a function for that I believe (inregs.ax) but I'll have to look at the tutorials for that. Worste case senario-->you'll have to ratio. Here just search the tutorials(on this site) and you'll find what your looking for eventually.

Posted: Tue Jan 25, 2005 7:15 pm
by Rattrapmax6
1. Yeah, the movement of your hand pivoting on your wrist causes a arc,. Yeah, if only move x or y code, never thought of that, but I get how to do it,..

2. Ratio's wont be that bad, lol, I've got right good with 'em in algebra. :wink: ,. still a ASM wont hurt. :)

Posted: Tue Jan 25, 2005 10:06 pm
by Mitth'raw'nuruodo
Hmmm...Look at the restults so far....100% to 0% mouse [granted only 2 have voted] looks like people like the mouse!

Posted: Wed Jan 26, 2005 4:15 am
by Nodtveidt
INKEY$ sucks. Use a proper keyhandler.

Posted: Wed Jan 26, 2005 6:43 am
by {Nathan}
#1: Get the comps speed! It runs way to fast on 1 of mine.
#2: Very nice, I like it! Mouse gives better controll.
#3: Thats not how you spell controll.

Posted: Wed Jan 26, 2005 8:28 am
by Pete
Nekrophidius wrote:INKEY$ sucks. Use a proper keyhandler.
I agree with Nek on this one. Go with keyboard controls (mouse controls suck), but don't use INKEY$.

Posted: Wed Jan 26, 2005 10:54 am
by Mitth'raw'nuruodo
Really, there's something besides INKEY$?
Like what, INPUT LINE?
INPUT$ mabey?
I have never used those are they better?(Please say they're better because I don't like INKEY$ either, too slow for me)

Is there a Tut?

Posted: Wed Jan 26, 2005 11:01 am
by MystikShadows
well when you do a console application, you can access window's keyboard handling API....which offers a true threaded keyboard handling service to your apps :-).

I don't know the API calls from memory...but I know they exist :-)

Posted: Wed Jan 26, 2005 11:10 am
by Mitth'raw'nuruodo
Ok....I'm not that familiar on my terminology, console application? Is that a normal .BAS runnage? Or is it .EXE? (As Nek knows, from my module/function posts. :D I'm only new here talking to other people on this and I have had my own terminology when I was programming solo for the past 1 1/2 years).

So API keyboard handling....Is there a Tut here? :D

Posted: Wed Jan 26, 2005 11:15 am
by MystikShadows
well I thought we were talking FB...a windows console application is a DOSBOX in windows hence it's a windows application that looks like a dos program. and in that case you can get the windows keyboard handling API functions.

Posted: Wed Jan 26, 2005 11:24 am
by Mitth'raw'nuruodo
Ummm...No we weren't. Space Warp is a QB app.

But...So is there any other input goodies in QB beside INKEY$?

Posted: Wed Jan 26, 2005 11:25 am
by Z!re
INP(96)
Or:
Milos keyhandler

Posted: Wed Jan 26, 2005 11:44 am
by Mitth'raw'nuruodo
Hmm...I'm liking INP(96), I'm making a table with the keys and what is returned by it right now. :D thanks

Posted: Wed Jan 26, 2005 12:01 pm
by Z!re
It returns the scancode.

You can find key scancodes in the QB help.