Heya TOS22 ![]()
I was trying to add mouse support inside your Dr Tempus game, as my daughter is a big fan of your game and keeps asking me to replay it ![]()
I thought I'd try make use of the basic/kernal's existing mouse interrupt routine, by loading the game in the following way:
- I would do: LOAD "TEMPUS"
- Then: MOUSE ON, 2, 2 (mouse on port 2, with sprite Please login to see this link.)
- Then I did RUN
This allowed the mouse to move a little bit on screen, though your game-loop will always reset it to the cx, cy location instead.
So I tried tweaking the code to comment that part out (the sprSetPos call), and instead replace it with some inline asm code to read the current spritePlease login to see this link. location and place it in cx and cy vars, as below:
Please login to see this link.
I 'think' the logic of the code I added is fine, but when I try to rebuild and run the game, I run into problems:
No artwork shows for the title screen:
Please login to see this link.
...and the in-game graphics seem corrupted too ![]()
Please login to see this link.
At least some good news is that the mouse does indeed move the pointer now (which is that grey blob in the top-left at present), though it seems to ignore mouse clicks for now.
Just wondering if you had any idea what I might've done wrong? Perhaps my addition muddled up something related to the loading of the bitmaps? Though I'm not sure how ![]()