SFML community forums

General => SFML projects => Topic started by: Powereleven on February 01, 2018, 09:52:49 pm

Title: Random game
Post by: Powereleven on February 01, 2018, 09:52:49 pm
Messing up with angles in SFML. Inspired in Arkanoid.

https://github.com/Powereleven/Bounce-game
Title: Re: Random game
Post by: Tigre Pablito on February 16, 2018, 02:49:36 am
Hi!

I ran the game. Once again, very good! (I didn't see the code in detail yet)

An "issue" ... Why the screen measures like that? The height is greater than the width and than the physical screen height. Wouldn't be much better (and easier to play) to use something like 800x600?
Title: Re: Random game
Post by: Powereleven on February 16, 2018, 09:52:11 pm
When I did this I made it 1000 by 800 for no reason. It’s possible to retrieve for example the monitor’s width and height and make all other parameters in function of them, or just the width and multiply by 0.75 to get a good height and get the proportion you want (800/600). It may be confusing for someone who didn’t write the code to adapt all the parameters that would need to be adapted, but you can try if you want  ;)