Skip to main content

Questions tagged [php]

PHP is a general-purpose programming language that is especially suited for web development.

Filter by
Sorted by
Tagged with
0 votes
1 answer
516 views

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 ...
UrbanwarfareStudios's user avatar
2 votes
1 answer
177 views

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: ...
Robbie's user avatar
  • 121
0 votes
1 answer
124 views

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 ...
theloneswiftman's user avatar
0 votes
0 answers
171 views

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 ...
iam1515 2242t's user avatar
1 vote
1 answer
83 views

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 ...
xion360's user avatar
  • 11
1 vote
6 answers
825 views

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 ...
matronator's user avatar
1 vote
1 answer
1k views

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 ...
Lex's user avatar
  • 139
0 votes
1 answer
311 views

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 ...
Somberlain's user avatar
0 votes
2 answers
230 views

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 ...
EnyaVil's user avatar
2 votes
1 answer
314 views

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 ...
Niet the Dark Absol's user avatar
0 votes
1 answer
1k views

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 ...
GUSTAVO's user avatar
11 votes
3 answers
3k views

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 ...
Kurus's user avatar
  • 111
0 votes
0 answers
61 views

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 ...
Ben's user avatar
  • 1
2 votes
1 answer
238 views

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....
BladePoint's user avatar
0 votes
1 answer
146 views

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 ...
BladePoint's user avatar
0 votes
1 answer
318 views

So in my program, I currently know how much Experience a player has. I was using this formula to figure out what level the Player was: ...
GooglyBoogly's user avatar
1 vote
2 answers
487 views

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 ...
Saturn's user avatar
  • 1,763
1 vote
1 answer
250 views

So I'm making a simple RPG game and I'm currently stuck on creating an attacking module for it. I need to create a simple attack algorithm but I'm really not very good at it. Each character has 3 ...
GalahadXVI's user avatar
0 votes
1 answer
131 views

I have this method to get the cells inside a given N range: ...
Enrique Benitez's user avatar
0 votes
1 answer
374 views

I'm looking for a way to get the cells based on a N range. But no luck. I'm converting Row Column offset to Cube Coordinate system QR -> XYZ ...
Enrique Benitez's user avatar
3 votes
1 answer
234 views

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: ...
Enrique Benitez's user avatar
1 vote
1 answer
2k views

I'm new into programming, and i've tried to do a system of level up. Here it is : ...
Eleyox's user avatar
  • 11
1 vote
1 answer
364 views

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 ...
Anon's user avatar
  • 11
3 votes
2 answers
439 views

I want to build a quest system in PHP. My idea so far was to create quests based on a class and write two functions for every quest: One is checking if its activated, the other will check the progress....
Standard's user avatar
  • 495
1 vote
1 answer
2k views

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 ...
CoffeDeveloper's user avatar
0 votes
1 answer
769 views

I am trying to save user scores into my data base so i have deveoped backend on php and mysql datbase. All the things are complete but having issues to send or receive data through my unity WWW class. ...
Muhammad Faizan Khan's user avatar
-1 votes
3 answers
4k views

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 ...
MrTopGamer's user avatar
5 votes
3 answers
509 views

I'm currenly developing a game in Javascript. It's a Single Page Application so every change should be pulled from the server without page refresh. I'm currently wondering how I should handle the '...
Jordy's user avatar
  • 161
1 vote
0 answers
100 views

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 ...
Chimera's user avatar
  • 11
1 vote
3 answers
177 views

I have been working on a web based game, in which involves a lot of javascript/PHP. My question is what is the most secure way to handle any data being passed between the two languages? At this ...
Jay Cutler's user avatar
1 vote
1 answer
580 views

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 ...
user3343366's user avatar
0 votes
2 answers
332 views

While I was, sort of, studying the various TCGs around, concepts, similarities, differences and how they could be implemented, if designed to be in a virtual environment (e.g. PC game) I obviously ...
Bruno Augusto's user avatar
0 votes
1 answer
3k views

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?...
sabo's user avatar
  • 237
1 vote
0 answers
258 views

Basically what i wish to ask: *A game is developed for android platform, is on google store and its leader board (scores etc.) are on Google server. Can we display the top scores from there on a ...
Inspired by Normal's user avatar
0 votes
1 answer
218 views

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 ...
Stanislav Bondarenko's user avatar
0 votes
3 answers
1k views

I'm making a web game RTS, it's mostly create units, manage resources, attack with army, and level up factories. I have created the basics of the game using Javascript, PHP, and MySQL databases. I use ...
Alex Parra's user avatar
-4 votes
3 answers
516 views

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 ...
Developer Nation's user avatar
1 vote
1 answer
145 views

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. It came to my attention that SQL is not going to ...
Grant Davis's user avatar
3 votes
2 answers
132 views

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 ...
Grant Davis's user avatar
3 votes
1 answer
267 views

I'm trying to rewrite a legacy php Browser-Based-Game so that it uses object oriented programming. I find it relatively easy to model concrete nouns, like: new Npc(), new Character(), new Account(), ...
Kzqai's user avatar
  • 1,198
-3 votes
1 answer
333 views

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 ...
Art3mix's user avatar
  • 107
1 vote
0 answers
232 views

I am working on a client/server application and am starting to take it from proof-of-concept to actual implementation. The client is an Android application and the server is in PHP. In similar ...
erik's user avatar
  • 1,378
1 vote
3 answers
448 views

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 ...
Draven's user avatar
  • 119
4 votes
4 answers
4k views

I'm working on a multiplayer checkers game. I want to let players choose another connected player and invite him to play. I have a working game engine and rendering, but I'm stuck on the multiplayer ...
New Man's user avatar
  • 41
5 votes
1 answer
1k views

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 ...
Nick Newman's user avatar
0 votes
1 answer
1k views

So, I have a game in Unity for mobiles that gives you the possibility to sign-up with username, email and password to unlock extra features. The datas are sent, through a POST request, to a PHP+MYSQL ...
Erik's user avatar
  • 326
2 votes
3 answers
314 views

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 $...
Paul Robinson's user avatar
2 votes
1 answer
14k views

I would like to use Unity's WWW class to send a an HTTP request with POST data. So in my server, my PHP script can do something like $number = $_POST["NUMBER"]; ...
Saturn's user avatar
  • 1,763
0 votes
0 answers
496 views

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 ...
Saturn's user avatar
  • 1,763
0 votes
1 answer
383 views

I'm making a browser game wich is based on PHP, MySQL and Javascript. It has an isometric world where the player can move and see other players/NPCs. But if a tile in the foreground is so high that it ...
Marc Eickhoff's user avatar