Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8317319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:33:53+00:00 2026-06-08T21:33:53+00:00

I have a simple 2d strategy combat game that I wrote in javascript and

  • 0

I have a simple 2d strategy combat game that I wrote in javascript and jQuery. The user controls 3 or 4 characters as they fight monsters (small screen cap here https://i.stack.imgur.com/dkkXm.jpg).

It is not realtime, it is turn based (player’s turn, computers turn) and the game is designed for a phone user, mainly office workers on their morning commute. iPhone user is the main target. Game development is in early stages but currently playable. This is a web app played in browser.

My biggest issue is that if you switch applications (such as answering a phone call) and then switch back the page reloads (therefore the web app reloads) and you lose any progress you have made.

I have tested this as a web app download (using mobile safari Add To Home Screen) but the reload problem persists when switching.

I’m resisting wrapping this and delivering through the Apple app store … instead I want to create a backend that will save the player’s turns. Simple tasks such as

  • javascript function in my web app would send turn data in the form of
    a string
  • when the web page (and web app) reload, it retrieves the last
    recorded turn
  • player would need a login

I’m interested in PHP as I’ve had some experience with it from deconstructing and altering wordpress themes. The only other languages I know are front end (html, css, javascript, jQuery).

Can PHP cover the above tasks in a secure manner or should I be looking at learning an alternate language?

Any guidance is much appreciated and thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:33:54+00:00Added an answer on June 8, 2026 at 9:33 pm

    Yes. PHP can do what you want, as can really any other server-side language. You would just use ajax calls to send data updates to the backend server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project that we need to set up a simple branching strategy
I have simple php validation form that is halfway working. If you leave the
I have simple JavaScript snippet: var obrazek = [{nazwa: "Sniadanie", wiek: 100, autor: "Alicja"},{nazwa:
I have simple win service, that executes few tasks periodically. How should I pass
I have a simple class that has a property called executor in which I'd
I have a situation that is pretty simple, and I'd like to know the
I have what seems a simple enough regex problem that I can't seem to
Suppose I have a simple MySQL table that looks like this: CREATE TABLE `my_table`
I'm working on a simple 2D Real time strategy game using XNA. Right now
I have my little web application, with simple registration strategy - provide email and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.