Questions tagged [php]
PHP is a general-purpose programming language that is especially suited for web development.
120 questions
0
votes
1
answer
516
views
Create token in Unity to send post request to Laravel controller
Some time ago I wanted to be able to create a token in Unity and send it to a Laravel Controller for saving logins and user game data to an account.
I eventually got this working so I am sharing my ...
2
votes
1
answer
177
views
Best Practice for Procedural Generation and Code Updates
I am using an initial seed to generate data.
The question I have though is what is the best way to mantain the information with code updates.
For example if I have something similar to:
...
0
votes
1
answer
124
views
How do I change the turn from a user to the next?
I was asked by a friend to develop a small web game which should support 10 players.
Very basic game-play:
There is a piñata which has x-"healthpoints". Each player can hit the piñata when ...
0
votes
0
answers
171
views
Send post request with content type
I used a php server to communicate with my unity application . I want to send post data with content type so that my php server can use the approriate variable for the content type , for example if i ...
1
vote
1
answer
83
views
I need to improve my ring shop. help with array, loop & query PHP [closed]
I have an array setup which consists of 25 rings, names, stats, prices. Right now in its current form, I have a form setup with 25 radio buttons with a value of 1-25 on them, and I'm using If ...
1
vote
6
answers
825
views
How to deal with players having too much money (or any large numbers)?
I'm working on a browser MMORPG in PHP and MySQL and today got a bug report about int32 overflow, due to the player having too much money. When I was designing the core system, I completely forgot ...
1
vote
1
answer
1k
views
How do I wrap my web browser game as a standalone for Steam?
I've got a PHP/Java based game, which runs in the browser. However, I want to submit this game to Steam.
Now Steam doesn't allow web-based games unless they come in some kind of wrapper.
How can I ...
0
votes
1
answer
312
views
Timed Events in a Unity WebGL game with a PHP / MySQL Server
I want to make an online WebGL game with Unity with button based interaction.
So far I have my login and registration system, with some tables in MySQL to deal with that kind of stuff.
Next I need ...
0
votes
2
answers
230
views
Race condition implementing World Boss System in Web Browser MMO using PHP
I am trying to create a world boss system using PHP. But I am having a problem with how to account for all the damage while updating the health of the boss in real-time.
The current damage process is ...
2
votes
1
answer
314
views
How can I avoid writing a class for each of my 800 different items?
I have a webgame written in PHP and using MariaDB for the database. I'm currently looking into ways of improving core systems.
One example would be items. Currently, there is a table ...
0
votes
1
answer
1k
views
Retrieve multiple images from MySql database via Unity C#
We could say that we are beginners, We can consult and show our data (text) from Mysql but the images don´t show in Unity. Need some help! We hace tried almost everything! We can someone help us.
in ...
11
votes
3
answers
3k
views
Why PHP over C# for PBBG? [closed]
I am a C# developer and wanted to start a hobby project building a persistent browser based game (PBBG). I work with C#, MSSQL and Angular and thought I would use those techniques for my hobby project ...
0
votes
0
answers
61
views
How can I give to player points with ajax but secured? [duplicate]
I have a virtual world game that I developed with jQuery, AJAX and PHP. Virutal World like club penguin. Now, I want to add a game into the virtual world - like bubbles or whatever. The main problem ...
2
votes
1
answer
238
views
Feasible to do all game logic on PHP server?
For the turn-based browser Flash RPG I'm working on, I'm keeping all player stats in a MySQL database, with PHP as the go-between, for the sake of persistence and to prevent cheating by memory editing....
0
votes
1
answer
146
views
Better way than url-encoded query stings to pass data from PHP to Flash?
For the turn-based browser Flash RPG I'm working on, I'm using url-encoded query stings to pass data from PHP to Flash. Basically, Flash posts a request to PHP, then PHP pulls some data from a MySQL ...