I
I
Isaac Clark2014-11-26 16:33:20
css
Isaac Clark, 2014-11-26 16:33:20

What is the best way to make html5 games? With canvas or html elements?

Hello, tell me please.
What is the best way to make games on html5, where are more opportunities and why?
canvas or with divs?
Thanks for your help and your time.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vlad, 2014-11-26
@Dark_Knight

Rendering html is several times less productive than canvas

I
Ildar, 2014-11-26
@galmi

Of course canvas, using special js frameworks for development.
In addition, most browsers support WebGL, if the framework supports rendering in webgl, then the game will work even faster due to hardware acceleration.

A
Alexey Nikolaev, 2014-11-26
@Heian

Partly depends on the game you want to implement - it can be very simple or quite complex.
In general, canvas, if you are working with raster graphics - it provides the most opportunities for this.
And SVG, if with vector objects.
PS Perhaps, IMHO, but today making games on html5 using divs has long been irrelevant due to the capabilities of html5 itself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question