Realtime games. General question

Started by
11 comments, last by Martin Barbov 11 years, 3 months ago

@Khatharr

Thank you very much for the input. It seems I'll have to rewrite the motion mechanic and do some time system I currently lack.

@rip-off

I wasn't aware rolleyes.gif

Thought it was angles. It's ok now

As for the freezing it was just like game lag.The game screen freezes, slowing down the whole system, but not crashing windows or something.

The loop polls for events. I just commented that part for testing purposes.

I did some testing and now it's much better. After I put a SDL_delay(8) in the loop.

Advertisement

Thought it was angles.

[/quote]

Radians are angles too! The term you were looking for is probably degrees

Yeah, typing mistake :p

Thanks a lot guys, I made the coordinates into floats and the movement is much smoother now,

Final question, is it normal that the SDL fullscreen is not stretching onto the entire screen but only to its dimensions even if I set them to some known resolution like 1024 x 768 and so on. It works fine only if the resolution matches the monitor resolution but if smaller, it will be centered and surounded by black border. Is there a fix that doesn't require manual stretching of the screen?

This topic is closed to new replies.

Advertisement