H
H
hitakiri2017-11-20 12:48:31
JavaScript
hitakiri, 2017-11-20 12:48:31

How to implement a day/night cycle in a browser game?

I am looking for solutions for the change of day and night (the movement of the stars) in a browser-based isometric game.
The only solution I found is several sprite backgrounds with different lighting that change on a timer.
The sprite of the character on the territory where the lighting changes does not move, which makes the task easier.
Are there any other solutions to this problem? For example on canvas.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GreatRash, 2017-11-20
@hitakiri

I don't know what kind of engine you use, but maybe this solution will help you .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question