V
V
Vadim Stepanenko2021-01-01 18:42:52
React
Vadim Stepanenko, 2021-01-01 18:42:52

Are there react frameworks for 2d games?

Happy New Year everyone!
I want to do something like an aquarium where there are fish, they swim, you can buy them, and so on. Are there any react or js frameworks with which you can make more or less the real movement of fish around the aquarium?

This option comes to mind: there is a container - an aquarium. It contains divs with pictures of fish. Well, accordingly, on the js side, randomly calculate the coordinate where the fish should swim and use css transition to move it in the container. With the same css, you can make a more or less "live" movement (not along one line, but along a small sinusoid, for example). With smooth turns of the fish, you can also come up with something, but there are a lot of such nuances. Maybe there are some libs for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Scoo909010, 2022-01-05
@Scoo909010

Phaser & ThreeJS. But with fish, you can make animations using pure CSS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question