Questions tagged [php]
PHP is a general-purpose programming language that is especially suited for web development.
120 questions
0
votes
1
answer
515
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 ...
0
votes
1
answer
123
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 ...
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
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
2
answers
226
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 ...
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 ...
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 ...
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 ...
1
vote
2
answers
485
views
How come serverless functions are so much more expensive than a VPS hosting my PHP API?
I'm working on an online turn-based game. I will have a server, but it will be used strictly for storing match data and relaying it to the match's participants (or spectators). For simplicity, no game ...
0
votes
1
answer
131
views
Get range of hexagon based on specified center
I have this method to get the cells inside a given N range:
...
3
votes
1
answer
234
views
Place hexagons together
Just made it with some more investigation thanks to this site: Hexagonal grid math, but the hexagons have a little bit spacing horizontally.
Here is the code:
...
1
vote
1
answer
363
views
How to cache tile map?
I am trying to write a strategy game with PHP, and basically I have a 1d based tile map (grass, dirt, sand, castles, etc.) stored in a database. Now where is 40k records, from x1y1 to x200y200 and I ...
1
vote
1
answer
2k
views
Unity3D: Facebook login into the game + Verification on Server Side
I don't need to know the specific code required for that, but I want to understand at high level how can I implement that and what SDKs I have to use to achieve that.
Facebook PHP SDKs: Ok If I want ...
-1
votes
3
answers
4k
views
How do I make a highscore database for Unity?
I have been looking around, but I haven't found the perfect answer, yet.
I want to to send scores from Unity to a database, without a username, and display the high scores in the highscore menu. How ...
1
vote
0
answers
100
views
PHP development for online games [closed]
I am not pro on programming and games but i had developed an online browser-based game with php . Now i am creating a game like a chess that it do not needs an live-stream and FPS data exchanges.
I ...
1
vote
1
answer
578
views
Designing PHP RPG game: Should I use multiple classes for each type of item or a single table?
I'm making a text-based role playing game written in PHP.
I have a hard time figuring out how to handle items in game - there will be a few types of objects (weapon, machine, tool, building etc) each ...
0
votes
1
answer
3k
views
Accessing a database with a php script from Unity mobile game
So I am attempting to keep track of some user data in my game that I am creating in Unity 3d. I am using Unity's WWW class to do this. I am following this tutorial: http://wiki.unity3d.com/index.php?...
0
votes
1
answer
217
views
PHP browser game energy recover time [closed]
I would like to create something very simple. A browser game, where user can waste its energy and ability points. Unlike other games here there won't be no levels. So energy and ability points restore ...
-4
votes
3
answers
515
views
Should I create an MMORTS game with server side coding? [closed]
I have gone through many articles on the internet and got to a final conclusion that their is almost no way to protect the game (it can be hacked or its code can be extracted from its APK) and should ...
3
votes
2
answers
130
views
One big Instance or One instance for every moving entity?
I am creating a multiplayer JavaScript game with a PHP central server. Each user will be able to move around in a 3D world, with other users and NPCs. These NPCs will be controlled by the central ...
-3
votes
1
answer
333
views
handling wars in multiplayer browser game [closed]
I'm building a browser game about countries, cities, the user control his city, building it upgrading it, can fight other cities in the same country, elections and war between countries, peace, trade ...
1
vote
3
answers
446
views
Browser-Based Game Design: Keeping track of NPC stats (Attack, Defense, Health, etc)
Hope this is a proper question to ask here. If not, I'd appreciate somebody pointing me to other game developer communities.
Since I am creating my game by myself it'd be nice to communicate with ...
5
votes
1
answer
1k
views
How to do monster AI movement and attacks server side?
I have my web based rpg game already created. Inventory management, equipment system, character stats, skill tree, and etc. It's almost complete.
For the game world, I am creating a top-down rpg ...
2
votes
3
answers
310
views
Formula for Planetary Alignment
I am attempting to create a game where there is a universe of two 16-bit addresses ranging from (-32768, -32768) to (32767, 32767), or in hexadecimal, each value can run from $8000 to $FFFF then 0 to $...
0
votes
0
answers
496
views
Securing HTTP requests to online game server
I'm pretty new at making online games. Right now I'm trying to make an iPhone game. Each player has a profile in my server.
I want to avoid username/password for authentication. Currently, as it ...