G
G
godsplane2019-09-04 13:38:44
Game development
godsplane, 2019-09-04 13:38:44

Is this approach to creating a browser game possible?

I came across this post on the pikabu https://pikabu.ru/story/zhizn_bol__otvet_cherez_2_...
And I wondered if it was possible to make some kind of launcher for the game, which can be downloaded once with all sorts of textures, the world, etc. and upload these files from the computer to the browser, so as not to load the page for half a day if there are some 3d models?
THAT is in theory such a development option is possible?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
sim3x, 2019-09-04
@sim3x

The browser has a cache
The backend has techniques for working with the cache
Add another layer in the form of a separate cache - no
PS: Try not to go to places where someone leaves their waste products

D
Dmitry, 2019-09-04
@Astatroth

It's called the "Game Client".

K
Konstantin Kitmanov, 2019-09-04
@k12th

Maybe. Take, for example, electron and go ... But before that, you need to check that everything rests on the network. Set caching headers. Check that the resources are given in a compressed form. Pack small icons into sprites. Check that all files are optimized with optipng etc. instruments. Move static to a separate domain (or even several) without cookies.
I remember there was some kind of browser-based step-by-step strategy in which you could download all the pictures, and in the settings specify where they are on your hard drive, like c:\игра\картинки, and the server fed these addresses to the browser instead of its own. But modern browsers do not allow this, it seems.

D
dollar, 2019-09-04
@dollar

In theory, there are different options.

  1. You can use the browser cache. Especially for static pictures and files that you will never change, and that's for sure. You can tell the browser about this, and he will believe, and will not re-download them.
  2. You can use browser storage (localStorage and IndexedDB). True, it will take a lot of abstruse programming.
  3. You can ask the user to install a browser extension, which, in fact, will be tantamount to installing the game itself. That is, the game will not start without it. There are many possibilities.
  4. Actually, why an extension? There are full-fledged web applications downloadable from the store, including games. Although essentially the same.
  5. You can create not a web application, but a full-fledged application for some OS (Windows, Android, etc.), but with a built-in WebView, i.e. as if with a built-in browser.
  6. You can opt out of the browser game. Seriously, today it is 3% of the global games market, and the share continues to fall. Do you need to catch something there? If for the sake of interest, then for God's sake, and if for the sake of profit, then it is better to refuse now than later.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question