A
A
Agent Gus2018-09-09 20:57:41
C++ / C#
Agent Gus, 2018-09-09 20:57:41

Drawing bots at 5px with inline actions?

Hello, I wanted to create a game by the rules using SFML in c++.
According to the rules:

rules
Каждая клетка с одним или без соседей умирает, как от одиночества.
Каждая клетка с четырьмя и более соседями умирает, как от перенаселения.
Каждая клетка с двумя или тремя соседями выживает.
Для пространства, которое является 'пустым' или'незаселенным'
Каждая ячейка с тремя соседями заполняется.

But that's not the point, what's the best way to draw huge pixels in SFML?
Initially I tried to do it on vertex pixel, but the problem is that you must initially set the number of created pixels + the size cannot be changed.
There is another solution to create a buffer image and place relatively huge pixels.
But how do I organize the movement of points? Give them logic. I will be grateful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2018-09-09
@xmoonlight

This is the game of life . Nothing moves there.
Points are placed on the field randomly or definitely, and the behavior that you have is prescribed in the "Rules" is turned on. Points: only either are born, either are destroyed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question