Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Some Stupid Questions

Author
Message
Kryogenik
16
Years of Service
User Offline
Joined: 22nd Sep 2009
Location: Heidelberg, Germany
Posted: 2nd Jul 2010 19:07
Hey guys. I have some pretty nooby questions to ask First off, how do you prevent the escape key from closing the game? I noticed when I was testing my game I would reach for the 1 key to change to my pistol, and then I would accidentally press escape and close it

I just noticed how much less pixelated stuff looks when you heighten the resolution, but it changes the way my game looks, if you know what I mean. My FPS gun models in the first person are the same as the other guns with some basic hands holding them. Usually, the end of the arm is obscured from the view, but on a wider resolution, you can see where the arm cuts off. I made my game at 640 by 480 resolution, and when I doubled it to 1280 by 960, I could only see the top left part of what should be on the screen. Also, on higher resolutions, 2D stuff like sprites and text are a lot smaller. What do you guys do about resolution?

Thanks in advance

cout<<"I'm learning C++, and this is all I know \n"
=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 2nd Jul 2010 19:16
i believe the command is "disable escapekey", I will get back about scaling 2d objects later (I'm not at the right PC atm to show you code), but roughly I draw all 2d stuff at 1024 x 768, work out the ratio of the original size against the current screen size; and the scale the sprite accordingly.

baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 2nd Jul 2010 23:14
=PRoF='s advice is good but maybe a screenshot would help for the second problem?

Login to post a reply

Server time is: 2026-07-25 09:40:46
Your offset time is: 2026-07-25 09:40:46