Space Warp INKEY$ VS Space Warp Mouse!!

Announce and discuss the progress of your various programming-related projects...programs, games, websites, tutorials, libraries...anything!

Moderators: Pete, Mods

Which is better INKEY$ or Mouse?

Poll ended at Mon Jan 31, 2005 5:44 pm

Space Warp INKEY$
0
No votes
Space Warp Mouse
3
100%
 
Total votes: 3

User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

Hmmm...Thats good...I was doing it the long way then... :D
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

:) I'm glad I released Beta's,. I ran into the word "Sucks" alot, lol..

Yeah, I've heard of ON KEY keyboard scanning but wasn't going to bother with it,.. as for the Mouse, I thought myself it would suck, but I'm really liking this bit of ASM Mitth has sent me..

Course, I can run a comparo over ON KEY and Mouse, and I might make it where you can chose between the two in opptions depending on out put.

But as for me, once I ratio, well realy scalefactor the mouse X Y to SCREEN 13's X Y, I'm realy rather hooked on the Mouse,. :D
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

That's good, I like the mouse too. Just not that "stick", and the lack of Y control.

But if I make a suggestion, I don't like the ON KEY GOSUB. It's just a event clone of GOTO. But I'm not going to get into that again. (Please don't comment on that).

You can do the same thing easily with the INP(96) statement which is accually better in this case (you wouldn't want to change the coordinates while you were in the middle of drawing you ship now would ya?)

If you are going to go with the keyboard controls (still 3 to 0 vote against that in the poll) use INP(96) instead of INKEY$ (I mean EXACTLY where INKEY$ was) and check the return with keyboard Scancodes table of them in help (must convert table from Hex to Dec) because the scancodes return a DEC or just check it to &HXX(Where XX is the Hex scancode). Then just increase/decrease certain values then update the ship like you did with the mouse. :D
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

LOL!!! That stick, you know how you fix it.. :D I did a scale factor equation on the Mouse X to the SCREEN 13's X (The Mouse Y and SCREEN 13's Y are the same, mind) and all I had to was this...

Code: Select all

sx = outregs.cx * 0.5
PS: I got the Y set up, its not so bad (the arc) on the screen as I thought it be,.. :D
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
Nodtveidt
Veteran
Posts: 826
Joined: Sun Jul 25, 2004 4:24 am
Location: Quebradillas, PR
Contact:

Post by Nodtveidt »

ON KEY is a hack. Avoid it like the plague.
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

Right on Nek! :D
"But...It was so beutifully done"
User avatar
Pete
Site Admin
Posts: 887
Joined: Sun Dec 07, 2003 9:10 pm
Location: Candor, NY
Contact:

Post by Pete »

I suggest you guys check out Milo Sedlacek's "Monospace".

It has an excellent pure-QB keyboard handler.

Here's a link to our old review:

http://www.petesqbsite.com/reviews/action/mono.html
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

MonoSpace,. wounder if that still on me harddrive?? hmm 8) Cool game tho :( no color,.. :D He should have made a ColorSpace for his sequal. :wink:

:arrow: I'm still really liking the mouse,. :roll: :D More so after:

Code: Select all

sx = outregs.cx * 0.5
No sticking on the right side anymore!! Yay! :mrgreen: < Hehe! he look rather k%l, :wink:
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

:wink: that's great $$$. Heh, heh, Mr. Green. :mrgreen:

I looked at Monospace (I couldn't resist playing it either). Cool game, lacks color, overly done too (lot of redundant code).

And what he did was basicaly, when a key is pressed he put it in a bolean array with the subscripts = to the keyboard scancodes (he did this all with ASM). Then all he had to do was to see if the value of the scancodes were true (nonzero) or false (zero).

I like it but I could rigg something up simular with out using any ASM! :D
"But...It was so beutifully done"
User avatar
Pete
Site Admin
Posts: 887
Joined: Sun Dec 07, 2003 9:10 pm
Location: Candor, NY
Contact:

Post by Pete »

Hmmm, I guess my memory failed me. I thought Monospace was pure QB. But anyway, it's a very good key handler.
Nodtveidt
Veteran
Posts: 826
Joined: Sun Jul 25, 2004 4:24 am
Location: Quebradillas, PR
Contact:

Post by Nodtveidt »

Monospace IS pure QB, but it uses Call Absolute.
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

Yes excatly, but CALL ABSOLUTE () IS calling ASM code. What I meant was to forgo this statement or SetVarSeg. Stupid terminology stuff...
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

WOW! :shock: INP(96), I doesn't cycle!!! On wide open, off when I won't it,.. not, on - off (repeat very fast), byby INKEY$ for me(hay, that rhymes!)

Yep, I'll write a INP(96) Beta for spacewarp, maybe make it variable in options for both Mouse and KeyScan!!! HEHE!! :D :D
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
Z!re
Veteran
Posts: 887
Joined: Wed Aug 04, 2004 11:15 am

Post by Z!re »

INP(96) Is just as much QB as CALL ABSOLUTE

And you cant do the same using INKEY$ as Milos keyhandler
I have left this dump.
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

You go Rattra~! :D Have fun!
"But...It was so beutifully done"
Post Reply