Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Kaezin

Starting out...

This topic is 6645 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Okay to start out I am using Directx (DirectDraw to be specific), and have read a lot of tutorials, books, etc and feel fairly confident to start my game. So I''m gonna add in little tidbits one at a time... First off, how do I keep the cursor in full screen mode? Every tutorial so far has gotten rid of the cursor, but I want it for use of menus and stuff like that. I''m planning on starting out with a little base-building program and start from there, leading to something like X-Com... Anyone have any suggestions on how to start?

Share this post


Link to post
Share on other sites
Advertisement
howdy kaezin, ignore the asshole poster above.

A word about cursors. Firstly, to keep them on, make sure during your windows init you have ShowCursor(true) set properly. However, ideally, you want to replace the windows cursor with your own graphic. To do this, you want to turn off the cursor, and draw your graphic in place of it by getting the current mouse coordinates from windows and then blitting your custom mouse graphic to the screen at those coordinates you get from Windows. Simple as that. Also, a good idea you''ll probably want to implement later on, is running your mouse routine independently in its own thread so that it wont jump around with your framerates. Ok, hope all that helps.

Share this post


Link to post
Share on other sites
Okay thanks, good to know at least SOME people are nice =D Can''t believe some people are that rude... Anyway, what do you mean by this:
quote:
Original post by Famine
Also, a good idea you''ll probably want to implement later on, is running your mouse routine independently in its own thread so that it wont jump around with your framerates.


? I''ll probably do what you said, but I need some clarification with that quote Hmm... I thought there was a way to do the whole cursor thing without having to redraw everytime? I remember reading in Tricks of the Game Programming Gurus that there was a way to implement my own cursor just by sending it the picture ID, but whatever. Thanks again.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!