Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Random game  (Read 3109 times)

0 Members and 1 Guest are viewing this topic.

Powereleven

  • Newbie
  • *
  • Posts: 36
    • View Profile
Random game
« on: February 01, 2018, 09:52:49 pm »
Messing up with angles in SFML. Inspired in Arkanoid.

https://github.com/Powereleven/Bounce-game

Tigre Pablito

  • Full Member
  • ***
  • Posts: 226
    • View Profile
    • Email
Re: Random game
« Reply #1 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?

Powereleven

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Random game
« Reply #2 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  ;)