Re: get_mouse() in mode 19

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

Michael Packard wrote:
>
> 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))

There is still no mention of the probem in the 2.0 library reference,
but I don't think the problem is Euphoria.  I think the problem is with
the actual mouse driver.  I've had to divide the mousex value by two
when using other languages, such as Pascal.  So if we need someone to
blame, it's not Euphoria, but rather whoever wrote the first mouse
driver for mode 19, probably MS.  It seems they were too lazy to divide
the x value by two themselves for some strange reason.  It is possible
to set the limits of the box the mouse rolls around in, but setting
maximum x to 320 limits the mouse to the left half of the screen.

> 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.

I'm interested.  I found a nice shareware loderunner clone a few months
ago called SCAV, but it only had four levels.  I was also thinking about
writing my own loderunner clone in Javascript and using it to spice up
my webpage.  I never got around to starting the graphics though.

Warning!  Shameless plug ahead:

I've updated my mode X graphics library.  It now supports planar virtual
screens, command lists with the usual copy commands, and also has fancy
palette operations.  I'm really proud of my implementation of command
lists totally in machine code.  Also the pixel() and get_pixel commands
work on virtual screens too.  I missed Robert's contributions page
update last night, so if you can't wait, get it at
http://www.harborside.com/home/x/xseal/euphoria/modex.zip (21k)
Please check it out and let me know what you think.

Thanks!
--
                   _____         _____        _____
    ________      /\    \       /\    \      /\    \
   /   \    \    /  \____\     /  \____\    /  \____\
  /  _  \____\  /   / ___/_   /   /____/   /   / ___/_
 /  / \  |___| /   / /\____\ /    \    \  /   / /\____\
 \  \_/ /    / \   \/ / ___/_\     \    \ \   \/ / ___/_
  \    /____/   \    / /\    \\/\   \    \ \    / /\    \
   \   \    \    \   \/  \____\  \   \    \ \   \/  \____\
    \   \    \    \      /    /   \   \____\ \      /    /
     \   \____\    \    /    /     \  /    /  \    /    /
      \  /    /     \  /    /       \/____/    \  /    /
       \/____/       \/____/xseal at harborside.com\/____/

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

Search



Quick Links

User menu

Not signed in.

Misc Menu