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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - new_to_sfml

Pages: [1]
1
Graphics / Re: Moving vertex arrays?
« on: April 09, 2021, 11:33:22 am »
I can draw four squares next to each other etc., but I also need the program to "see" those four squares as one entity because I think it would make it simpler to use. So I have to join them somehow in code and I'm not sure how to do it.
I don't see any method that seems helpful to do so in sf::Sprite documentation.

2
Graphics / Re: Moving vertex arrays?
« on: April 09, 2021, 11:04:44 am »
So a tetromino would be a sprite containing 4 square shapes? But how to arrange them so that they form a correct tetromino?

3
Graphics / Moving vertex arrays?
« on: April 07, 2021, 08:49:13 pm »
Hi, I'm new to SFML and to object oriented C++ and I want to make a Tetris clone. I'm using vertex array to represent tetrominos. Is it the best way to do it?
If it is, then is there a convenient way to move them on the screen?

Pages: [1]
anything