A
A
Allesad2013-08-19 16:48:20
Browsers
Allesad, 2013-08-19 16:48:20

Technologies for creating a turn-based browser game

I would like to hear the advice of habrazhiteley about technologies that can be used to create a turn-based browser of the following type:

- Genre: turn-based strategy;
- Time to move from 15 minutes to 48 hours, which means that the load on the server will not be too high, and it should also be necessary to save the local results of the actions of all players in the database (since the player can leave the page / restart the computer / clear cache);
- There are few graphics, almost no animation, the only exception is the game map. Since it needs to be dynamic, I'm assuming drawing it on a canvas, but I'm not familiar with drawing on a canvas, so I'd love to hear some advice on that. If you think that canvas is not suitable for this purpose, and there are better ways, then I would also be glad to hear your opinion;
- There should be support for tablets;

If you have experience with such things, then please write tips and recommendations on frameworks, server technologies, libraries and resources where you could find interesting information.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Eugene Obrezkov, 2013-08-19
@ghaiklor

I would use standard PHP+MySQL+JS, IMHO. Because

Travel time from 15 minutes to 48 hours
, then you can safely write all the information in MySQL, do the server-side in PHP.
As for the map, I would advise you to generate the map itself on the server, fill the array with data about the cell, or write it to the object. If an object, then you can then use serialize and bs64_decode(encode) to store maps in the database in text format. Implement everything on the client with AJAX, because the game after all :) Regarding the rendering of the map, I can advise the EaseJS framework or the native drawImage. If you just load sprites, then use the native one better. If you play with layers, animations, etc. - then EaseJS.

P
Pavel Volintsev, 2013-08-19
@copist

Make cards randomly from small fragments (see here and here for a start )

P
Pavel Volintsev, 2013-08-19
@copist

>>> Time to move from 15 minutes to 48 hours
If the moves are so rare, then only two players will play it - you and the AI ​​programmed by you are your opponents :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question