Re: get_mouse() in mode 19

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Thu, 11 Dec 1997, Tuxedo Mask wrote:

> Michael Packard wrote:
> >
> > hi.  I need to get the mouse coordinates in 320x200x256 color mode.  I do
> > a x1=get_mouse() and check to see if x1 is a sequence then get x1[2] and
> > x1[3] for the x and y coordinates.  How come my x coordinates are twice
> > what they should be? (i.e. at 100,50 x1[2]=200) the y is correct and
> > ranges from 0-200, but x ranges from 0 to 640 by 2's.
> >
> > Do I have a kludged mouse.e or is it supposed to work like that and not
> > mentioned in the manual? (I'm using 1.5 and I too think the FUPHORIA is a
> > STOOPID and malevolent thing to do to us when we try to play with an alpha
> > (or any) release. GR!)
> >
> > Michael Packard
> > Lord Generic Productions
> > (writing another game)
>
> You just need to divide the x position by 2, nothing wrong with your
> mouse... Unless we both have something wrong with our mouses ;)

I KNOW I need to divide it by two.  I'm asking is it supposed to work like
this? If so, WHY?!? Why would the y be reported correctly and x be
doubled?  And if it's supposed to be like this why isn't it mentioned in
the manual?  Or has the manual been updated and my printed copy is out of
date? (a real possibility as I printed it the day I downloaded the
shareware version of 1.4 well over a year ago, in the dark ages, 5months
BOZ (Before OidZone))

If anyone is interested, I'm writing a loderunner clone, or rather a level
editor for the loderunner clone I'm going to write tomorrow.  If anyone is
familiar with the classic game and wants to design some levels, let me
know.  The levels will be in ascii format so people can email and trade
them.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu