Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
Different Drawing Areas?
Print
Pages: [
1
]
Author
Topic: Different Drawing Areas? (Read 1987 times)
0 Members and 1 Guest are viewing this topic.
alx123
Newbie
Posts: 5
Different Drawing Areas?
«
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.
(A fast sketch I made)
Thanks for your time
Logged
nulloid
Full Member
Posts: 134
Different Drawing Areas?
«
Reply #1 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?
Logged
Spidyy
Sr. Member
Posts: 493
Different Drawing Areas?
«
Reply #2 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.
Logged
DevBlog Excellence
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
Different Drawing Areas?
anything