SFML community forums

Help => General => Topic started by: alx123 on April 23, 2010, 11:46:55 pm

Title: Different Drawing Areas?
Post by: alx123 on April 23, 2010, 11:46:55 pm
Hi everyone.

I'm a beginner in graphics programming and in SFML, and I wanted to know how would you define different areas for a game.

In the game i`m making(Breakout clone) I would like something like this.
(http://i42.tinypic.com/2w31bn5.png)(A fast sketch I made)

Thanks for your time
Title: Different Drawing Areas?
Post by: nulloid on April 24, 2010, 12:10:00 am
Well, i would simply draw the sprites in the game area, and the text stuff in the box right to the game area... What are you curious about, exactly?
Title: Different Drawing Areas?
Post by: Spidyy on April 24, 2010, 12:27:37 am
For the game area, you could use one or multiple sf::View, defining the viewport (with values between 0 and 1).

For your HUD elements, just draw them on the screen in the default view.