P
P
pin32016-02-14 16:30:39
PHP
pin3, 2016-02-14 16:30:39

How to create a game for VK?

Correct me if I'm thinking in the wrong direction.
front-end
It is better to write not in flash but in js.
Examples of graphics, which engines are better to use?
754a26f4dab04b17a89f4e7f3b63ae64.jpge1ae4bc8d2674298be31be7535b22262.jpg
I think that it’s not worth it to worry too much, take a simple library for animation and that’s it.
It's easy to draw a map, to control the positioning of objects, just make a grid that will be on top of the map. Objects are probably better to draw through canvas or already ready through the engine? "I understand that this is almost the same thing, but still. Is it worth spending time creating your own kernel or taking a ready-made one?" characters are supposed to be vector (svg). As for objects (grass decor for example, buildings) are bitmaps or also a vector?
Managing objects, well, everything is simple here, functions and catching events. Moving and all that Drag'n'Drop.
back-end
mysql + redis or memcached - file system.
For exchange use websocket in place of ajax.
Yes, and in particular API to use.
Might be missing something. At the start, you can't predict everything.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2016-02-14
@pin3

front-end - of course js - mobile support for the future.
about graphics, if svg is planned, you can look at d3js - it is friends with svg and it will be very easy to make an area with scaling and dragging there. if there is no navigation by dragging and scaling on the map, then you can probably do without canvas and svg at all, just absolutely positioning the necessary divs with all the buildings. it will be easier to process the same clicks. and the speed will be more than canvas.
in general, I would try to make similar games on html + svg.
canvas for things where you need different special effects, or at least some kind of dynamics, the games you mentioned seem to be quite static, and it’s hard to track which object is clicked on the canvas.
of course, about the websocket for games yesterday answered the question, maybe it will also be interesting
How to build an online card game in PHP and canvas?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question