Сохранение и загрузка состояния в js, html для игры
Всех приветствую! Создаю текстовый квест Используя TWINE и формат истории Trialogue тот же SNOWMAN-> документация .
Это интерактивная книга в формате чата.
В общем работает всё хорошо, но нужно как-то реализовать систему сохранений, и загрузки
СИСТЕМА СОХРАНЕНИЙ ЕСТЬ НО ОЧЕНЬ СТРАННАЯ -> ТЫК
Она вполне себе работает но дублирует всё что можно и нельзя.
А должна работать следующим образом:
Тк как игра тут это HTML - CSS -JS то когда человек закрывает окно, по факту закрывается и игра и после перезапуска всё нужно проходить сначала.
ЗАДАЧА: Сделать так, что-бы даже после закрытия окна, сессия продолжалась и можно было сохранить или загрузить игру.
-
1224 35 0 Предлагаю такое решение
Сохранение пользователя мы будем хранить на сервере, на стороне пользователя будет лежать куки файл который будет ссылаться на его сохранение.
Current freelance projects in the category Gaming applications
Creating MTA ServerIt is necessary to create a server in MTA, Ukrainian server, MTA I think many know, this is GTA San Andreas, just MTA, it is based on San Andreas. More details in the chat. Gaming applications ∙ 1 proposal |
Game in Telegram botHello! It is necessary to create a game in a Telegram bot similar to the game in the screenshots. - Absolutely identical menu - Similar gameplay mechanics - Different design - Different tokenomics Please suggest the price and deadlines. Bot development, Gaming applications ∙ 8 proposals |
Game Designer for Rozkvit Mobile AppRozkvit is an innovative mobile app dedicated to transforming mental health education through interactive gaming. Our app focuses on key areas such as emotional intelligence, communication, collaboration, critical thinking, stress management, productivity, and identity… Gaming applications ∙ 3 proposals |
Game of Unity / GamedevEveryone is greeted.You need to develop a casual mobile game on Unity, 2D (isometry), iOS/Android.According to the type of Hay Day, but without animals, the theme of drinking and composing.Social features (player interaction, selling game items through the store and in map ads… Gaming applications ∙ 8 proposals |
Creating a mobile app based on a ready-made designWe are looking for a developer to create an arcade game that is characterized by simplicity and attraction. You have the freedom to choose the technologies for the implementation of the project, with special attention to Cordova or Flutter, although Android Studio and Unity are… Gaming applications, Apps for Android ∙ 13 proposals |