P
P
Pomogite33342020-05-19 08:34:42
Canvas
Pomogite3334, 2020-05-19 08:34:42

How to make a game menu using canvas and js?

How to use canvas and Js to make it so that when you click on an object, some function is performed, for example, the sound turns on or a mini menu opens. Just like the pictures below.
5ec36f11b5fd2138261816.png
5ec36f1aef891304013876.png
5ec36f245ea01743632647.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-05-19
@Seasle

In general, it is better to make the interface layout, and not on canvas. But if you really need it, then this is how you can process a mouse click.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question